Skip to main content

Python package for interacting with a Meshcentral server instance

Project description

Project generated with PyScaffold

meshctrl

Library for remotely interacting with a MeshCentral server instance

Installation

pip install libmeshctrl

Usage

This module is implemented as a primarily asynchronous library (asyncio), mostly through the Session class. Because the library is asynchronous, you must wait for it to be initialized before interacting with the server. The preferred way to do this is to use the async context manager pattern:

import meshctrl

async with meshctrl.Session(url, **options):
    print(await session.list_users())
    ...

However, if you prefer to instantiate the object yourself, you can simply use the initialized property:

session = meshctrl.Session(url, **options)
await session.initialized.wait()

Note that, in this case, you will be rquired to clean up tho session using its close method.

Session Parameters

url: URL of meshcentral server to connect to. Should start with either “ws://” or “wss://”.

options: optional parameters. Described at Read the Docs

API

API is documented in the API Docs

Note

This project has been set up using PyScaffold 4.6. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

libmeshctrl-1.1.1.tar.gz (166.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libmeshctrl-1.1.1-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file libmeshctrl-1.1.1.tar.gz.

File metadata

  • Download URL: libmeshctrl-1.1.1.tar.gz
  • Upload date:
  • Size: 166.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for libmeshctrl-1.1.1.tar.gz
Algorithm Hash digest
SHA256 ab444bbcc90c576ba309ca390e0c78eff7cc0d8fb9e008295c4f688a27eb1008
MD5 0134e1dc91fac41e336981f8a349ddcb
BLAKE2b-256 dc0bc8f2727aace52b43f19c43dedd93f84a37974cfe2c752e5c49916640606b

See more details on using hashes here.

File details

Details for the file libmeshctrl-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: libmeshctrl-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for libmeshctrl-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3f26be5a36386a34d819baf3605ca0743dbd29673d508b772d6cedb952d1314
MD5 49dc2250e9ba4f6f8ae81520da19be08
BLAKE2b-256 7305b68c7e9013a71a3df786e1e3c206cf691cb5743dd8594a0ff2dc62b9619f

See more details on using hashes here.

Supported by

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