semvec/pypi-packages huggingface dataset:
tokko-locations-client 0.0.3
Tokko Locations API Client.
License: BSD License

# Install
```bash
pip install tokko-locations-client
```

# Basic usage

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