Python client for Zayo API
This package provides a python 3.8 asyncio based client to access the Zayo API system.
The following API functional areas are supported:
- Service Inventory
- Maintenance
This package also includes a CLI tool zayocli to retrieve and display information
obtained via the API.
Installation
pip install pyzayo
Before You Begin
You must export two environment variables for use with this library:
ZAYO_CLIENT_ID- Your unique client ID valueZAYO_CLIENT_SECRET- Your unique client secret value
You must obtain these values from Zayo.
Quick Start
from pyzayo import ZayoClient
# create a client to the Maintenace API authenticate using the ZAYO_ variables
zapi = ZayoClient()
# use the instance methods to retrieve data
cases = zapi.get_cases()
Usage Documentation
WORK IN PROGRESS
For now, please use the docstrings by doing:
from pyzayo import ZayoClient
help(ZayoClient)
CLI Tool
The zayocli tool supports the maintenance cases and service inventory features:
Usage: zayocli [OPTIONS] COMMAND [ARGS]...
Zayo CLI tool to access information via the API.
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
cases Maintenance commands.
services Inventory Service commands.
cases subcommand
Usage: zayocli cases [OPTIONS] COMMAND [ARGS]...
Maintenance commands.
Options:
--help Show this message and exit.
Commands:
list Show listing of maintenance caess.
show-details Show specific case details.
services subcommand
Usage: zayocli services [OPTIONS] COMMAND [ARGS]...
Inventory Service commands.
Options:
--help Show this message and exit.
Commands:
circuit Show service record for given circuit ID.
list List service inventory.
Zayo API Documentation
Metadata
Release files for pyzayo 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyzayo-0.5.0.tar.gz | 13.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyzayo-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.3 kB
Release files / pyzayo-0.5.0.tar.gz
| Download URL | pyzayo-0.5.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4af501dfe5f7bffa405ad34a00ebab4c463fca7509c02d95f45bd68a71f49b99
|
|
BLAKE2b-256 checksum How to use checksums |
34732ab7f99a670ad2497810103eb926080e47ee4eaacd95dd64d26cd8256910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
|
Release files / pyzayo-0.5.0-py3-none-any.whl
| Download URL | pyzayo-0.5.0-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1ed594d1664fc51e195b385a7e515a286f8784396622174f746391104f5416b
|
|
BLAKE2b-256 checksum How to use checksums |
cc736273b17803e8d9c560686e275de96a15439dd906ca83675a18474a5a6aba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
|
Security for pyzayo 0.5.0
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.