Unmanic-API
Asynchronous Python client for Unmanic.
Please note that not all features of the v2 API have been implemented, rather a few key endpoints that most users should find useful for automation.
Installing
pip install unmanic-api
Quick-Start Example
"""
Pause resume example.
Connect to Unmanic instance, pause worker "W0", wait 5 seconds and resume worker "W0".
"""
import asyncio
from unmanic_api import Unmanic
async def main():
async with Unmanic('localhost') as unmanic:
print(await unmanic.pause_worker("W0"))
await asyncio.sleep(5)
print(await unmanic.resume_worker("W0"))
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
See Also
Metadata
Release files for unmanic-api 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| unmanic_api-0.0.5.tar.gz | 20.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| unmanic_api-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.5 kB
Release files / unmanic_api-0.0.5.tar.gz
| Download URL | unmanic_api-0.0.5.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9bd93c8ecf78862ed883bb9e34c6fdd59e5c6ec842fb63a62852804f9b4caa7
|
|
BLAKE2b-256 checksum How to use checksums |
c84f6288b18163ff4542df8449dd4e10621c321f3d6cb2e01955f9c7d7d02b71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
|
Release files / unmanic_api-0.0.5-py3-none-any.whl
| Download URL | unmanic_api-0.0.5-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
deff27081d5a23cd38c72d3f7adba8efc07febc156b96d28c1217b87898eaa72
|
|
BLAKE2b-256 checksum How to use checksums |
7a4cf2a52a306fb33ba719301560c268c606b039336bfb30cecc53f3d4073b5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
|