Skip to main content

Teslemetry Streaming API library for Python

Project description

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()

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

teslemetry_stream-0.0.4.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

teslemetry_stream-0.0.4-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

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