Skip to main content

psconfig-client is a python library to parse perfSONAR psconfig/PWA mesh configuration files

Synopsis:
import psconfig.api
import logging
import sys

log = logging.getLogger()

if __name__ == '__main__':
    log.setLevel(logging.DEBUG)
    formatter = logging.Formatter(fmt='%(message)s')
    fh = logging.StreamHandler(stream=sys.stdout)
    fh.setFormatter(formatter)
    log.addHandler(fh)

    # url supports host auto-url, particular mesh or top level mesh directory
    # for https you can pass hostcert/key and verify flag, which are all passed to the requests library call
    x = psconfig.api.PSC('url', hostcert=None, hostkey=None, verify=False)
    # get all hosts from all groups
    print(x.get_all_hosts())
    # get all hosts from the group X
    print(x.get_hosts_by_group('X'))
    # get all hosts from the groups X, Y, Z
    print(x.get_hosts_by_group('X', 'Y', 'Z'))
    # get all hosts from all groups except A
    print(x.get_hosts_by_group(exclude='A'))

    # get test types (trace, throughput, latency, etc.) per host
    for h in x.get_hosts_by_group():
        print(h, x.get_test_types(h))

    # get site name of a host
    print(x.get_site('<hostname>')

    # get all hosts from the mesh configs X, Y, Z and not Q
    print(x.get_hosts_by_config('X', 'Y', 'Z', exclude='Q'))

    # get full map of mesh -> hosts
    print(x.get_config_host_map())

Metadata

Release files for psconfig-client 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for psconfig-client 0.1.7
File Size Uploaded Provenance Actions
psconfig-client-0.1.7.tar.gz 3.1 kB Without provenance Details for psconfig-client-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for psconfig-client 0.1.7
File Interpreter ABI Platform Actions
psconfig_client-0.1.7-py3-none-any.whl Python 3 none any Details for psconfig_client-0.1.7-py3-none-any.whl

Total release size: 7.2 kB

Release files / psconfig-client-0.1.7.tar.gz

Download URL psconfig-client-0.1.7.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fb8e25a5ff17fedc4a3963da477951ed80b69b4a759a1b0ddc3e14c098cc38ab
BLAKE2b-256 checksum
How to use checksums
9a5b6819da33edcbab8f72ebc7387ff227049f69ffed4945d6d750ab691933f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

Release files / psconfig_client-0.1.7-py3-none-any.whl

Download URL psconfig_client-0.1.7-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac6957e8ad8402a61d6e9c685f89b16025042b02b711882b49d755364dbf6020
BLAKE2b-256 checksum
How to use checksums
54e5925851bb255ace2a7fa528d446ce3db033c2d8eeac216e53fabae64031c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

Security for psconfig-client 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page