Parsing and validating request arguments: headers, arguments, cookies, files, json, etc

Sanic integration with Webargs. Parsing and validating request arguments: headers, arguments, cookies, files, json, etc. IMPORTANT: From version 2.0.0 webargs-sanic requires you to have webargs >=7.0.1. Please be aware of changes happened in version of webargs > 6.0.0. If you need support of webargs 5.x with no location definition, please use previous version(1.5.0) of this module from pypi. webargs is a Python library for parsing and validating HTTP request arguments, with built-in support for popular web frameworks. webargs-sanic allows you […]

Read more

A documentation injection tool for your classes when using Fast API

LuSyringe is a documentation injection tool for your classes when using Fast API Benefits The main benefit is being able to separate your business code (classes) from the logic of the documentation and pydantic validation. For example, a class that serves as a response for an endpoint may look like this without LuSyringe: class HealthResponse(BaseModel): ping: str = Field(…, example=”pong”) version: str = Field(…, example=”1.0.0″) And that’s not bad at first look, but the response class is tightly coupled of […]

Read more

How Long Does It Take to Learn Python?

You’ve probably found at least one blog post where the author reveals that they learned Python in a handful of days and quickly transitioned into a high-paying job. Some of these stories may be true, but they don’t help you prepare for a steady learning marathon. So, how long does it really take to learn Python, and is it worth your time investment? In this article, you’ll learn: What “learning Python” means and how you can measure your progress What […]

Read more

DeepConsensus uses gap-aware sequence transformers to correct errors in Pacific Biosciences Circular Consensus Sequencing data

DeepConsensus uses gap-aware sequence transformers to correct errors in PacificBiosciences (PacBio) Circular Consensus Sequencing (CCS) data. Installation From pip package pip install deepconsensus==0.1.0 You can ignore errors regarding google-nucleus installation, such as ERROR: Failed building wheel for google-nucleus. From source git clone https://github.com/google/deepconsensus.git cd deepconsensus source install.sh (Optional) After source install.sh, if you want to run all unit tests, you cando: ./run_all_tests.sh Usage See the quick start. Where does DeepConsensus fit into my pipeline? After a PacBio sequencing run, DeepConsensus […]

Read more

A tiny social network built with FastAPI and React+RxJs

A tiny social network (for bunnies), built with FastAPI and React+RxJs. Included features: :speech_balloon: chat :red_circle: online/offline friends status :abcd: “Is typing…” indicator :two_men_holding_hands: friend requests and suggestions :bell: notifications :postbox: posts :pencil: comments :scroll: conversations history :rabbit2: random profile picture generation :lock: authentication Tech stack: :snake: Python 3.8 + FastAPI :notebook_with_decorative_cover: PostgreSQL 13 + async SQLAlchemy (Core) + asyncpg driver :link: Neo4j graph db for relationships between users and fast queries :dart: Redis for caching and Pub/Sub :zap: Socket.IO […]

Read more

A machine learning model deployment project of Iris classification model in a minimal UI using flask web framework

GitHub – kittupriyatham/Machine-Learning-Model-Deployment: This is a machine learning model deployment project of Iris classification model in a minimal UI using flask web framework and deployed it in Azure cloud using Azure app service. We initially made this project as a requirement for an internship at Indian Servers. We are now making it open to contribution. This is a machine learning model deployment project of Iris classification model in a minimal UI using flask web framework and deployed it in Azure […]

Read more

Security-related flags and options for C compilers in python

This guide is intended to help you determine which flags you should use to compile your C Code using GCC, Clang or MSVC, in order to: detect the maximum number of bugs or potential security problems. enable security mitigations in the produced binaries. enable runtime sanitizers to detect errors (overflows, race conditions, etc.) and make fuzzing more efficient. Disclaimer: The flags selected and recommended here were chosen to maximize the number of classes of detected errors which could have a […]

Read more

Add filters (background blur, etc) to your webcam on Linux

webcam-filters Add filters (background blur, etc) to your webcam on Linux. Video conferencing applications tend to either lack video effects altogether or support only a limited set of capabilities on Linux (e.g. Zoom [1], Google Meets [2]). Goal here is to provide a virtual webcam via v4l2loopback with a common set of filters that can be used everywhere. Usage Passthrough (no-op): $ webcam-filters –input-dev /dev/video0 –output-dev /dev/video3 Blur background: $ webcam-filters –input-dev /dev/video0 –output-dev /dev/video3 –background-blur 150 Dependencies Other than […]

Read more

A Telegram bot writen in Python for searching files in Drive

This is a Telegram bot writen in Python for searching files in Drive. Based on SearchX-bot git clone https://github.com/breakdowns/drive-searchbot searchbot/ cd searchbot Install requirements sudo apt install python3 sudo snap install docker For Arch and it’s derivatives: sudo pacman -S docker python Setting up config file cp config_sample.env config.env Remove the first line saying: _____REMOVE_THIS_LINE_____=True Fill up rest of the fields. Meaning of each fields are discussed below: BOT_TOKEN: The telegram bot token that you get from @BotFather OWNER_ID: The […]

Read more

ColabFold / AlphaFold2_advanced on your local PC (or macOS)

ColabFold / AlphaFold2_advanced on your local PC (or macOS) Installation For Linux Make sure curl and wget commands are already installed on your PC. If not present, you need install them at first. For Ubuntu, type sudo apt -y install curl wget. Download install_colabfold_linux.sh from this repository:$ wget https://raw.githubusercontent.com/YoshitakaMo/localcolabfold/main/install_colabfold_linux.shand run it in the directory where you want to install:$ bash install_colabfold_linux.shAbout 5 minutes later, colabfold directory will be created. Do not move this directory after the installation. Type cd colabfold […]

Read more
1 491 492 493 494 495 939