API Library to help using Kenti API
Project description
Kentik API python library.
This is a python wrapper for kentik rest api. For more information on how to interact with kentik resources using this library, see examples in examples/ folder.
Installation with pip
- Install the library using pip (currently the library is available under pypi test repository):
pip3 install --index-url https://pypi.org/simple --extra-index-url https://test.pypi.org/simple/ kentik-api
- Check installation successful - no errors should be reported:
python3 -c "import kentik_api"
- Run an example (optional):
export KTAPI_AUTH_EMAIL=<your kentik api credentials email>
export KTAPI_AUTH_TOKEN=<your kentik api credentials token>
python3 examples/sites_example.py
Usage examples
For library usage examples please see: examples/
List of available examples:
- alerting_example.py - create Manual Mitigation
- applications_example.py - create/update/delete Custom Application
- bulk_user_create.py - create users from YAML file
- devices_example.py - create/update/get/delete/list Devices
- dimensions_example.py - create/update/get/delete/list Custom Dimensions, create/update/delete Populator
- labels_example.py - create/update/get/delete/list Device Labels
- my_kentik_portal_example.py - get/list Tenants, create/delete Tenant User
- plans_example.py - list plans
- queries_example.py - query for SQL/URL/data/chart
- saved_filters_example.py - create/update/get/delete/list Saved Filters
- sites_example.py - create/update/get/delete/list Sites
- tags_example.py - create/update/get/delete/list Tags
- users_example.py - create/update/get/delete/list Users
Open-source libraries
This software uses the following open-source libraries:
- dacite by Konrad Hałas - MIT License
- requests by Kenneth Reitz - Apache Software License (Apache 2.0)
- typing-extensions by Guido van Rossum, Jukka Lehtosalo, Lukasz Langa, Michael Lee - PSFL License
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
kentik-api-0.1.0.tar.gz
(391.3 kB
view hashes)
Built Distribution
kentik_api-0.1.0-py3-none-any.whl
(76.2 kB
view hashes)
Close
Hashes for kentik_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56f1c8823498c45ffbf657174175045a597641acffc9b731f9f74784cb71d5f7 |
|
MD5 | 3b42ab2650d1dda78e855897b37cf3a9 |
|
BLAKE2b-256 | 638b6e149c9040ea7b654fa3969f2f2b74869da51544f49d798ee05a4739cd58 |