Python
ormpathsqlasyncform
Python is a widely used high-level, general-purpose, interpreted, dynamic programming language.
Language deep dives
- Decorators - wrapping callables (with
functools.wraps, arguments, stacking, and the kinds of decorators). - Descriptors - the
__get__/__set__protocol behind properties, methods and ORM fields.
Web frameworks
- Django - the batteries-included framework (see also Django authentication).
- FastAPI and Starlette - the async, type-hinted stack (FastAPI builds on Starlette).
- Jinja2 - templating.
- WTForms - form handling and validation (a legacy choice today).
Data and libraries
- Pandas, Jupyter - data wrangling, notebooks.
- SQLAlchemy - SQL toolkit and ORM (see also Databases).
- Testing with Python - pytest in practice.
- Odoo - the ERP framework.
- Bonobo - ETL toolkit (not maintained for now).
Cookbook
Compute the directory of the current file:
import os
__path__ = os.path.dirname(os.path.join(os.getcwd(), __file__))