Last updated:
0 purchases
awakatime 1.1.10
🔃 Awakatime
An asynchronous API wrapper for Wakatime
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.