Skip to main content

PyPI Python License

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.

pip install forktex

Python 3.14. One install, no extras.

Modules

Module What you get Needs
Basics log Structured JSON logs, with a trace id that follows each request, job and thread —
error One error hierarchy with stable codes, and the JSON envelope clients receive —
types Pydantic base models: camelCase on the wire, frozen value objects, UTC datetimes —
iso Datetimes to and from text, always in UTC —
Infrastructure database Transactions, ORM models, CRUD, pagination, safe client filters, advisory locks, SQL migrations PostgreSQL
cache get/set, a @cached decorator with stale-while-revalidate, key invalidation Redis
storage Upload, download, presigned download and upload links, browser upload forms Any S3-compatible server
App factory api A FastAPI app with error envelopes, trace ids, security headers, CORS and health checks FastAPI (included)

Every module page starts with a complete example you can copy and run, then lists the module's functions, its errors and the things to know.

Where to start

You want to Read
Use one module Its page, linked above
Build a web service, adding modules as you need them The guide: an app first, then a database, a cache, file uploads
Run something outside a web app (a worker, a script) The module's page: every module except api works without FastAPI

Stability

From 1.0.0, semantic versioning covers every name in each module's __all__. Anything else is internal and may change in any release. Changes are listed in the CHANGELOG.

Contributing

Working on forktex itself? Start with docs/development.md.

Licence

AGPL-3.0-or-later, or a commercial licence from FORKTEX S.R.L. (info@forktex.com). See LICENSE and NOTICE.

Metadata

Release files for forktex 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forktex 1.2.0
File Size Uploaded Provenance Actions
forktex-1.2.0.tar.gz 39.0 kB Without provenance Details for forktex-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for forktex 1.2.0
File Interpreter ABI Platform Actions
forktex-1.2.0-py3-none-any.whl Python 3 none any Details for forktex-1.2.0-py3-none-any.whl

Total release size: 111.5 kB

Release files / forktex-1.2.0.tar.gz

Download URL forktex-1.2.0.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f5b82000de1217e0ceab4661ecec40b7259fb031cbbd72fe5fd18704fa18c788
BLAKE2b-256 checksum
How to use checksums
8a9b7695db125b351ea5ab9e0fc615f3c9577b2b7efabe814986d1c03fd6a00e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / forktex-1.2.0-py3-none-any.whl

Download URL forktex-1.2.0-py3-none-any.whl
Size 72.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98e585e7a798e14774c611cd64cc4e1ac5d6646b6b8ec2bfc529357745c5200f
BLAKE2b-256 checksum
How to use checksums
970edf22677a53d17acd55b8f4bdd9f707efa8d72ff7c795538c1ef2f44fe30c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for forktex 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page