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.10.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for awakatime-1.1.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 409326de082194335052b70d04542c0f61eceafd1efafd7d82cedcff694be3eb |
|
MD5 | 43d7cbda93704f2bf78e0e9117e3cdbb |
|
BLAKE2b-256 | 61b3426fb81d876960e16c471ccec9a37e7890261f889d33c928fd910c2652fc |