1140
News & links about Python programming. https://pythonhub.dev/ Administrator: @rukeba
Python Hub Weekly Digest for 2024-02-25
https://pythonhub.dev/digest/2024-02-25/
mwmbl
An open source, non-profit search engine implemented in Python.
https://github.com/mwmbl/mwmbl
Visualizing Neural Network Internals
Visualizing some of the internals of a neural network during training and inference.
https://www.youtube.com/watch?v=ChfEO8l-fas
Lag-Llama
Towards Foundation Models for Probabilistic Time Series Forecasting.
https://github.com/time-series-foundation-models/lag-llama
HypoFuzz
Open source smart fuzzing for Python's best testing workflow.
https://github.com/Zac-HD/hypofuzz
Toolong
A terminal application to view, tail, merge, and search log files (plus JSONL).
https://github.com/textualize/toolong
TriOTP
The OTP framework for Python Trio.
https://github.com/linkdd/triotp
Ask HN: Which Python type checker should I use?
https://news.ycombinator.com/item?id=39416443
Why use Pycharm Pro in 2024?
https://www.reddit.com/r/Python/comments/1aqr39j/why_use_pycharm_pro_in_2024/
How to avoid a count query in Django if you can
https://www.peterbe.com/plog/how-to-avoid-a-count-query-in-django-if-you-can
Adopt-ruff: find uncobfigured rules easily
Adopt ruff faster into your existing repo: find the easiest rules to start with
https://github.com/ScDor/adopt-ruff
Recording and visualising the 20k system calls it takes to "import seaborn"
https://www.reddit.com/r/Python/comments/1asjcnm/recording_and_visualising_the_20k_system_calls_it/
uv: Python Packaging in Rust
https://astral.sh/blog/uv
Everything You Can Do with Python’s textwrap Module
https://towardsdatascience.com/everything-you-can-do-with-pythons-textwrap-module-0d82c377a4c8
Everything You Can Do with Python's textwrap Module
Python has many options for formatting strings and text, including f-strings, format() function, templates and more. There's however one module that few people know about and it's called textwrap. This module is specifically built to help you with line-wrapping, indentation, trimming and more, and in this article we will look at all the things you can use it for.
https://martinheinz.dev/blog/108
netease-youdao / QAnything
Question and Answer based on Anything.
https://github.com/netease-youdao/QAnything
Summary of Major Changes Between Python Versions
This post is designed to be a quick reference for the major changes introduced with each new version of Python. This can help with taking advantages of using new features as you upgrade your code base, or ensuring that you have the correct guards for compatibility with older versions.
https://www.nicholashairs.com/posts/major-changes-between-python-versions/
Handling Tasks in Asyncio Like a Pro
https://jacobpadilla.com/articles/handling-asyncio-tasks
The Many Ways to Deploy a Model
There are many ways to deploy models and perform inference. Here, we share our decision rubric for model deployments using LLM inference as an example.
https://outerbounds.com/blog/the-many-ways-to-deploy-a-model
Why AI has a Python Problem
Artificial Intelligence (AI) has propelled Python to unprecedented popularity, making it the go-to language for developers and researchers worldwide. Yet, beneath the surface, a significant challenge looms. Let's get into the specific difficulties Python poses for AI's evolution, backed by real-world examples and technical insights.
https://www.youtube.com/watch?v=cGgTvMmtzNU
Counting CPU Instructions in Python
Did you know it takes about 17,000 CPU instructions to print("Hello") in Python? And that it takes ~2 billion of them to import seaborn?
https://blog.mattstuchlik.com/2024/02/08/counting-cpu-instructions-in-python.html
modguard
A Python tool to enforce a modular, decoupled package architecture.
https://github.com/Never-Over/modguard
Think Python, 3rd Edition
https://allendowney.github.io/ThinkPython/
ml-mgie
Apple's new open-source AI model that can edit images based on natural language instructions.
https://github.com/apple/ml-mgie
Meta loves Python
Meta engineers discuss their contributions to Python 3.12, including new features such as custom JIT hooks, Immortal Objects, type system improvements, and faster comprehensions, highlighting their collaboration with the Python community and the company's support for open source
https://engineering.fb.com/2024/02/12/developer-tools/meta-loves-python/
Engineering Practices for LLM Application Development
LLM engineering involves much more than just prompt design or prompt engineering. In this article, we share a set of engineering practices that helped us deliver a prototype LLM application rapidly and reliably in a recent project. We'll share techniques for automated testing and adversarial testing of LLM applications, refactoring, as well as considerations for architecting LLM applicat...
https://martinfowler.com/articles/engineering-practices-llm.html
Codium-ai / AlphaCodium
Official implementation for the paper: "Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineering""
https://github.com/Codium-ai/AlphaCodium
instld
The simplest package management.
https://github.com/pomponchik/instld
Not just NVIDIA: GPU programming that runs everywhere
If you want to run GPU programs in CI, on Macs, and more, wgu-py is a good option.
https://pythonspeed.com/articles/gpu-without-cuda/
logot
Test whether your code is logging correctly.
https://github.com/etianen/logot