Skip to main content

Runtime settings UI — modules plug their own settings panels into a shared admin view

Project description

simple_module_settings

Runtime settings UI for simple_module apps. Other modules plug their own settings panels into a shared admin view — one page per module tab — without the host having to know about them.

Install

pip install simple_module_settings

What it provides

  • /settings admin page aggregating every installed module's settings panel.
  • register_settings_panel() hook — a module declares {title, inertia_page, requires_permission}; simple_module_settings renders the tab.
  • DB-backed runtime settings table (separate from env-var-driven SM_* settings) for values admins change at runtime.

Usage

Register a panel:

class OrdersModule(ModuleBase):
    meta = ModuleMeta(name="orders")

    def register_settings_panel(self):
        return {
            "title": "Orders",
            "inertia_page": "Orders/SettingsPanel",
            "requires_permission": "orders.manage",
        }

That adds an Orders tab at /settings. The rendered page is a regular Inertia page authored inside the orders module.

Depends on

  • simple_module_core, simple_module_db, simple_module_hosting

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_module_settings-0.0.17.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_module_settings-0.0.17-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

Details for the file simple_module_settings-0.0.17.tar.gz.

File metadata

  • Download URL: simple_module_settings-0.0.17.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_module_settings-0.0.17.tar.gz
Algorithm Hash digest
SHA256 45088005be499e95e91a0c99baabf36b7e8157e03a73043246371af781367230
MD5 d1e0d230281ca0beb1abcf3a50bfd16e
BLAKE2b-256 1e8c3fb100b3be55eb33b6baa3e4d00353c27455679a0948d568bc424cc3495c

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_module_settings-0.0.17.tar.gz:

Publisher: release.yml on antosubash/simple_module_python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file simple_module_settings-0.0.17-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_module_settings-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 d45bf0a249d419a78ae3737472b9a70d90ef6b10efc3a9997ee18c66bd8bfb42
MD5 f518cc74ab53b374212100dbe910cbde
BLAKE2b-256 5efb120cedef0b67d764d3fbbdb217ceeb771c5e0efe4ca62cfde58a1c4636c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_module_settings-0.0.17-py3-none-any.whl:

Publisher: release.yml on antosubash/simple_module_python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page