Metadata-Version: 2.1
Name: teslemetry_stream
Version: 0.0.4
Summary: Teslemetry Streaming API library for Python
Home-page: https://github.com/Teslemetry/teslemetry_stream
Author: Brett Adams
Author-email: hello@teslemetry.com
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp
Requires-Dist: asyncio

# Teslemetry Stream Library

```
async def main():
    async with aiohttp.ClientSession() as session:
        stream = TeslemetryStream(
            token="<token>",
            vin="<vin>",
            session=session,
        )
        await stream.connect()
        print("Connected")

        async def callback(event):
            print(event)

        asyncio.create_task(self.listen(callback))

        await asyncio.sleep(20)
        await stream.close()
```
