Skip to main content

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"))

Metadata

Release files for tokko-locations-client 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for tokko-locations-client 0.0.3
File Interpreter ABI Platform Actions
tokko_locations_client-0.0.3-py3-none-any.whl Python 3 none any Details for tokko_locations_client-0.0.3-py3-none-any.whl

Release files / tokko_locations_client-0.0.3-py3-none-any.whl

Download URL tokko_locations_client-0.0.3-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e80b52d7b013abaf14154a6384480eeb2a32d058ba074ab62a3898e30acbf24
BLAKE2b-256 checksum
How to use checksums
cdf74b12cb05bdc4511960cce86b490d3507fc4287bf9804716f6e83c957ae16
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for tokko-locations-client 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page