Skip to main content

Python client for interacting with the Trace api.

Project description

Trace Python Client Documentation Status

Python client for interacting with the Trace api. For information on the API see the api documentation

Getting Started

from py_trace import Trace

client = Trace(<client_key>, <client_secret>)
# output should be like<token>, go to the url and authorize the app
# after authorization, you should see a url like<token>&oauth_verifier=<verifier>

To use in a web app (using a very basic Flask example):

from flask import Flask, request, redirect
import json

app = Flask(__name__)
trace = Trace(<client_key>, <client_secret>, host + '/auth_callback')

def handle_redirect():
    return redirect('/user')

def get_user_token():
    url = trace.get_auth_url()
    return redirect(url)

def get_user():
    return json.dumps(trace.get_user())


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


0.1.0 (2018-07-22)

  • 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.

Filename, size & hash SHA256 hash help File type Python version Upload date
py_trace-0.1.1-py2.py3-none-any.whl (8.0 kB) Copy SHA256 hash SHA256 Wheel py2.py3
py_trace-0.1.1.tar.gz (17.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page