TIER Python SDK
Project description
TIER Python
An SDK to easily work with the TIER API
Install
Via Pip
pip install tier-sdk
Usage
from tier import TIER
tier = TIER(api_token="your-token")
sites = tier.vehicles.in_radius(52.548977, 13.437837, 500)
Available Methods | Description |
---|---|
tier.vehicles.in_radius(latitude, longitude, radius) |
Retrieve a VehiclesCollection dict with details about vehicles for a specific radius. |
tier.vehicles.in_zone(zone_id) |
Retrieve a VehiclesCollection dict with details about vehicles for a specific radius. |
tier.vehicles.get(vehicle_id) |
Retrieve a Vehicle dict with details about a specific vehicle. |
tier.zones.all() |
Retrieve a RootZonesCollection dict with details about all zones. |
tier.zones.near(latitude, longitude) |
Retrieve a RootZonesCollection dict with details about zones within 50km of a set of coordinates. |
tier.zones.get(zone_id) |
Retrieve a RootZone dict with details about a specific zone. |
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
hatch shell
hatch run test
Security
If you discover any security related issues, please email security@voke.dev instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Treeware
You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.
It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees here.
Read more about Treeware at treeware.earth.
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 Distribution
Built Distribution
File details
Details for the file tier_sdk-0.1.2.tar.gz
.
File metadata
- Download URL: tier_sdk-0.1.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aafe5e533702d6c46ffe19e5e8265b35fb7efed1bf21043e81485178248d182f |
|
MD5 | 412d94fb8d729ad9d90b4a4fd7a38576 |
|
BLAKE2b-256 | dae46229a74d47275e8e30e530a79fd7691d44273c48d4047ce4f1ac62239f93 |
File details
Details for the file tier_sdk-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: tier_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0c3f650e9f0eff693552ba7b8c6206e84417b5ce576f409322f76cfa32746a0 |
|
MD5 | c440e50d29ad1aeabdc360fed0dd8865 |
|
BLAKE2b-256 | 0c076d04b6d113e8c7a43d20a771c29aade52e26d714428330d1a1b04151bcd3 |