Skip to main content

Manifest for Python

CI PyPI version PyPI downloads

An API rejects your request. Manifest fixes it and retries. You do nothing.

pip install mnfst
from mnfst import manifest

manifest()  # once, at startup
# Keep making your API calls as usual.

Works with httpx, httpx2 (sync and async) and requests, for JSON and form-urlencoded bodies. Python 3.10+. The import name is mnfst.

How Manifest heals a failed request: a 400 reaches Manifest, drops to a patch from the knowledge base or the healing agents, and is retried once, returning a 200 OK

Setup

  1. Create a project in your Manifest dashboard and copy its project key.
  2. Turn on Autofix in Project Settings.
  3. Set the key:
export MNFST_KEY='your-project-key'

Call manifest() once at startup, before your first request.

See it work

import httpx
from mnfst import manifest

manifest(on_heal=lambda e: print("[manifest]", e.heal_status, e.replay_status_code))

res = httpx.post(
    "https://api.example.com/orders",
    json={"limit": 500},  # rejected? Manifest retries with a valid limit
)

Good to know

  • Agent tools are covered. A tool that calls an API through one of these clients is healed with nothing to wrap.
  • Retries repeat side effects. Use idempotency keys on non-idempotent calls.
  • A heal adds up to 60 s to a failed request. Successful requests are untouched and never contact Manifest.
  • Not intercepted: custom httpx transports and aiohttp.
  • Privacy. Failed URLs, headers, JSON or form-urlencoded bodies, and error responses are sent to Manifest. Known credentials are masked, but nested secrets and business data are not. Enable it only for traffic you allow Manifest to process.

More

Configuration, limits & development · API contract · Node.js SDK

Release files for mnfst 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 mnfst 1.0.0
File Size Uploaded
mnfst-1.0.0.tar.gz 51.5 kB Details

Built distribution (wheel)

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

Total release size: 72.5 kB

Release files / mnfst-1.0.0.tar.gz

Download URL mnfst-1.0.0.tar.gz
Size 51.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7cfbf49a2da55913cc088d7dc209419ce01bfc95b295ae85743b90e631aa46ae
BLAKE2b-256 checksum
How to use checksums
1b24690ec5318591603a87cafa9bc6112ab43287da6621ac64d24078001a31fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / mnfst-1.0.0-py3-none-any.whl

Download URL mnfst-1.0.0-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a5d63c57ed182d46e618cd59ed5a7c87e5d19957bda2735956d4c4b587f1620
BLAKE2b-256 checksum
How to use checksums
c95b4644356e26e14382b6d06a3ce033e45bc82afc2bc03e921b2f394ea2fad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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