Documentation for the Pathgather Python package¶
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.
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
- User completions of content
- Gathering management and gathering membership
- Gathering Content and Path management
- Skills
- Creating and listing comments on paths and content items
Credits¶
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Contents: