Tags: pythonpoetry
A Python virtual environment is “a self-contained directory tree that contains a Python installation for a particular version of Python, plus a number of additional packages” (quote from the official docs).
More and more, I am using Python tools like Poetry and Black that use pyproject.toml as a central configuration file for packaging and tools. The finalized PEP 518 defined the specification for pyproject.toml, and many tools have adopted it.
HTTPX is a modern HTTP client library for Python. Its interface is similar to the old standby Requests, but it supports asynchronous HTTP requests, using Python’s asyncio library (or trio). In other words, while your program is waiting for an HTTP request to finish, other work does not need to be blocked.
In Part 1, we built a simple Wikipedia search tool using Python and HTTPX.
The Python Standard Library’s own argparse package is the officially recommended way to construct a command line interface (CLI) in Python.
HTTPX is a modern HTTP client library for Python. Its interface is similar to the old standby Requests, but it supports asynchronous HTTP requests, using Python’s asyncio library (or trio). In other words, while your program is waiting for an HTTP request to finish, other work does not need to be blocked.
The Click package makes it easy to develop a pretty command line interface (CLI) for your Python project.
The Python Fire package provides a way to develop a command line interface (CLI) in Python, automatically, with very minimal extra code. The package comes from Google but is “not an official Google product”.