performline

Client library for using the public PerformLine Compliance API


License
BSD-3-Clause
Install
pip install performline==1.0.3

Documentation

PerformLine

PerformLine Compliance API Build Status Master PyPI Documentation Status

This is the Python client library and command line interface to the PerformLine Compliance API.

Documentation

Documentation for this package is located here: http://performline.readthedocs.io/en/latest/

The REST API specification and usage documentation can be found at https://api.performline.com.

Quickstart

Basic command line to list all brands on your account

pip install performline
performline -k <API KEY> brands list

Basic Python script to list all brands on your account

from performline.client import Client

c = Client("<API KEY>")

for brand in c.brands():
    print("brand id=%d name=%s" % (brand.id, brand.name))

Useful Details

  • The API key is required for the command line utility to work, and can be specified either in the command invocation using the -k/--api-key flags or using the $PERFORMLINE_API_KEY environment variable.

  • The command line utility defaults to outputting results in YAML format, but can also emit JSON with the -f/--format json flag. This is very useful in tandem with the jq utility for scripting.

License

See LICENSE file.