Creating a Linear Program Solver by Implementing the Simplex Method in Python

Simplex-Numpy Creating a Linear Program Solver by Implementing the Simplex Method in Python with NumPy The example in Simplex.py is : [ 0 2 1 ] A = [ 0 1 1 ] b = [ 20 18 8 ] c = [ 1 -7 -4 ] [ 0 1 0 ] And I already test some random inputs with the use of random function in Numpy: A = np.random.randint(-25, 25,size = (SIZE_MATRIX_X, SIZE_MATRIX_Y)) b = np.random.randint(-25, 25,size = SIZE_MATRIX_X) […]

Read more

A command line tool for displaying Python source and bytecode

dis-cli Display Python source code and bytecode side-by-side at the command line dis-cli is a command line tool for displaying Python source and bytecode. Installation dis-cli can be installed from PyPI. To install via pip, run $ pip install dis-cli Usage dis-cli provides a command line program, dis, which takes a “import-like” path to a function to display information about. For example, if you have a package a, with a submodule b, containing a function c, you could run dis […]

Read more

Chatbot for ordering and tracking a Pizza

Pizza Chatbot To start the app, follow the below steps: Clone the repo using the below command: git clone [email protected]:shreyashah115/PizzaHere.git Go to the cloned directory, create a virtaul environment and activate it: cd PizzaHere/ virtualenv -p python3 myenv source myenv/bin/activate pip3 install -r requirements.txt Start the server using the below command: python3 manage.py runserver How the chatbot works: The bot will reply to your small talk questions at the beginning of the flow as shown below, You can place a […]

Read more

A CLI-based program that checks the file’s integrity

SHA-ZAM – Check the file hash sum Shazam is a Command Line Application that checks the integrity of one file by comparing it with a given hash. Created by: AnaxĂ­meno Brito How Does It Work: It calculates the file’s hash sum and compares it with a given hash for checking if the file isn’t corrupted, it can also be used for calculating the hash sums and automatically save it inside one file if wanted. Shazam supports some of the most […]

Read more

A library to make parallel selenium tests that automatically download

AutoParaSelenium A library to make parallel selenium tests that automatically download and setup webdrivers. Usage Installation pip install autoparaselenium Code The API is very simple from typing import Union from selenium import webdriver from autoparaselenium import configure, chrome, firefox, run_on, all_, Extension # All parameters are optional, but still call it once before everything configure( extensions=[ Extension(chrome=”path to chrome extension to install”), Extension(firefox=”path to firefox extension to install”), Extension(chrome=”chrome path”, firefox=”firefox path”) ], headless=True, # if there are chrome extensions, […]

Read more

Randomization-based inference in Python

resample Randomisation-based inference in Python based on data resampling and permutation. Features Bootstrap samples (ordinary or balanced with optional stratification) from N-D arrays Apply parametric bootstrap (Gaussian, Poisson, gamma, etc.) on samples Compute bootstrap confidence intervals (percentile or BCa) for any estimator Jackknife estimates of bias and variance of any estimator Permutation-based variants of traditional statistical tests (t-test, K-S test, etc.) Tools for working with empirical distributions (CDF, quantile, etc.) Dependencies Installation requires only numpy and scipy. Installation The latest […]

Read more

Data sampling app to csv file with python

DATA SAMPLING APP The module that allows the collection of data sampling, which is transmitted with WebSocket via WIFI or serial port for CSV file. Technologies Warning To use this module, remember that data must be transmitted via serial port or WIFI in string where each data has to be separated by a comma. “00.0000000,00.0000000,00.0000000,00.0000000” Getting Started Fork this repository and clone it on your machine. Change the directory to python-data-sampling-app where you cloned it. Module Getting Started Install requirements. […]

Read more

MeiliSearch FastAPI provides FastAPI routes for interacting with MeiliSearch

MeiliSearch FastAPI MeiliSearch FastAPI provides FastAPI routes for interacting with MeiliSearch. Installation Using a virtual environmnet is recommended for installing this package. Once the virtual environment is created and activated install the package with: pip install meilisearch-fastapi Useage Routes are split in groups so that different dependencies can be injected, and therefore different levels of access, can be given to different groups of routes. Example with no authentication require for routes from fastapi import APIRouter, FastAPI from meilisearch_fastapi.routes import ( […]

Read more

A reader and a writer of the ROOT file format using only Python and Numpy

Uproot is a reader and a writer of the ROOT file format using only Python and Numpy. Unlike the standard C++ ROOT implementation, Uproot is only an I/O library, primarily intended to stream data into machine learning libraries in Python. Unlike PyROOT and root_numpy, Uproot does not depend on C++ ROOT. Instead, it uses Numpy to cast blocks of data from the ROOT file as Numpy arrays. Installation Uproot can be installed from PyPI using pip (Awkward Array is optional […]

Read more

A Python Package Helper command-line tool

pypahe Bonjour Software pypahe is a Python Package Helper command-line tool. Requirements Usage print the latest available version of a given package: docker run bonjoursoftware/pypahe latest boto3 print a given Pipfile or Poetry pyproject where all packages have been upgraded to their latest versions: docker run bonjoursoftware/pypahe upgrade “$(cat /path/to/package_config)” Tip: the Pipfile or Poetry pyproject file can be upgraded in place with: docker run bonjoursoftware/pypahe upgrade “$(cat /path/to/package_config)” > /path/to/package_config Tip: the –help argument also works on subcommands: docker […]

Read more
1 550 551 552 553 554 912