Skip to main content

API client for PathGather

Project description

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

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

Credits

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

History

1.2.0 (2017-12-09)

  • Fetch content completions and starts for users

  • Register content completion for a user and a piece of content

  • Fetch path starts and completions for users

  • Gatherings API for listing, getting, creating, updating and deleting Gatherings

  • List users within a gathering

  • Add or remove users from a gathering

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pathgather-1.2.0.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

pathgather-1.2.0-py2.py3-none-any.whl (23.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pathgather-1.2.0.tar.gz.

File metadata

  • Download URL: pathgather-1.2.0.tar.gz
  • Upload date:
  • Size: 38.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pathgather-1.2.0.tar.gz
Algorithm Hash digest
SHA256 96e3471fbb369c02cf0fc08a3fcfa5bce672abd033ea40a69136db088c090494
MD5 bdc04e0d63224082758b17311c5e2265
BLAKE2b-256 0b35ebfd2f7280cec84d9949f2686922ca31ca36881844c0b00e0d9eaff42993

See more details on using hashes here.

File details

Details for the file pathgather-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pathgather-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c232fec4702b0579df5e020200d642be94ef7ee6b0d8e2a901f9294d5d30b489
MD5 6d3c3dce6790964693f3be46609cc38d
BLAKE2b-256 989ae4a941f0edc73b794eddaa4e48e9af36e6f50da06f284fd5f47625f4b12e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page