An asynchronous API wrapper for the Traffic Lanes 3 / Intersection Controller API.
Project description
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.
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 tl3api-1.2.0.tar.gz
.
File metadata
- Download URL: tl3api-1.2.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3116061ffe21f239d963467a75144bc0bdc4adc3a012e367f2c96e5ae37235c |
|
MD5 | 7d65019b38ddee4ee8ad53b39efca2d5 |
|
BLAKE2b-256 | 84b32e7953db88b447f021768ea7e7885fd1a06b77c133205a6b4efea5f3bb41 |
File details
Details for the file tl3api-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: tl3api-1.2.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 880adef31624a96569a84b65af3bcd80220d7995e2935e7fce40ff158d2033e4 |
|
MD5 | bbd1ef7a5145a7a4c7f11d853a3df77a |
|
BLAKE2b-256 | 32adac19268956b20465dd583b207049aa3d037a4ac281273b94a874c85c0993 |