PythonHub
2.43K subscribers
2.35K photos
49.2K 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
SevaSk / ecoute

Ecoute is a live transcription tool that provides real-time transcripts for both the user's microphone input (You) and the user's speakers output (Speaker) in a textbox. It also generates a suggested response using OpenAI's GPT-3.5 for the user to say based on the live transcription of the conversation.

https://github.com/SevaSk/ecoute
symbex: search Python code for functions and classes, then pipe them into a LLM

symbex is a new Python CLI tool that allows you to search Python code for functions and classes by name or wildcard, then see just the source code of those matching entities. symbex can then be used to pipe the source code into a large language model (LLM) for further analysis.

https://simonwillison.net/2023/Jun/18/symbex/