# tl3api
![PyPI](https://img.shields.io/pypi/v/tl3api) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tl3api) ![PyPI - Downloads](https://img.shields.io/pypi/dm/tl3api) ![GitHub](https://img.shields.io/github/license/Feeeeddmmmeee/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](https://pypi.org/project/pip/).
```sh
pip install tl3api
```
## Quickstart
The Client can be intialized with a context manager or not depending on which option is better for your application.
```py
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:
```py
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](https://opensource.org/licenses/MIT) license. For more details view the LICENSE file.
Raw data
{
"_id": null,
"home_page": "https://github.com/Feeeeddmmmeee/tl3api",
"name": "tl3api",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "api,ic,tl3,wrapper,async",
"author": "Feeeeddmmmeee",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/84/b3/2e7953db88b447f021768ea7e7885fd1a06b77c133205a6b4efea5f3bb41/tl3api-1.2.0.tar.gz",
"platform": null,
"description": "# tl3api\r\n![PyPI](https://img.shields.io/pypi/v/tl3api) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/tl3api) ![PyPI - Downloads](https://img.shields.io/pypi/dm/tl3api) ![GitHub](https://img.shields.io/github/license/Feeeeddmmmeee/tl3api)\r\n\r\nA basic, asynchronous wrapper for the API of Traffic Lanes 3 / Intersection Controller written in Python.\r\n\r\n## Installation\r\n\r\ntl3api was tested on python 3.9, although it should work wither earlier versions too. The recommended and easiest way to install tl3api is [pip](https://pypi.org/project/pip/).\r\n```sh\r\npip install tl3api\r\n```\r\n\r\n## Quickstart\r\nThe Client can be intialized with a context manager or not depending on which option is better for your application.\r\n```py\r\nimport tl3api\r\nimport aiohttp\r\n\r\nasync with tl3api.Client(aiohttp.ClientSession()) as ic:\r\n # Do stuff\r\n```\r\nWith the `ic` instance you can then interact with the API:\r\n```py\r\nimport tl3api\r\nimport aiohttp\r\n\r\nasync with tl3api.Client(aiohttp.ClientSession()) as ic:\r\n # Print the name of the user with the ID of 2452411\r\n user = await ic.get_details_for_user(user_id=2452411)\r\n print(user)\r\n\r\n # Print the name of each of the user's maps\r\n maps = await user.get_user_maps()\r\n for m in maps:\r\n print(m)\r\n```\r\n\r\n## License\r\ntl3api is provided under the [MIT](https://opensource.org/licenses/MIT) license. For more details view the LICENSE file.\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "An asynchronous API wrapper for the Traffic Lanes 3 / Intersection Controller API.",
"version": "1.2.0",
"split_keywords": [
"api",
"ic",
"tl3",
"wrapper",
"async"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "bbd1ef7a5145a7a4c7f11d853a3df77a",
"sha256": "880adef31624a96569a84b65af3bcd80220d7995e2935e7fce40ff158d2033e4"
},
"downloads": -1,
"filename": "tl3api-1.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bbd1ef7a5145a7a4c7f11d853a3df77a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 9157,
"upload_time": "2022-12-11T11:12:32",
"upload_time_iso_8601": "2022-12-11T11:12:32.659703Z",
"url": "https://files.pythonhosted.org/packages/32/ad/ac19268956b20465dd583b207049aa3d037a4ac281273b94a874c85c0993/tl3api-1.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "7d65019b38ddee4ee8ad53b39efca2d5",
"sha256": "e3116061ffe21f239d963467a75144bc0bdc4adc3a012e367f2c96e5ae37235c"
},
"downloads": -1,
"filename": "tl3api-1.2.0.tar.gz",
"has_sig": false,
"md5_digest": "7d65019b38ddee4ee8ad53b39efca2d5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7630,
"upload_time": "2022-12-11T11:12:35",
"upload_time_iso_8601": "2022-12-11T11:12:35.281437Z",
"url": "https://files.pythonhosted.org/packages/84/b3/2e7953db88b447f021768ea7e7885fd1a06b77c133205a6b4efea5f3bb41/tl3api-1.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-11 11:12:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "Feeeeddmmmeee",
"github_project": "tl3api",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "aiohttp",
"specs": [
[
"==",
"3.7.4.post0"
]
]
}
],
"lcname": "tl3api"
}