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.1.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.1.0
File Size Uploaded Provenance Actions
forktex-1.1.0.tar.gz 38.4 kB Without provenance Details for forktex-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 110.4 kB

Release files / forktex-1.1.0.tar.gz

Download URL forktex-1.1.0.tar.gz
Size 38.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a3ea9be0b0720bfd09961705f136edd012b9cd48b76077f6523b08a02ff0c18f
BLAKE2b-256 checksum
How to use checksums
26f36c919c01fd0b5ce9329091ba25f6a443aa092ee4f54e5c3370b449bae03c
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.1.0-py3-none-any.whl

Download URL forktex-1.1.0-py3-none-any.whl
Size 72.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1a07fef0ee1ca31edf4c80f05fe0b76c28099605812dc8417ba7a72948e32f3d
BLAKE2b-256 checksum
How to use checksums
dd3ce594f9da4ee9aec28823249f2d5e5eeab95dc293a0023000b07aab6d753b
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.1.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