-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
48 lines (42 loc) · 2.04 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"""
piapi module stands for (Cisco) Prime Infrastructure API.
The module implements the PIAPI class which helps interacting with the Cisco Prime Infrastructure REST API using
simple methods that can either request data or request an action.
The Cisco Prime Infrastructure API is a REST API which exposes several resources that can be of 2 types:
* Data resources: expose some data collected by the software which can be retrieved (e.g: client summary).
* Service resources: expose some service that can modify the configuration of the software (e.g: modify/update an Access Point)
The REST API is applying request rate limiting to avoid server's overloading. To bypass this limitation, especially
when requesting data resources, the PIAPI uses multithreading requests (grequests library) with an hold time between
chunk of requests. Please check the documentation to knowns more about rate limiting.
Also note that the piapi module only works with the JSON structure exposed by the REST API. The module doesn't support
the default XML structure.
Please check your Cisco Prime REST API available at https://{server-name}/webacs/api/v1/
test modification
"""
from __future__ import absolute_import
from setuptools import setup
setup(
name='piapi',
version='0.1.5',
py_modules=['piapi'],
platforms='any',
url='https://github.com/HSRNetwork/piapi',
download_url='https://github.com/HSRNetwork/piapi/archive/0.1.5.tar.gz',
license='Apache',
author='maximumG',
author_email='[email protected]',
description='Cisco Prime Infrastructure REST API for python',
long_description=__doc__,
keywords=["Cisco", "Prime", "API", "REST", "request"],
classifiers=[
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules"
],
install_requires=[
'requests', 'six'
],
)