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:
# + 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())
# Get Country by <int: CountryID>
print(api.country(1)) # Argentina
# Get State by <int: StateID>
print(api.state(146)) # Capital Federal
# Get Location by <int: LocationsID>
print(api.location(24673)) # Almagro
# Searching for location Almagro by keyword
print(api.location_quick_search("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.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 856811bed76817bba56e8cdee1805a6090dcf92db8fb48784fe98a97d9228db3 |
|
MD5 | 6a362bfbe7c51e196fa14b90efa2c144 |
|
BLAKE2b-256 | 5eb37cc0482cfd42ad1bd5aea13e53af04f5f3620fb1eb4ce88f18fe008aaf3a |