PythonHub
2.42K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Django things you want with HTMX

SummaryUse HTTP 303 for redirections.Setup django-htmx to see Django error response pages despite ...

https://www.bitecode.dev/p/django-things-you-want-with-htmx
Things I’ve learned about building CLI tools in Python

I build a lot of command-line tools in Python. It’s become my favorite way of quickly turning a piece of code into something I can use myself and package up for other people to use too. Here are some notes on what I’ve learned about designing and implementing CLI tools in Python so far.

https://simonwillison.net/2023/Sep/30/cli-tools-python/
Mastering Integration Testing with FastAPI

Integration Testing FastAPI: Harnessing the Power of Mocking Backend Services with MongoMock, MockS3, and More.

https://alex-jacobs.com/posts/fastapitests/
Python Type Hints: pyastgrep case study

The author shares their experience adding type hints to Python code in their tool pyastgrep. They discuss the challenges and benefits of using static type checking and interactive programming help to catch errors and improve code readability.

https://lukeplant.me.uk/blog/posts/python-type-hints-pyastgrep-case-study/