Skip to main content

A software development kit for the integration of the Beintelli API

Project description

Project Title

This Python SDK was created as part of a bachelor's thesis for the BeIntelli Platform, a project in the context of autonomous mobility, and serves as a client library for the Rest API with a few additional functions.

Authors

License

MIT

Usage

import asyncio
from asyncio import Future
from datetime import datetime

from src.beintelli_platform_python_sdk_eliasinguanta.measurement_list import MeasurementList
from src.beintelli_platform_python_sdk_eliasinguanta.user import User
from src.beintelli_platform_python_sdk_eliasinguanta.utils.types import WeatherData

async def print_weather():
    """show data api"""

    user: User = User()

    #log in
    await user.login("my_username","my_password")

    #params
    start_date: datetime = datetime.fromisocalendar(2020, 1, 1)
    end_date: datetime = datetime.fromisocalendar(2024, 1, 1)

    #request weather data
    future_weather: Future[MeasurementList[WeatherData]] = await user.data.get_weather_data(start_date, end_date)
    weather: MeasurementList[WeatherData] = await future_weather
    print(weather)

asyncio.run(print_weather())

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

beintelli-platform-python-sdk-0.1.4.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file beintelli-platform-python-sdk-0.1.4.tar.gz.

File metadata

File hashes

Hashes for beintelli-platform-python-sdk-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ca361ec181f870bab4062c0673a4f6bda836448d12b81ff21d6faa8d5b9f370b
MD5 6201298f20a4dcbf95be5383be70adfd
BLAKE2b-256 27221fa0e0469b092e5273cabc43d50b7bf33a6821e68d537f44c492ad5b5d43

See more details on using hashes here.

File details

Details for the file beintelli_platform_python_sdk-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for beintelli_platform_python_sdk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e114ad0fd781690ff425c1eac142c239ae3ff6dc5a97bc0c4da5cfc8748882c1
MD5 ee77ad9bb42c8236e07d57c6c792f040
BLAKE2b-256 5fa35d0cb8505a4b94beae05560faeb800004e6a114753cb7e66a2dc07ca8276

See more details on using hashes here.

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