Skip to main content

A simple async wrapper for the Wakatime API

Project description

🔃 Awakatime

An asynchronous API wrapper for Wakatime

wakatime discord
report documentation english português
pypi license

Installation

pip install awakatime

Usage

It's recommended to use a context manager to create an instance of the client.

import asyncio

from awakatime import Awakatime


async def main():
    async with Awakatime("your_api_key") as awakatime:
        tasks = [awakatime.get_all_time(), awakatime.get_projects()]
        all_time, projects = await asyncio.gather(*tasks)
        print(all_time)
        print(projects)


if __name__ == "__main__":
    coro = main()
    asyncio.run(coro)

Development

git clone https://github.com/controlado/awakatime.git
cd awakatime
With Poetry
poetry install --with dev
Without Poetry
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt

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

awakatime-1.1.10.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

awakatime-1.1.10-py3-none-any.whl (4.6 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