Zayo API python client
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyzayo-0.5.0.tar.gz
.
File metadata
- Download URL: pyzayo-0.5.0.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4af501dfe5f7bffa405ad34a00ebab4c463fca7509c02d95f45bd68a71f49b99 |
|
MD5 | a9817f9e7e9ac76710cb8a550de64211 |
|
BLAKE2b-256 | 34732ab7f99a670ad2497810103eb926080e47ee4eaacd95dd64d26cd8256910 |
File details
Details for the file pyzayo-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: pyzayo-0.5.0-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1ed594d1664fc51e195b385a7e515a286f8784396622174f746391104f5416b |
|
MD5 | 7e5edcf98e0635d8a328002f5ed94831 |
|
BLAKE2b-256 | cc736273b17803e8d9c560686e275de96a15439dd906ca83675a18474a5a6aba |