PythonHub
2.42K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Procedural music composition with Python

An exploration on composing a musical ensemble using arvo and music21 with minimalistic procedural composition techniques.

https://deepnote.com/@essia/Procedural-music-composition-with-arvo-9b35ebd7-63e0-47bc-a3d5-c503954a083d
Multiprocessing in Python: The Complete Guide

This guide provides a detailed and comprehensive guide to multiprocessing in Python, including how processes work, how to use processes in multiprocessor programming, concurrency primitives used with processes, common questions, and best practices.

https://superfastpython.com/multiprocessing-in-python/
PyTorch 1.12

This release is composed of over 3124 commits, 433 contributors. Along with 1.12, we are releasing beta versions of AWS S3 Integration, PyTorch Vision Models on Channels Last on CPU, Empowering PyTorch on Intel® Xeon® Scalable processors with Bfloat16 and FSDP API.

https://pytorch.org/blog/pytorch-1.12-released/
Python for Data Analysis, 3rd Edition – The Open Access Version Online

https://wesmckinney.com/book/
Custom JSON encoder and decoder

This article explains how to extend the JSON format by using a custom encoder and a custom decoder to turn arbitrary Python objects into JSON and back.

https://mathspp.com/blog/custom-json-encoder-and-decoder
Faster Django Queries With Materialized Views

Materialized views can be very useful for creating reports that will be used repeatedly. They cut down on query times because the query has already been made, and the view has been written to the disk. In this video, Nafiul Islam demonstrates how to create materialized views, explains the benefits of using them, and shows how to integrate them into Django ORM.

https://www.youtube.com/watch?v=qcTGppyu1nw
Faster routing for Flask & Quart

Flask and Quart both utilize Werkzeug's HTTP router to route request paths to the relevant function. With the upcoming 2.2 release of Werkzeug this router will be significantly faster, with up to a factor of 5 seen in testing. This speedup increases with the size of the routing table and so you are likely to see further increases in your production applications.

https://pgjones.dev/blog/faster-routing-2022/