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_pluginsView Documentation -
api,PluginApi,RouteHandler,RouteDecoratorView 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,PluginFunctionNotFoundErrorView 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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| omniplayr_plugins-2026.11.2.tar.gz | 10.3 kB | With provenance | Details for omniplayr_plugins-2026.11.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omniplayr_plugins-2026.11.2-py3-none-any.whl | Python 3 | none | any | Details for omniplayr_plugins-2026.11.2-py3-none-any.whl |
Total release size: 28.3 kB
Release files / omniplayr_plugins-2026.11.2.tar.gz
| Download URL | omniplayr_plugins-2026.11.2.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe4b4139a82e2fbb2d9549e2db576d796b94bf41224323f7d8d79614a1d993c5
|
|
BLAKE2b-256 checksum How to use checksums |
2b505dcf1d7164a7b34955af1a4d72b6acc7c552334ca2354677a51b02a58f64
|
| 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 logRelease files / omniplayr_plugins-2026.11.2-py3-none-any.whl
| Download URL | omniplayr_plugins-2026.11.2-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9aacb6a3bd9a8c183702aa0cfd328c0f9e9ca53691dcdb9693be5e43adbcffc
|
|
BLAKE2b-256 checksum How to use checksums |
507c75df73f71572d3e163898e76886c3315c189fb40c11bea9207759d47b0ac
|
| 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 logSecurity for omniplayr-plugins 2026.11.2
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.
Attestation for omniplayr_plugins-2026.11.2.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 logA 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.