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.3.3.tar.gz (168.6 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.3.3-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for libmeshctrl-1.3.3.tar.gz
Algorithm Hash digest
SHA256 452c84e774c99579e6fcb38593954e54bff7a0fa26639686918aba6aeb0ac605
MD5 adc07656987ad057df58e1e56e9c14d7
BLAKE2b-256 b68755b4bca2797f21b6b84c4cad112e7b1a44d4cfcaacb10fbbf351323d4960

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libmeshctrl-1.3.3-py3-none-any.whl
  • Upload date:
  • Size: 40.5 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.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b510f0376d06d19a79203abc41899ee948e1e15209911c2553e8b75358910e10
MD5 22c6eba0d4a77e41e57f28b27afccdfb
BLAKE2b-256 65f51965e6280c7fc92e577ca686996c362c06bdd862ad10dfd88f9cef5c707a

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