Skip to main content

OpenStorPlugin

pipeline status coverage report codecov

Features

  • BaseConfig — Config model with Jinja2 interpolation — Pydantic models whose string fields are automatically resolved against a shared config dictionary. Supports chained variables, nested access, inheritance, strict/lenient modes, and per-field opt-out.
  • Variables and secrets, scoped per model — every BaseConfig (root and nested) has model_variables (read as {{ config.KEY }}), declared_variables (names a template may reference before they have a value) and secrets (read as {{ secrets.KEY }}, a separate namespace). A value set on a model propagates to its nested models; priority is own > parent > store, and siblings never see each other's values. DockerContainerOptions.to_docker() drops all three before calling docker-py.
  • @task() decorator — Declare typed, documented tasks on your controller. Tasks are auto-discovered and validated against the method signature at runtime.
  • ControllerPlugin base class — Ready-to-extend controller with install / uninstall lifecycle, idempotent Authentik provider & application creation, Docker deployment orchestration, and bind-mount management.
  • ControllerHooks — Callback interface (save_config) letting ControllerPlugin persist configuration changes back into the store, passed in at construction.
  • DockerEngineConnector — Manage containers, networks, inspect, and exec commands against a local Docker daemon.
  • AuthentikConnector — Create OAuth2 providers and applications via the Authentik API.
  • Smarthost models — Typed configuration models for Traefik, Authentik, LDAP, and Docker services.
  • Jinja2 sandbox — Config templates are rendered in a sandboxed environment that blocks unsafe attribute access (dunder, method calls).

Installation

pip install openstoreplugin

Usage

Define your application configuration by subclassing BaseConfig:

from openstoreplugin import BaseConfig, ControllerPlugin
from openstoreplugin.models import ApplicationConfiguration, OpenStoreConfigModel


class MyAppConfig(ApplicationConfiguration):
    """Override or extend the base config."""

    pass


class MyController(ControllerPlugin):
    """Your custom controller logic."""

    def _install(self, time_to_start: int) -> None:
        # Your install logic here
        pass

    def _uninstall(self, cleanup_volumes: bool) -> None:
        # Your uninstall logic here
        pass


store_config = OpenStoreConfigModel(...)
app_config = MyAppConfig(...)
controller = MyController(app_config, store_config, hooks=MyControllerHooks())

# List available tasks
for name, task in controller.get_tasks().items():
    print(f"{name}: {task.description}")

# Execute a task
controller.execute_task("Install", time_to_start=120)

License

The project is released under the MIT License.

Project Status

NOTE
The project is currently in development phase. If you have any remark or question feel free to open an Issue

Metadata

Release files for openstoreplugin 0.2.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 openstoreplugin 0.2.0
File Size Uploaded Provenance Actions
openstoreplugin-0.2.0.tar.gz 32.6 kB Without provenance Details for openstoreplugin-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openstoreplugin 0.2.0
File Interpreter ABI Platform Actions
openstoreplugin-0.2.0-py3-none-any.whl Python 3 none any Details for openstoreplugin-0.2.0-py3-none-any.whl

Total release size: 80.0 kB

Release files / openstoreplugin-0.2.0.tar.gz

Download URL openstoreplugin-0.2.0.tar.gz
Size 32.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e8611440b175d56c7255a6d60399db77c0afc51c2e688636149be9fee463c10b
BLAKE2b-256 checksum
How to use checksums
2bc22a1a695216a75dd3e4dc120635429b93f78a8073df49d422a17b607eb700
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.16 Linux/6.1.0-54-amd64

Release files / openstoreplugin-0.2.0-py3-none-any.whl

Download URL openstoreplugin-0.2.0-py3-none-any.whl
Size 47.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c30ed42438742dc4ec82c6ee8ebcafc56dec81a640710aa0efc98b128a60e74
BLAKE2b-256 checksum
How to use checksums
420efd3eaed0f40a090f5db31150e627dbcf40bdb743277f9d89e0f1d7d717c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.16 Linux/6.1.0-54-amd64

Security for openstoreplugin 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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