PythonHub Logo Python Hub Weekly Digest for 2022-09-04

Cover by unsplash.com

đź’– Most Popular

fastapi-best-practices
Opinionated list of best practices and conventions we used at our startup.

How to Create an AI-Assisted Search Engine with Python and txtAI in Seconds

Understanding async Python for the web
What is “async” Python? Why do people care about it so much? And is it really that useful for building web apps? What are all these new frameworks and other tools about? So let’s dive in.

Unix Pioneer Brian Kernighan: if you could only use one language, choose Python

New BucketRateLimiter Python package to rate limit requests to APIs


đź“– Articles

SymPy: Solving Math Equations in Python and Jupyter

Flask-Backbone
Flask Boilerplate and Your Guide to Flask in 2022.

You Should Be Using Python's Walrus Operator - Here's Why

Taming Bad Python Packages: Assessing Python Malware Detectors with a Benchmark Dataset
This post explains the creation and use of the benchmark dataset to measure the performance of the current PyPI malware checks.

How to Build a GPT-3 for Science
A GPT-3-like AI model for science would accelerate innovation and improve reproducibility. Creating it will require us to unlock research.

Python library for univariate regression, interpolation, and smoothing

Python Type Hints: How to Gradually Add Types for Third Party Packages
Hynek Schlawack recently described graduality as Python’s super power: the ability to prototype in ...

t3l3machus / hoaxshell
An unconventional Windows reverse shell, currently undetected by Microsoft Defender and various other AV solutions, solely based on http(s) traffic.

Build Your Own Imagen Text-to-Image Model
Text-to-Image models have made great strides this year, from DALL-E 2 to the more recent Imagen model. In this tutorial learn how to build a minimal Imagen implementation - MinImagen.

Using Mypy in production at Spring
While Mypy adoption comes at a cost (via upfront and ongoing investment, a learning curve, etc.), I’ve found it invaluable for maintaining a large Python codebase.

Analyzing ScotRail audio announcements with Datasette—from prototype to production

Memory Management in Python - Part 3: Object Lifetimes and Garbage Collection
We ended Part 2 with an exploration of the weird and wonderful things that can happen when you override the __eq__ magic method in Python. Now, in Part 3, we’re going to look at doing the same thing with a different magic method: __del__.

Use partial() With Django’s transaction.on_commit() to Avoid Late-Binding Bugs
In this post we’ll look at using four techniques for passing callables to on_commit(), and how the last one (with partial) protects against a potential late-binding bug. We’ll also see how you can check for this bug with flake8-bugbear.

Professional Pandas: The Pandas Assign Method and Chaining
This is the first in a series of blog posts that teach how to write professional-quality pandas code. In this post, we discuss the pandas assign function, and how it can be used together with chaining to create clean, readable code.

Building A Financial Dashboard In Python With Dash
Learn how to build a simple financial dashboard in Python using Plotly Dash by diving into loading financial data from a CSV file, generating extra columns, and how to build interactive components to control what you see on the dashboard.

Build Your Own Mobile Proxy for Web Scraping
In this guide, we show how you can build your own mobile proxy pool step by step. The most common use case for mobile proxies is web scraping. If you have a low success rate and keep getting blocked by websites you want to scrape, this guide is for you.


⚙️ Projects

lingua-py
The most accurate natural language detection library for Python, suitable for long and short text alike.

humre
A human-readable regular expression module for Python.

BeauPy
A Python library of interactive CLI elements you have been looking for.

NeRF in the Dark
High Dynamic Range View Synthesis from Noisy Raw Images.

bbot
OSINT automation for hackers.


đź‘ľ Reddits

Python is Top Programming Language for 2022


← Previous Next →

Project by Ruslan Keba. Since 2012. Powered by Python. Made in đź‡şđź‡¦Ukraine.