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

https://img.shields.io/pypi/v/pathgather.svg https://img.shields.io/travis/tonybaloney/pathgather.svg Documentation Status https://codecov.io/gh/tonybaloney/pathgather/branch/master/graph/badge.svg 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

Indices and tables