forktex

The shared Python substrate for ForkTex services

Logging, errors, typed models, PostgreSQL, Redis, S3 and a FastAPI app factory. Use one module or all of them: each works on its own, and importing one does not load the others.

Stage
Stable: semantic versioning
Licence
AGPL-3.0-or-later, or a commercial licence from FORKTEX S.R.L.

What it does

Structured JSON logs, with a trace id that follows each request, job and thread.

One error hierarchy with stable codes, and the JSON envelope clients receive.

Transactions, ORM models, pagination, advisory locks and SQL migrations on PostgreSQL; a cache on Redis; uploads and presigned links on any S3-compatible server.

A FastAPI app with error envelopes, trace ids, security headers, CORS and health checks.

Technologies

ForkTex Substrate

Contribute

The source and the issues are on GitHub; every release is on PyPI.