Skip to main content

omniplayr-plugins

Backend development SDK for OmniPlayr plugins.

Install it in a plugin development environment:

pip install omniplayr-plugins

Plugin authors can import the public backend SDK from one namespace:

from omniplayr.plugins import BackendPlugin, api, register

This package is intentionally lightweight. It provides type hints, typed placeholders, protocols, docstrings, and IDE autocomplete support for backend plugin development. The actual runtime implementation is provided by the OmniPlayr server and Docker runtime when a plugin is loaded.

Documentation

Read the full backend plugin documentation:

https://omniplayr.wokki20.nl/docs/plugins/building/backend/#backend-plugin-overview

API Map

  • BackendPlugin, PluginBase, register, get_plugin, get_backend_plugin_dir, get_plugin_router, load_plugins View Documentation

  • api, PluginApi, RouteHandler, RouteDecorator View Documentation

  • PluginFunctions, expose, expose_function, call, call_plugin_function, is_installed, is_plugin_available, has_function, is_plugin_function_available, mark_plugin_loaded, remove_plugin, PluginNotAvailableError, PluginFunctionNotFoundError View Documentation

  • get_plugin_config, reload_plugin_config, flatten_plugin_configs, get_config, load_configs, flatten_configs, flatten_frontend_configs, TomlValue, FlatConfigItem, deep_merge, sync_config, start_config_watcher, ConfigChangeHandler

  • request_db_access, PluginDB, ProtectionLevel, get_conn, is_safe_sql_identifier, parse_column_type, can_convert_column, init_db, init_db_when_ready

  • verify_auth, verify_admin, verify_token, get_admin_status, match_account, get_token_user, create_access_token, parse_interval

  • list_accounts, get_account, create_account, update_account, delete_account, account tokens, password verification, and two-factor helpers

  • notify, notify_once, notify_sync, notify_once_sync, get_notifications, get_unread_count, mark_read, delete_notification, NotificationManager

  • log, log_exception, get_logs, exception hook setup helpers, diagnostics helpers, health, ServiceStatus, HealthResponse

  • fetch_plugin_info, install_plugin, install_local_plugin, check_for_updates, apply_update, start_https_proxy, user_warn

Local Testing

From this package:

python -m pip install -e .
python - <<'PY'
from omniplayr.plugins import BackendPlugin, api, register

class MyPlugin(BackendPlugin):
    source_type = "example"

register(MyPlugin())

@api.get("/health")
def health() -> dict[str, str]:
    return {"ok": "true"}

print("omniplayr.plugins import OK")
PY

The SDK exports a PEP 561 py.typed marker so type checkers such as Pylance, Pyright, and mypy can understand the package.

Deprecation Policy

Backend SDK APIs should be deprecated before they are removed. When an API is being replaced, the OmniPlayr server should keep a compatibility wrapper with metadata at the top of the docstring:

def old_helper() -> None:
    """@deprecated=true
    Use `new_helper` instead.
    """

The SDK generator records the first backend version where the marker appears in backend/deprecations.json, then renders the SDK docstring as a normal deprecation notice. You can also pin the version manually:

def old_helper() -> None:
    """@deprecated=true
    @deprecated_since=2026.7.2
    Use `new_helper` instead.
    """

Deprecated APIs remain exported by this SDK for at least one year. They are only removed during an annual major compatibility cleanup, so plugin authors have a full yearly release window to migrate.

Metadata

Release files for omniplayr-plugins 2026.11.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 omniplayr-plugins 2026.11.0
File Size Uploaded Provenance Actions
omniplayr_plugins-2026.11.0.tar.gz 10.3 kB With provenance Details for omniplayr_plugins-2026.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omniplayr-plugins 2026.11.0
File Interpreter ABI Platform Actions
omniplayr_plugins-2026.11.0-py3-none-any.whl Python 3 none any Details for omniplayr_plugins-2026.11.0-py3-none-any.whl

Total release size: 28.3 kB

Release files / omniplayr_plugins-2026.11.0.tar.gz

Download URL omniplayr_plugins-2026.11.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3ca8faa0dcb044bdef25757b4a74c6a4cf858663fd8084178733e3c70b0ae171
BLAKE2b-256 checksum
How to use checksums
c5988e1d607d745eef74f8422e48c986fa719749878d9a45ed42072e8020e963
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 28, 2026.

Transparency log

Release files / omniplayr_plugins-2026.11.0-py3-none-any.whl

Download URL omniplayr_plugins-2026.11.0-py3-none-any.whl
Size 18.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0f1b5123ea948d2994968823f95a87ea325d27feb38af18dfb4b289e3a2e010
BLAKE2b-256 checksum
How to use checksums
f5f582a36e270447e97e38c29e21d8a3aa398c6631c5c60287259e9ceacc5dd3
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 28, 2026.

Transparency log

Security for omniplayr-plugins 2026.11.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.

Full provenance

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

Select from 2 files

Attestation for omniplayr_plugins-2026.11.0.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 28, 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.

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