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
File details
Details for the file tokko_locations_client-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: tokko_locations_client-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e80b52d7b013abaf14154a6384480eeb2a32d058ba074ab62a3898e30acbf24 |
|
MD5 | 72a1f695e2fb1bb01f0592c063713ab4 |
|
BLAKE2b-256 | cdf74b12cb05bdc4511960cce86b490d3507fc4287bf9804716f6e83c957ae16 |