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
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)
Features
User management
Content management
Path queries
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
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
Hashes for pathgather-0.5.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd4213885d439227e7cf4e78aaa2bfa352aac82e9546386e0a735a797ffe9b8b |
|
MD5 | 30067d5fb16f0f59cfc8afbf6ad73c7d |
|
BLAKE2b-256 | 6ada1f914a2211e3d7b9cd304bd5dc8ca57a94bf7e7d9067f68079380cd475e2 |