Skip to main content

aioweenect

Asynchronous Python client for the weenect API

GitHub Actions PyPi PyPi codecov Downloads

Installation

$ pip install aioweenect

Usage

from aioweenect import AioWeenect

import asyncio

USER = "<YOUR_USER>"
PASSWORD = "<YOUR_PASSWORD>"


async def main():
    """Show example how to get location of your tracker."""
    async with AioWeenect(username=USER, password=PASSWORD) as aioweenect:
        trackers_response = await aioweenect.get_trackers()
        tracker_id = trackers_response["items"][0]["id"]
        tracker_name = trackers_response["items"][0]["name"]

        position_response = await aioweenect.get_position(tracker_id=tracker_id)
        lat = position_response[0]["latitude"]
        lon = position_response[0]["longitude"]
        last_message = position_response[0]["last_message"]
        print(
            f"Location for {tracker_name}: lat: {lat}, lon: {lon}. Last message received: {last_message}"
        )


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

Release files for aioweenect 1.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioweenect 1.1.7
File Size Uploaded
aioweenect-1.1.7.tar.gz 137.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aioweenect 1.1.7
File Interpreter ABI Platform
aioweenect-1.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 144.0 kB

Release files / aioweenect-1.1.7.tar.gz

Download URL aioweenect-1.1.7.tar.gz
Size 137.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9899521299826e0021116e2ed476cfc02af117b6052547690f3d25732c37bd76
BLAKE2b-256 checksum
How to use checksums
ddd80949d29d141266ab4a91f56e16831addc0e020843499094fb19069e84213
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / aioweenect-1.1.7-py3-none-any.whl

Download URL aioweenect-1.1.7-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9455ce12fbfe1b8293124f4f6a32ec418cdb4291ba7cf8ffeddfed598e7bd6e6
BLAKE2b-256 checksum
How to use checksums
72289680533180599f61da73afdeee0b63a43beae9fff1d423778f957b3c02b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

1.1.7 This release

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page