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.10.tar.gz (33.4 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.10-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_module_settings-0.0.10.tar.gz
  • Upload date:
  • Size: 33.4 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.10.tar.gz
Algorithm Hash digest
SHA256 ee3e15641b08720505b8e7497ccc98546f324b70c2f0aa489ed396f6da3f59af
MD5 12f30231e8b553f7fd93bb45ea4620e9
BLAKE2b-256 003944e84fa764b8ccb935caa27e0a0139e30fa2af5ce41193b92def4393ef03

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_module_settings-0.0.10.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.10-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_module_settings-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 5295486427c8c4ec5cc2a25704609006df209369cac06a940a1dbe24df6cd94e
MD5 04eea5a27c4d9a82cd86aec462783b38
BLAKE2b-256 acc759d590071dc2fac9f95075a3c715c1e5c9feb380a94f4a5d9fcf0f8f42ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for simple_module_settings-0.0.10-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