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.0.tar.gz (167.4 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.0-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libmeshctrl-1.3.0.tar.gz
  • Upload date:
  • Size: 167.4 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.0.tar.gz
Algorithm Hash digest
SHA256 c83aa1257a67b403892727b389fc9062dfa449fab03f3f66510e3aaa6b87fe00
MD5 4f98cee9c88ab8b0b83b1c6de5aaae3e
BLAKE2b-256 7bd5c073afadba0a9809d689c3a89ba556e8aa0d026102e9ff690afbc3f08d4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libmeshctrl-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 39.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a3d24d212838de7a08c168cfbafbe6404b25109ba715f3fa3f327a810e0824f7
MD5 93cb14139fd60eb12e4bbaed8d75acef
BLAKE2b-256 c23b1afd93a1348c7c837c9fc903994722ab2994221aa5a126214cf15b49b27e

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