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.9.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

awakatime-1.1.9-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file awakatime-1.1.9.tar.gz.

File metadata

  • Download URL: awakatime-1.1.9.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for awakatime-1.1.9.tar.gz
Algorithm Hash digest
SHA256 3e7591b9cae4981394c619ad40467e216d446272dc7e825d8a2799d47fe99c4f
MD5 e8791c56ba84810287639ce5d6e18f7d
BLAKE2b-256 14d0b230a98112a83118127e2591cbde07a11605d1721226a09ff58be67ccd34

See more details on using hashes here.

File details

Details for the file awakatime-1.1.9-py3-none-any.whl.

File metadata

  • Download URL: awakatime-1.1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Windows/10

File hashes

Hashes for awakatime-1.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 11c5b91c047922466155aa297a88a95d028a2442b50c37849ce9f2e4569babaa
MD5 c99b8f5d747f385c21e07d5a21f90c29
BLAKE2b-256 c03de1b2c2699ef7320ec38cf54eb19e70b08b7873e2485cd742da0b42e8f83f

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