PythonHub
2.36K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Hashquery, a Python library for defining reusable analysis

https://hashquery.dev/
PySheets – Spreadsheet UI for Python

https://pysheets.app/
1
Learn to use Websockets with Django by building your own ChatGPT

Everything you need to know about websockets to use them in your applications, with Django, channels, and HTMX.

https://www.saaspegasus.com/guides/django-websockets-chatgpt-channels-htmx/
Django from first principles

Many people don't realize you can start a Django project with a single file. This series walks through the process of building a simple but non-trivial project by starting with a single file. The project only expands to additional files when it makes sense to move code out of the main file. By the end of the series, we'll have a project with a structure similar to what's generated by sta...

https://www.mostlypython.com/django-from-first-principles-2/
Asyncio Coroutine Object Methods in Python

We can define coroutine methods on custom Python objects. This allows methods on custom Python objects to use async/await syntax, such as awaiting other coroutines and tasks and allows the custom coroutine methods themselves to be awaited within our asyncio programs. In this tutorial, you will discover how to define object methods as coroutines.

https://superfastpython.com/asyncio-coroutine-methods/
Local LLM-as-judge evaluation with lm-buddy, Prometheus and llamafile

This post examines how different software components came together to allow LLM-as-judge evaluation without the need for expensive GPUs. All the components were built with and chosen for their user control, open source nature, and interoperability.

https://blog.mozilla.ai/local-llm-as-judge-evaluation-with-lm-buddy-prometheus-and-llamafile
TypeIs does what I thought TypeGuard would do in Python

The article discusses the differences between the TypeGuard and TypeIs type annotations in Python. It explains that TypeIs has more intuitive behavior compared to TypeGuard, especially when dealing with union types, and recommends using TypeIs over TypeGuard in most cases.

https://rednafi.com/python/typeguard_vs_typeis/
Sleepsort: Sorting while sleeping

The post introduces the "sleepsort" algorithm, a quirky sorting method that utilizes thread sleep times to sort integers in ascending order. It provides a playful yet insightful exploration of the algorithm's functionality and limitations.

https://animeshchouhan.com/posts/sleepsort