PythonHub
2.42K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Building an API in the cloud in fewer than 200 lines of code

Cloud tools and Python packages have become so powerful that you can build a (scalable) cloud-based API in fewer than 200 lines of code. In this post, you’ll see how to use Google Cloud, Terraform, and FastAPI to deploy a queryable data API on the cloud.

https://aeturrell.com/blog/posts/build-a-cloud-api/build-a-cloud-api.html
Python variables, references and mutability

SummaryThe analogy of putting things in a box that works for most languages to explain variables ...

https://www.bitecode.dev/p/python-variables-references-and-mutability
LangChain Crash Course for Beginners

LangChain is a framework designed to simplify the creation of applications using large language models. It makes it easy to connect AI models with a bunch of different data sources so you can create customized NLP applications.

https://www.youtube.com/watch?v=lG7Uxts9SXs
BoTorch

BoTorch is a library for Bayesian Optimization research built on top of PyTorch.

https://botorch.org/
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/