Skip to main content

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 value
  • ZAYO_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)

Zayo API Documentation

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

pyzayo-0.3.0.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distribution

pyzayo-0.3.0-py3-none-any.whl (20.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page