Skip to main content

A small example to obtain URA API token.

Project description

URA Token Package

This is a small example to obtain URA API token.

Register for your access key with URA


import requests
import json

from ura_token import ura_token

u=ura_token.ura_token('<place your ura access key here>')

myobj = {'AccessKey': u.get_accesskey(), 'token': u.get_token(), 'User-Agent': 'Mozilla/5.0'}
resp =, headers=myobj)

print(json.dumps(resp.json()['Result'], indent=4))

Questions or bugs, please write to

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

ura-token-pkg-chengguan-0.0.4.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

ura_token_pkg_chengguan-0.0.4-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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