tl3api
A basic, asynchronous wrapper for the API of Traffic Lanes 3 / Intersection Controller written in Python.
Installation
tl3api was tested on python 3.9, although it should work wither earlier versions too. The recommended and easiest way to install tl3api is pip.
pip install tl3api
Quickstart
The Client can be intialized with a context manager or not depending on which option is better for your application.
import tl3api
import aiohttp
async with tl3api.Client(aiohttp.ClientSession()) as ic:
# Do stuff
With the ic instance you can then interact with the API:
import tl3api
import aiohttp
async with tl3api.Client(aiohttp.ClientSession()) as ic:
# Print the name of the user with the ID of 2452411
user = await ic.get_details_for_user(user_id=2452411)
print(user)
# Print the name of each of the user's maps
maps = await user.get_user_maps()
for m in maps:
print(m)
License
tl3api is provided under the MIT license. For more details view the LICENSE file.
Metadata
Release files for tl3api 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tl3api-1.2.0.tar.gz | 7.6 kB | Without provenance | Details for tl3api-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tl3api-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for tl3api-1.2.0-py3-none-any.whl |
Total release size: 16.8 kB
Release files / tl3api-1.2.0.tar.gz
| Download URL | tl3api-1.2.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3116061ffe21f239d963467a75144bc0bdc4adc3a012e367f2c96e5ae37235c
|
|
BLAKE2b-256 checksum How to use checksums |
84b32e7953db88b447f021768ea7e7885fd1a06b77c133205a6b4efea5f3bb41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / tl3api-1.2.0-py3-none-any.whl
| Download URL | tl3api-1.2.0-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
880adef31624a96569a84b65af3bcd80220d7995e2935e7fce40ff158d2033e4
|
|
BLAKE2b-256 checksum How to use checksums |
32adac19268956b20465dd583b207049aa3d037a4ac281273b94a874c85c0993
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for tl3api 1.2.0
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.