API client for PathGather
Project description
PathGather
The Pathgather python package is for connecting to and leveraging the Pathgather REST API from Python 2 or 3.
This project is not part of Pathgather or operated by Pathgather, it is an open-source package for consuming their API.
Free software: Apache 2 license
Documentation: https://pathgather.readthedocs.org.
Example
from pathgather import PathgatherClient
import yaml
import json
from pprint import pprint
with open('.tenant.yml', 'r') as tenant_yml:
config = yaml.load(tenant_yml)
client = PathgatherClient(config['host'], config['api_key'])
print(client.users.all())
with open('dump.json', 'r') as dump_j:
data = json.load(dump_j)
for user in data['users']:
print('Creating {0}'.format(user['full_name']))
new_user = client.users.create(
name=user['full_name'],
job_title=user['job_title'],
department='Learning and Development',
email=user['email'])
print(new_user)
pprint(client.users.all())
pprint(client.users.skills('362add1b-0a28-425b-a83c-40a6808fd094'))
pprint(client.paths.all())
Features
User management
Content management
Path queries
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
1.1.0 (2017-12-08)
Updated content models with new fields
Added support to specific content provider by name or custom_id
Fixed doc issue with content.create
Added pathgather.models package to setup.py
Added SSL check disable flag on client and HTTP proxy settings
1.0.0 (2017-09-01)
Introduce models for all methods, created tests based on documented and real API results. 91% test coverage
Add support for adding skills to users, setting the skill level and deleting skills
0.5.0 (2017-09-01)
Added some unit tests to the base client and improved doc strings for documentation
0.4.0 (2017-08-29)
[FIX] Remove default proxy settings
Add support to page out all() methods in content, users and paths. Method will now return all results
0.3.0 (2017-08-29)
Add proxy support
0.2.0 (2017-08-28)
Added path and content API endpoints
0.1.0 (2017-08-28)
First release on PyPI.
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
Built Distribution
File details
Details for the file pathgather-1.1.0.tar.gz
.
File metadata
- Download URL: pathgather-1.1.0.tar.gz
- Upload date:
- Size: 29.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1924e334ff5d0b5692f3ee767d676da48db13b967d6e6edd0620ee95ce592fdb |
|
MD5 | e86d8ffccd626e66f24dac26c9d19302 |
|
BLAKE2b-256 | 2445de0c0ab91bab9fab96091878e1c753870d6a69ebbfac12c64a12c863a047 |
File details
Details for the file pathgather-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pathgather-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7370e351627e4d8ed8681359a4a76dda3c104db6d52c50c41e9c240e00516c25 |
|
MD5 | 0c66bfee18c1712abd7c7587e2d44611 |
|
BLAKE2b-256 | f06279b8f832afbfb8323a51352d0d7776088b3284a829fb18aa116ccfc69856 |