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.2.0.tar.gz (166.5 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.2.0-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for libmeshctrl-1.2.0.tar.gz
Algorithm Hash digest
SHA256 ee48460b70f98b5318e46234370025597617628e0df233434bc6590dfc595a27
MD5 f0ecc9e1adb850fe1a992a7c3410c2dd
BLAKE2b-256 6282e48c63271e8ce18af084531a0edfee2f86365f22540f19fed503bee9f1b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libmeshctrl-1.2.0-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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01b88b35c0166c7c32b8c4f1b504d77a1ac470b56fec9e0301037efea3a7b5d0
MD5 f1654a94aa919ba7b42e5526b8af6556
BLAKE2b-256 1d74b9d50a768d0515d61ca517f85b6d5df65eba1eedd9c96aefe4b1953da1fe

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