performanceplatform-client

A client library for sending data to the Performance Platform


Keywords
api, data, performance_platform, performance-platform
License
MIT
Install
pip install performanceplatform-client==0.9.5

Documentation

A Python client for the GOV.UK Performance Platform

This repo contains a pip-installable client library for interacting with the Performance Platform.

PyPI version Build status Coverage Status Code Health

Workflow

You're a developer

developer

You need data

But how do you get there?

Well, with the client you can...

Pull data

from performanceplatform.client import DataSet

data_set = DataSet.from_group_and_type(
  'https://www.performance.service.gov.uk/data',
  'gov-uk-content', 'top-urls')

response = data_set.get()

and push it

from performanceplatform.client import DataSet

data_set = DataSet.from_group_and_type(
  'https://www.performance.service.gov.uk/data',
  'gov-uk-conten', 'top-urls',
  token='your-secret-token')

data_set.post({'foo': 'bar'})