PythonHub
2.37K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Streamline your Docker builds with Pants

Pants makes it easy and efficient to incrementally build and deploy multiple Docker images from a single repo, with a single command. Each image can consist of a shared base image plus a single PEX (Python EXecutable) file containing all the code, resources and dependencies required by the entry point. Pants knows exactly which images need to be rebuilt and redeployed given a set of Git changes.

https://blog.pantsbuild.org/pants-pex-and-docker/
10 Things You Might Not Know About Wikipedia Library In Python

Fetching data is much simpler with a line of code using Wikipedia API!Continue reading on Towards ...

https://towardsdatascience.com/10-things-you-might-not-know-about-wikipedia-library-in-python-61af5d46037d
SQLAlchemy 1.4 async ORM with FastAPI

This tutorial will present how to set up a production-ready application running on FastAPI, PostgreSQL, SQLAlchemy 1.4, and alembic. Everything using asyncio.

https://rogulski.it/blog/sqlalchemy-14-async-orm-with-fastapi/
Psycopg 3.0 released

Psycopg 3 is a complete rewrite based on the experience accumulated with the development and maintenance of psycopg2. Psycopg 3 targets all the current versions of Python (3.6-3.10) and PostgreSQL (10-14) and allows the use of modern Python development techniques, such as async and statically typed code.

https://www.psycopg.org/articles/2021/10/13/psycopg-30-released/
Attempting REPL-Driven Development in Python

https://blog.avocadosh.xyz/repl-driven-development-in-python
Tips for debugging with print()

If you’re embarrassed at debugging with print(), please don’t be - it’s perfectly fine! Many bugs are easily tackled with just a few checks in the right places. Here are five tips to get the most out of debugging with print().

https://adamj.eu/tech/2021/10/08/tips-for-debugging-with-print/
Build Your First Mood-Based Music Recommendation System in Python

Audio-Based Recommendations From Scratch Using the Spotify APIContinue reading on Towards Data ...

https://towardsdatascience.com/build-your-first-mood-based-music-recommendation-system-in-python-26a427308d96