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 at publication planning time 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.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 mfup-fastapi 3.0.0
File Size Uploaded Provenance
mfup_fastapi-3.0.0.tar.gz 7.9 kB With provenance Details

Built distribution (wheel)

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

Total release size: 16.7 kB

Release files / mfup_fastapi-3.0.0.tar.gz

Download URL mfup_fastapi-3.0.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2d8009664ca9699655581fee022bb61ed868fbc99ceaca438514f412ba8526a0
BLAKE2b-256 checksum
How to use checksums
c33cb0e23d569fbc315a5a1bbdd08c350510c07ed06b2d7c985fec6fb91fca5d
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.0.0-py3-none-any.whl

Download URL mfup_fastapi-3.0.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13022cd2c9bac52d04fcd56b290a114582103711a6ea3fc265023176a59ae06c
BLAKE2b-256 checksum
How to use checksums
b794c83d2003638159826fd2de71b598b84f45f02ed0d871dfc7e62d56fd497e
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.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.

Full provenance

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

Select from 2 files

Attestation for mfup_fastapi-3.0.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