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.0.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.0.0
File Size Uploaded Provenance Actions
forktex-1.0.0.tar.gz 36.8 kB Without provenance Details for forktex-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 106.1 kB

Release files / forktex-1.0.0.tar.gz

Download URL forktex-1.0.0.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
70724f742cdf79ba8f44e7fca844982e31344be2e709575e2573fe426514de5f
BLAKE2b-256 checksum
How to use checksums
3ce9219409bb657a398b928beadc64453098f27743b6a52ada216826ed40ee41
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.0.0-py3-none-any.whl

Download URL forktex-1.0.0-py3-none-any.whl
Size 69.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43d1b4a329457b13d18bca5f90120b74b1a21d155b3f44295f704e366cf85da5
BLAKE2b-256 checksum
How to use checksums
5271c54e8c80f09b18c01297541816ae88e9baf61b6a6b3c36086a2ae0826c41
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.0.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