Skip to main content

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-wired FastAPI instance 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 host plugin — smpy host gen-pages regenerates the frontend pages manifest; smpy host sync-js-deps installs JS deps declared by installed modules. The smpy binary itself comes from simple_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_db
  • fastapi, fastapi-inertia, starlette, uvicorn, click, jinja2, httpx

License

MIT — see LICENSE.

Metadata

Release files for simple-module-hosting 0.0.44

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simple-module-hosting 0.0.44
File Size Uploaded Provenance Actions
simple_module_hosting-0.0.44.tar.gz 306.5 kB With provenance Details for simple_module_hosting-0.0.44.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-module-hosting 0.0.44
File Interpreter ABI Platform Actions
simple_module_hosting-0.0.44-py3-none-any.whl Python 3 none any Details for simple_module_hosting-0.0.44-py3-none-any.whl

Total release size: 511.6 kB

Release files / simple_module_hosting-0.0.44.tar.gz

Download URL simple_module_hosting-0.0.44.tar.gz
Size 306.5 kB
Tags Source
SHA-256 checksum
How to use checksums
38d9e4073e89077932c642c7262d2ef5c7e6c07edd5f36994a6642c2df76eb84
BLAKE2b-256 checksum
How to use checksums
ca208ada2a8f9c4b3d4c7b103c63ce53f86e158b68ccecf3dde6570d598decb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

Release files / simple_module_hosting-0.0.44-py3-none-any.whl

Download URL simple_module_hosting-0.0.44-py3-none-any.whl
Size 205.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ab44b7e6a2a2bc25ca5455a03ee11f6b671863b41db479856e9c6cf5146b4ed
BLAKE2b-256 checksum
How to use checksums
a82aaef9b8cc5bd7daa441ba62a5d71a9deeb2be3dd37859ea1117cd8367efd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 6, 2026.

Transparency log

Security for simple-module-hosting 0.0.44

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for simple_module_hosting-0.0.44.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 Nov 6, 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.

Release history Release notifications | RSS feed

This release

0.0.44 This release

2 release files Full provenance

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