Skip to main content

mflux-web

Install (once published):

pip install mflux-web

Both entry points expose the same public API:

import mflux.web
import mflux_web

assert mflux.web.__version__ == mflux_web.__version__

mflux_web owns the implementation and works without installing or importing mflux. mflux.web is a thin facade; explicitly re-export new public symbols there as the API grows. The two packages are not identical module objects, and submodules are not automatically aliased. This initial scaffold has no web server or application API yet.

Namespace ownership

This distribution owns mflux/web/__init__.py and mflux_web/. It deliberately does not ship mflux/__init__.py or require the inference distribution. mflux.web uses pkgutil.extend_path so other distributions can contribute subpackages even from separate import paths.

A plugin distribution can ship:

src/
└── mflux/
    └── web/
        └── anythingelse/
            └── __init__.py

With this uv build configuration:

[project]
name = "mflux-web-anythingelse"
version = "0.1.0"
dependencies = ["mflux-web>=0.1.0"]

[build-system]
requires = ["uv_build>=0.12.15,<0.13.0"]
build-backend = "uv_build"

[tool.uv.build-backend]
module-name = "mflux.web.anythingelse"

Consumers can then use import mflux.web.anythingelse. Plugins must not ship mflux/__init__.py or mflux/web/__init__.py; each owns a unique child name.

Integration with the mflux parent

The existing mflux project has a regular mflux/__init__.py. Normal wheel installations into the same site-packages directory coexist with this package. For separate editable installs or other split-path layouts, add this to the mflux project's existing src/mflux/__init__.py, retaining its current setup:

from pkgutil import extend_path

__path__ = extend_path(__path__, __name__)

Without that parent change, an installed regular mflux package can hide an editable mflux-web checkout. Setting namespace = true in build configuration does not change Python's runtime import behavior. This repository does not modify or replace the parent initializer.

Development

Use uv-managed Python 3.14 for development; the library supports Python 3.10+.

uv sync
uv build
uv run python -m unittest discover -s tests -v

The tests build the distributions in a temporary directory and check their contents and imports in isolated subprocesses, including third-party namespace contributions and regular-parent coexistence.

Metadata

Release files for mflux-web 0.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 mflux-web 0.1.0
File Size Uploaded
mflux_web-0.1.0.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mflux-web 0.1.0
File Interpreter ABI Platform
mflux_web-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / mflux_web-0.1.0.tar.gz

Download URL mflux_web-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1ce7f0ffebffd07720c212d38c02c41a668f1d5261c27c33ac69e24ee5d38088
BLAKE2b-256 checksum
How to use checksums
b7fc76d39dbdb33c11c11fc282fbd1b8e0b89e135a88a8d8a5adce89965a6345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mflux_web-0.1.0-py3-none-any.whl

Download URL mflux_web-0.1.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6a2439d7ee0923f822fbda7d693f07ba04cf9c2eb94eb1b1e30b0abc4c6fbed
BLAKE2b-256 checksum
How to use checksums
3a89edc94615e081b18416c60f9bf6c3a643b20de4d2a50c6ec3da0ef6ba7bdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
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