Skip to main content

A Python client library for Cisco NSO (previously tail-f)

Project description

# PyNSO


[![Build](https://travis-ci.org/DimensionDataCBUSydney/pynso.svg?branch=master)](https://travis-ci.org/DimensionDataCBUSydney/pynso)
[![PyPI](https://img.shields.io/pypi/v/pynso.svg?maxAge=2592000)]()
[![PyPI](https://img.shields.io/pypi/l/pynso.svg?maxAge=2592000)]()
[![PyPI](https://img.shields.io/pypi/pyversions/pynso.svg?maxAge=2592000)]()
[![Documentation Status](https://readthedocs.org/projects/pynso/badge/?version=latest)](http://pynso.readthedocs.io/en/latest/?badge=latest)


Overview
--------

A Python client library for Cisco NSO (previously tail-f)

Installation
------------

To install use pip:

$ pip install pynso


Or clone the repo:

$ git clone https://github.com/DimensionDataCBUSydney/pynso.git
$ python setup.py install

Usage
-----

```python
from pprint import pprint

from pynso.client import NSOClient
from pynso.datastores import DatastoreType

# Setup a client
client = NSOClient('10.123.92.12', 'admin', 'admin')

# Get information about the API
print('Getting API version number')
pprint(client.info()['version'])

# Get the information about the running datastore
print('Getting the contents of the running datastore')
pprint(client.get_datastore(DatastoreType.RUNNING))
```

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

pynso-1.1.0.zip (10.0 kB view details)

Uploaded Source

File details

Details for the file pynso-1.1.0.zip.

File metadata

  • Download URL: pynso-1.1.0.zip
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pynso-1.1.0.zip
Algorithm Hash digest
SHA256 eff59c1d6317aefcb7d763628ac28a8e7326f1e6c3964faf1f6a8512d38ea9a9
MD5 db1c2a62e86c20600376142e6fb4a341
BLAKE2b-256 d4b055d509620ac39a55ec87225b82eee047d4a0807845ebf99660ce78a3b04e

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