A Python 3 client for the beanstalkd work queue

Greenstalk Greenstalk is a small and unopinionated Python client library for communicating with the beanstalkd work queue. The API provided mostly maps one-to-one with commands in the protocol. Getting Started >>> import greenstalk >>> client = greenstalk.Client((‘127.0.0.1’, 11300)) >>> client.put(‘hello’) 1 >>> job = client.reserve() >>> job.id 1 >>> job.body ‘hello’ >>> client.delete(job) >>> client.close()    

Read more

A python module that has the main focus to help estimate the Sound Absorption Coefficient

PyAbsorp This is a package developed to be use to find the Sound Absorption Coefficient through some implemented models, like Biot-Allard, Johnson-Champoux and others. This project is in the alpha stage. Dependencies PyAbsorp runs under Linux, Windows and MacOS, a Python 3.8.10 installation is needed with the latest Numpy (1.20.3 or higher) , Scipy (1.6.3 or higher).Matplotlib is recommended, but not necessary. Implemented Models Delany-Bazley (with Miki and Allard-Champoux variation) Biot-Allard Johnson-Champoux (with Allard and Lafarge variation) Rayleigh How to […]

Read more

SQLAlchemy database migrations for Flask applications using Alembic

Flask-Migrate Flask-Migrate is an extension that handles SQLAlchemy database migrations for Flask applications using Alembic. The database operations are provided as command-line arguments under the flask db command. Installation Install Flask-Migrate with pip: pip install Flask-Migrate Example This is an example application that handles database migrations through Flask-Migrate: from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate app = Flask(__name__) app.config[‘SQLALCHEMY_DATABASE_URI’] = ‘sqlite:///app.db’ db = SQLAlchemy(app) migrate = Migrate(app, db) class User(db.Model): id = db.Column(db.Integer, primary_key=True) name […]

Read more

Discord Rich Presence for Team Fortress 2

TF2 Rich Presence Discord Rich Presence for Team Fortress 2 Detects current game state, queue info, playtime, and more Configurable, reliable, and performance-efficient Version 2 (GUI, map images, maybe more) coming soon™ (The actual program is nowhere near as nice looking as this, v2 will be though) Download With 7-Zip’s built-in extractor: tf2_rich_presence_v1.15_self_extracting.exe (8.8 MB)Extract it yourself: tf2_rich_presence_v1.15.zip (11.9 MB)Alternatively, get the latest autobuild (may be buggy): tf2_rich_presence_dev.zip Installation and running Extract tf2_rich_presence_v1.15.zip OR run tf2_rich_presence_v1.15_self_extracting.exe, whichever you downloaded. Run […]

Read more

A piece of software that shows a traceroute of a URL redirect path

Odyssey A piece of software that shows a traceroute of a URL redirect path To see where an affiliate link ends up To see what affiliate network is being used in this process Ensure that your own redirects work correctly as intended to To analyse suspicious URLs from various sources To avoid being tracked by companies To avoid being redirected to malicious websites Discover how many times a site can redirect your request Check if URL shortening services such as […]

Read more

A cross-platform multi-level game created in Python using Kivy

CoinTex CoinTex is a multi-level adventure game created using the Kivy cross-platform Python framework. The game is successfully tested in Linux, Windows, and Android and working on all of these platforms without even changing a single line of code. Here is a simple description of it. The game is multi-level. Once it is opened, the main screen appears that shows a matrix of all game levels, which are 24 up to this time. The main screen is given in the […]

Read more

A way to analyse how malware and/or goodware samples vary from each other

ByteCog ByteCog is a python script that aims to help security researchers and others a like to classify malicious software compared to other samples, depending on what the unknown file(s) is/are being tested against. This script can be extended to use a machine learning model to classify malware if you wanted to do so. ByteCog uses multiple methods of analyzing and classifying samples given to it, such as using Shannon Entropy to give a visual aspect for the researchers to […]

Read more

Optimizing the 8 Queens Puzzle using the Genetic Algorithm

8QueensGenetic A Python project for optimizing the 8 Queens Puzzle using the Genetic Algorithm implemented in PyGAD. The project uses the Kivy cross-platform Python framework for building the GUI of the 8 queens puzzle. The GUI helps to visualize the solutions reached while the genetic algorithm (GA) is optimizing the problem to find the best solution. For implementing the genetic algorithm, the PyGAD library is used. Check its documentation here: https://pygad.readthedocs.io To install PyGAD, simply use pip to download and […]

Read more

Machine Translation Weekly 82: Multimodal Translation and the Visual Context

This week I am going to discuss (and criticize) a paper on multimodal machine translation that attempts to once again evaluate if and how the visual information could be useful in machine translation. The title of the paper is Good for Misconceived Reasons: An Empirical Revisiting on the Need for Visual Context in Multimodal Machine Translation, it has authors from several institutions in China and Hong Kong and will appear at this year’s ACL. Multimodal machine translation (also, a topic […]

Read more

Python Community Interview With Sebastián Ramírez

Today, I’m joined by Sebastián Ramírez, a software developer at Explosion AI. He is also the creator of the popular frameworks FastAPI and Typer. In this interview, we discuss typing in Python, his motivations for creating FastAPI and the future of the framework, and much more. Without further ado, let’s get into it. Ricky: Thanks for joining me, Sebastián. I’d like to start with the same questions I do with all my guests: how did you get into programming, and […]

Read more
1 608 609 610 611 612 912