Skip to main content

TIER Python

Latest Version on PyPi Software License Build Status Buy us a tree

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.

Metadata

Release files for tier-sdk 0.1.2

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

Source distribution (sdist)

Source distribution for tier-sdk 0.1.2
File Size Uploaded
tier_sdk-0.1.2.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tier-sdk 0.1.2
File Interpreter ABI Platform
tier_sdk-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / tier_sdk-0.1.2.tar.gz

Download URL tier_sdk-0.1.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
aafe5e533702d6c46ffe19e5e8265b35fb7efed1bf21043e81485178248d182f
BLAKE2b-256 checksum
How to use checksums
dae46229a74d47275e8e30e530a79fd7691d44273c48d4047ce4f1ac62239f93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Release files / tier_sdk-0.1.2-py3-none-any.whl

Download URL tier_sdk-0.1.2-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0c3f650e9f0eff693552ba7b8c6206e84417b5ce576f409322f76cfa32746a0
BLAKE2b-256 checksum
How to use checksums
0c076d04b6d113e8c7a43d20a771c29aade52e26d714428330d1a1b04151bcd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.24.1

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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