Tokko Locations API Client.
Project description
Install
pip install tokko-locations-client
Basic usage
from tokko_locations_client.core import LocationsAPIClient
# You can also declare AuthToken and HomeURL using environment variables instead:
# + AuthToken: TOKKO_AUTH_TOKEN
# + HomeURL: LOCATIONS_API_HOME
api = LocationsAPIClient(
home_url="http//www.tokkobroker.com",
auth_token="your-tokko-user-auth-token"
)
# List All countries
print(api.countries())
# Retrieving specific country by <int: CountryID>
print(api.country(1)) # Argentina
# Retrieving specific state by <int: StateID>
print(api.state(146)) # Capital Federal
# Retrieving specific locations by <int: LocationsID>
print(api.location(24673)) # Almagro
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for tokko_locations_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0fed83a2e7f1666ccd05b2d8cc558cb805691d80930e6e722b8524b2f4045cc |
|
MD5 | b0a129da5969404dce4ff76f2841f739 |
|
BLAKE2b-256 | 6bc3c9222dd15581bf359da8dffe3e9e467650a10af81187e364d19d3a7d842f |