PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Some tricks with UV

UV can be seen as an alternative to pip, but that might be a limiting way to think about the tool. Instead of looking at faster builds, which are still super nice, it might also make sense to rethink the stuff that we might be able to do from Python going forward.

https://www.youtube.com/watch?v=jXWIxk2brfk
What's in an e-graph?

The article explains e-graphs by incrementally building from union-find to a full e-graph implementation, highlighting key features like equivalence class discovery, pattern matching, and extraction. It demonstrates how e-graphs can be used in compilers for optimizations, offering a more flexible alternative to traditional find-and-replace methods while discussing trade-offs and variatio...

https://bernsteinbear.com/blog/whats-in-an-egraph/
Serializing package requirements in marimo notebooks

Marimo now allows notebooks to serialize their package requirements as top-level comments, enabling users to run notebooks in isolated virtual environments with a single command. This feature, powered by the uv package manager, enhances reproducibility and sharing of notebooks by eliminating the need for separate requirements files and preventing environment pollution.

https://marimo.io/blog/sandboxed-notebooks
Ask HN: Kotlin SpringBoot vs. Python Django for Min Viable Product

https://news.ycombinator.com/item?id=41584157
Deploying a Django app with Kamal, AWS ECR, and Github Actions

The article provides a comprehensive guide on deploying a Django app using Kamal, AWS ECR, and GitHub Actions, offering a streamlined approach to containerized deployment. It covers setting up a VPS, creating a Dockerfile, configuring AWS ECR, setting up Kamal, and automating the deployment process with GitHub Actions, aiming to simplify the deployment workflow for developers.

https://dylancastillo.co/posts/deploy-a-django-app-with-kamal-aws-ecr-and-github-actions.html
13 Python Quirks That Will Surprise You

This video presents 13 peculiar aspects of Python programming, with the final example being particularly confusing for newcomers to the language. Each quirk is demonstrated through code examples, accompanied by explanations for their existence and behavior.

https://www.youtube.com/watch?v=eufjIfVOm8s