A Python client library for Cisco NSO (previously tail-f)
Project description
# PyNSO
[](https://travis-ci.org/DimensionDataCBUSydney/pynso)
[]()
[]()
[]()
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))
```
[](https://travis-ci.org/DimensionDataCBUSydney/pynso)
[]()
[]()
[]()
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.0.2.zip
(9.7 kB
view details)
File details
Details for the file pynso-1.0.2.zip.
File metadata
- Download URL: pynso-1.0.2.zip
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
909798e060237c475414dc50a988e60006448e5a7c07a518644048a3006385e9
|
|
| MD5 |
6f2b49d8d50882c0334221555162a936
|
|
| BLAKE2b-256 |
e766ffb8fad485bb35ee59c00978f7828be46292343841c930557f7722890c5f
|