PythonHub
2.43K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
AsyncIO

The author argues that asyncio is too complex, difficult to use, and that its performance benefits are not worth the added complexity for most applications. The author recommends using gevent, another Python library that allows asynchronous programming, as an alternative to asyncio.

https://charlesleifer.com/blog/asyncio/
Understanding CPUs can help speed up Numba and NumPy code

With a little understanding of how CPUs and compilers work, you can speed up NumPy with faster Numba code.

https://pythonspeed.com/articles/speeding-up-numba/
Audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.

https://github.com/facebookresearch/audiocraft
Pro-Tip – pytest fixtures are magic!

Fixtures are building blocks for good tests and can increase development speed. The main issue with writing tests is setting up necessary data before the test, but pytest fixtures make it easier by injecting necessary data into your tests.

https://www.revsys.com/tidbits/pytest-fixtures-are-magic
Bringing Locality of Behaviour to Django Views and URLs

Introducing django-view-decorator, a Django package which brings Locality of Behaviour to your Views and URLs.

https://valberg.dk/bringing-locality-of-behaviour-to-django-views-and-urls.html