PythonHub
2.44K subscribers
2.35K photos
49.3K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Problems faced when downstream testing Python packages

The article explores the importance of downstream testing in Python package development, focusing on the challenges and strategies for ensuring reliable and compatible software dependencies. It provides insights into various testing techniques and tools to enhance the quality and compatibility of Python packages in real-world scenarios.

https://mgorny.pl/articles/downstream-testing-python-packages.html
Lightning-AI / lit-gpt

Hackable implementation of state-of-the-art open-source LLMs based on nanoGPT. Supports flash attention, Int8 and GPTQ 4bit quantization, LoRA and LLaMA-Adapter fine-tuning, pre-training. Apache 2.0-licensed.

https://github.com/Lightning-AI/lit-gpt
Organizing Database Queries: Managers vs. QuerySets

In this article Mariusz Felisiak introduces concepts of Django's Managers and QuerySet to organize common database queries.

https://fly.io/django-beats/organizing-database-queries-managers-vs-querysets/
Building a Toy Programming Language in Python - Part 1

The first installment of this series shows how to implement the lexer, parser and interpreter for a very simple version of the language that did only one thing: print numbers.

https://blog.miguelgrinberg.com/post/building-a-toy-programming-language-in-python
The easiest way to speed up Python with Rust

If you want to speed up some existing Python code, writing a compiled extension in Rust can be ...

https://pythonspeed.com/articles/easiest-rust-python/
CLI tools hidden in the Python standard library

A comprehensive collection of practical tips and examples showcasing various command-line interface (CLI) tools available in the Python Standard Library, providing valuable guidance for developers looking to leverage these built-in functionalities for efficient scripting and automation.

https://til.simonwillison.net/python/stdlib-cli-tools
Using the AWS Parameters and Secrets Lambda Extension with Python: A Practical Example

Using the AWS Parameters and Secrets Lambda Extension can speed up your Lambda code and save you money. In this practical example we will go through a full example, complete with a couple of gotchas I found that could catch you out.

https://community.aws/posts/parameters-and-secrets-lambda-extension-with-python
GPT Engineer: Things Are Starting to Get Weird

GPT Engineer is another nail in the coffin of software developers. In this video, I'll show you how it works. The tool is crazy powerful. Just specify what you want it to build, and then, well, it just builds it. I’ll show you how it works in today's video and share my thoughts on where this technology might lead us.

https://www.youtube.com/watch?v=FPZONhA0C60
Generating Code without Generating Technical Debt?

The article also provides some tips on how to make the code generated by ChatGPT more maintainable, such as using short functions, splitting the code into smaller files, and using comments to explain the code.

https://sourcery.ai/blog/chatgpt-maintainable-code/