Skip to main content

Asynchronous Python client for Unmanic.

Project description

codecov PyPI PyPI - Downloads GitHub

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

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

unmanic_api-0.0.5.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

unmanic_api-0.0.5-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file unmanic_api-0.0.5.tar.gz.

File metadata

  • Download URL: unmanic_api-0.0.5.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for unmanic_api-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e9bd93c8ecf78862ed883bb9e34c6fdd59e5c6ec842fb63a62852804f9b4caa7
MD5 5c3fbdac2a4606ba50eff8f14a909551
BLAKE2b-256 c84f6288b18163ff4542df8449dd4e10621c321f3d6cb2e01955f9c7d7d02b71

See more details on using hashes here.

File details

Details for the file unmanic_api-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: unmanic_api-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for unmanic_api-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 deff27081d5a23cd38c72d3f7adba8efc07febc156b96d28c1217b87898eaa72
MD5 fe6fe8459ef89d3c971e2f1f97c44cdf
BLAKE2b-256 7a4cf2a52a306fb33ba719301560c268c606b039336bfb30cecc53f3d4073b5c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page