simple_module_hosting
FastAPI + Inertia.js host runtime for the simple_module framework — builds the app, wires the middleware pipeline, and contributes the smpy host plugin to the standalone smpy CLI.
Install
pip install simple_module_hosting
For a new project, most users run the generator instead (shipped by the standalone simple_module_cli distribution):
uvx --from simple_module_cli smpy new my-app
What it provides
create_app(settings)— returns a fully-wiredFastAPIinstance with all discovered modules registered.- Middleware pipeline (execution order): CorrelationId → RequestLogging → SecurityHeaders → Session →
<module middleware>→ Tenant (opt-in) → Locale → InertiaLayoutData → app. - Inertia wiring — shared props (
auth,menus,i18n),InertiaDep, page-route lookup. smpy hostplugin —smpy host gen-pagesregenerates the frontend pages manifest;smpy host sync-js-depsinstalls JS deps declared by installed modules. Thesmpybinary itself comes fromsimple_module_cli.
Usage
Minimal main.py:
from simple_module_hosting import create_app
from simple_module_hosting.settings import Settings
settings = Settings() # reads SM_* env vars
app = create_app(settings) # discovers + registers every installed module
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
CLI (after also installing simple_module_cli):
smpy host gen-pages # regenerate client_app/modules.generated.ts
smpy host sync-js-deps # sync module JS deps into client_app/node_modules
Depends on
simple_module_core,simple_module_dbfastapi,fastapi-inertia,starlette,uvicorn,click,jinja2,httpx
License
MIT — see LICENSE.
Metadata
Release files for simple-module-hosting 0.0.35
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| simple_module_hosting-0.0.35.tar.gz | 145.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_module_hosting-0.0.35-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 243.8 kB
Release files / simple_module_hosting-0.0.35.tar.gz
| Download URL | simple_module_hosting-0.0.35.tar.gz |
|---|---|
| Size | 145.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16e9f1bb6d39304e46536adbe0ca42f737c75d34d5a3d5b31012a2121e0178fe
|
|
BLAKE2b-256 checksum How to use checksums |
c54b2c083c1082feb11a4adfe6b00c9cf78f8d889d8693b3d6e51842db09b087
|
| 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 Oct 1, 2026.
Transparency logRelease files / simple_module_hosting-0.0.35-py3-none-any.whl
| Download URL | simple_module_hosting-0.0.35-py3-none-any.whl |
|---|---|
| Size | 98.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc726449a41257e9b41b05ec195c39ab4372046afeb2c7781a7253b4ba6ebae3
|
|
BLAKE2b-256 checksum How to use checksums |
dfd0333c5d6c93f658d2fa9a3f2059fdf081d1fcaeb5e2f22262da6da8aad9af
|
| 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 Oct 1, 2026.
Transparency logSecurity for simple-module-hosting 0.0.35
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.
Attestation for simple_module_hosting-0.0.35.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 Oct 1, 2026.
Transparency logA 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.