Skip to main content

An asynchronous API wrapper for the Traffic Lanes 3 / Intersection Controller API.

Project description

tl3api

PyPI PyPI - Python Version PyPI - Downloads GitHub

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tl3api-1.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tl3api-1.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file tl3api-1.1.0.tar.gz.

File metadata

  • Download URL: tl3api-1.1.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

Hashes for tl3api-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ee801179cb9192731ae62af96f0cc2d071091c07e106099c1f17c07b8ba4c8b2
MD5 3ef6c30560e59374f74c13978ff08231
BLAKE2b-256 f8498d532ef128d3a69e792738ac740c969975e955008a14fb9c62b2426b2e6e

See more details on using hashes here.

File details

Details for the file tl3api-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tl3api-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for tl3api-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecfc10271e11c230fad314a41a58fdfe7a73a44fccff1ccd98198687264b413a
MD5 01d67e922b9d5b0584c5b04876e6f835
BLAKE2b-256 a07697a610987751768d3cd7c28809e29fe9f691c0c79b6221b7e6d9e69c5e4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page