Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

tonybaloney/pathgather

Repository files navigation

PathGather

Documentation Status Updates Python 3

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.

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

Missing

The following features are in the API but not yet in this client

  • Conversations

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

Python client for Pathgather API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •