Skip to main content

mfup-fastapi

from mfup_fastapi import MfupConfig, create_app

app = create_app(
    MfupConfig(
        base_dir="./state",
        authorize=my_authorize,
        prefix="/api",
        client_publish=False,
        on_committed=my_processor,
    )
)

The application supplies identity, scopes and authorize. It may return an absolute per-session baseDir, targetDir, quotas and context. The core remains independent of application scope names. Ordinary multipart carries files; WebSocket carries questions and snapshots.

For embedding, MfupEngine(config).router and .lifespan (or startup/shutdown) manage routing and cleanup. Use one lifecycle per Engine and one process per metadata directory. create_app applies config.prefix and owns the lifecycle.

map_file runs during manifest reception, before body reads and returns a relative path or None. on_committed receives CommitEvent and can return a boolean to override server auto_publish (default False). client_publish=False reserves publication for the backend. Engine exposes get_session, list_staged, open_staged, prepare_publish, publish and retry_committed. Callback failure preserves the accepted files and returns a successful commit with processing='failed'.

Standalone: MFUP_AUTHORIZE=myapp.hooks:authorize python -m mfup_fastapi. MfupConfig.from_env supports the same MFUP_* configuration as the Node package; Python hooks can be callables or module:attribute strings. See docs/EXTENDING.md and the multiuser-scopes example in the repository.

Extension API · HTTP protocol

Russian

Metadata

Release files for mfup-fastapi 3.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 mfup-fastapi 3.1.0
File Size Uploaded Provenance
mfup_fastapi-3.1.0.tar.gz 7.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mfup-fastapi 3.1.0
File Interpreter ABI Platform
mfup_fastapi-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / mfup_fastapi-3.1.0.tar.gz

Download URL mfup_fastapi-3.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fff86e2dc1c0e536467cacf38995c567e5f6f790e21f12c70d8961c8c911e4ce
BLAKE2b-256 checksum
How to use checksums
9dcfdab7400f622fc7b9072e016f7c3d62fa2e88fed4f88761bb75920d54e4ad
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 10, 2026.

Transparency log

Release files / mfup_fastapi-3.1.0-py3-none-any.whl

Download URL mfup_fastapi-3.1.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa880696e1da1ed248e5937de35324eefdc2a68ed210b321fb55957e7d1fa178
BLAKE2b-256 checksum
How to use checksums
cd42d6330e06f4e7f0f8b3333e79d5fd4047f4e442e2793c0c6d8b9efb79fc9d
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 10, 2026.

Transparency log

Security for mfup-fastapi 3.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mfup_fastapi-3.1.0.tar.gz

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 10, 2026.

Transparency log

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