PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
How to dockerize a Django, Preact, and PostgreSQL Application

Dockerizing your Django application can be intimidating, but the rewards outweigh the risks. In this guide, Charlie Macnamara walks you through the setup process so you can get the most out of your applications.

https://www.honeybadger.io/blog/dockerize-django-preact-postgres
Tracing System Calls in Python

The article discusses the author's development of a tool added to Cirron that enables the tracing of system calls made by Python code. It provides an example of tracing the "print" function and explains the tool's implementation using the strace tool for effective analysis. The article also outlines the initial intention to use the ptrace syscall for implementation and the subsequent uti...

https://blog.mattstuchlik.com/2024/02/16/counting-syscalls-in-python.html
The simplest way to add a Django worker (Using AWS Chalice)

The article discusses the utilization of AWS Chalice to incorporate a Django worker, enabling the use of a lambda function as a serverless background worker for any application. This approach allows the lambda function to run in the background without blocking the main thread of the app, and it can call an endpoint on the Django app when completed, offering the advantage of using any Pyt...

https://www.photondesigner.com/articles/lambda-for-django
Let's build the GPT Tokenizer

The Tokenizer, essential for Large Language Models (LLMs), translates between strings and tokens, operating as a distinct stage with separate training sets and algorithms. This lecture builds the GPT series Tokenizer from scratch, uncovering peculiar behaviors in LLMs linked to tokenization. We explore these issues, attributing them to tokenization, and consider the ideal scenario of eli...

https://www.youtube.com/watch?v=zduSFxRajkE
Returns: Brings functional programming to Python land

https://returns.readthedocs.io/en/latest/