PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
A Beginner's Guide to Unit Testing with Pytest

In this guide, we will explore the core principles of unit testing, delve into Pytest's powerful capabilities, and equip you with the knowledge and skills to write clean, maintainable, and effective tests.

https://betterstack.com/community/guides/testing/pytest-guide/
2
Kafka Consumers in Python - A Walkthrough

Getting data out of Apache Kafka is easy if you know how, so let's go through an example step-by-step. In this walkthrough we take you through the process of creating a simple Kafka Consumer using the Quix Streams library.

https://www.youtube.com/watch?v=eCsSAzTy5cE
Curating Custom Datasets for LLM Training with NVIDIA NeMo Curator

NeMo Curator, which is part of NVIDIA NeMo, offers workflows to download and curate data from various public sources out of the box such as Common Crawl, Wikipedia, and arXiv. It also provides flexibility for developers to customize data curation pipelines to address their unique requirements and create custom datasets. This post walks you through creating a custom data curation pipeline...

https://developer.nvidia.com/blog/curating-custom-datasets-for-llm-training-with-nvidia-nemo-curator/
Signals, shells, and docker: an onion of footguns

The post discusses potential security risks and "footguns" that can arise when using Docker containers, signals, and shells together in a development environment. It highlights how certain combinations of these tools can inadvertently grant excessive permissions or expose sensitive data, emphasizing the need for caution and proper configuration.

https://benchling.engineering/signals-shells-and-docker-an-onion-of-footguns-ee592e2b587b
Working with Excel Files in Python

https://www.python-excel.org/
How good is GPT-4o at generating Flask apps? Surprisingly promising

This article summarizes the findings when asking GPT-4o to generate Flask applications, ranging from a simple "Hello, World!" app to a full-fledged CRUD app with three database models and HTML pages with Tailwind. With careful prompting, GPT-4o can produce working Flask applications and follow (some) best coding practices.

https://ploomber.io/blog/gpt-4o-flask/
Python notebooks for fundamentals of music processing

https://www.audiolabs-erlangen.de/resources/MIR/FMP/C0/C0.html