A simple async wrapper for the Wakatime API
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e7591b9cae4981394c619ad40467e216d446272dc7e825d8a2799d47fe99c4f |
|
MD5 | e8791c56ba84810287639ce5d6e18f7d |
|
BLAKE2b-256 | 14d0b230a98112a83118127e2591cbde07a11605d1721226a09ff58be67ccd34 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11c5b91c047922466155aa297a88a95d028a2442b50c37849ce9f2e4569babaa |
|
MD5 | c99b8f5d747f385c21e07d5a21f90c29 |
|
BLAKE2b-256 | c03de1b2c2699ef7320ec38cf54eb19e70b08b7873e2485cd742da0b42e8f83f |