PythonHub
2.37K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Build a Connect Four game with HTMX and Django in 8 minutes

By the end, you'll have built a multiplayer game using HTMX, using neat server-side logic and storing all results in your database. HTMX is a great way to use javascript without writing javascript.

https://www.photondesigner.com/articles/connect4-htmx
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