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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: awakatime-1.1.10.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.10.tar.gz
Algorithm Hash digest
SHA256 27edbfc3e9f4f15458b35e182aa85c8a87933c2a1da0f82ad32b19e92f8b2792
MD5 126966e6a6e880a474a26d114cb2041d
BLAKE2b-256 5dae5974ccf1ee5da53d59048452322945609d013e62327014815a9e9d080647

See more details on using hashes here.

File details

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

File metadata

  • Download URL: awakatime-1.1.10-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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 409326de082194335052b70d04542c0f61eceafd1efafd7d82cedcff694be3eb
MD5 43d7cbda93704f2bf78e0e9117e3cdbb
BLAKE2b-256 61b3426fb81d876960e16c471ccec9a37e7890261f889d33c928fd910c2652fc

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