A simple async wrapper for the Wakatime API
Project description
Installation
pip install awakatime
Usage
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)
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.0.4.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file awakatime-1.0.4.tar.gz
.
File metadata
- Download URL: awakatime-1.0.4.tar.gz
- Upload date:
- Size: 3.5 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 | c456c04d0a8a37fbe94620a8c68ea3061a65930d44dc34e4374c9f3a0c3e0287 |
|
MD5 | ce6776b678ba78c8376d00f2f1c8d555 |
|
BLAKE2b-256 | 28ab50466932565365f10c301e1cccc15c05e594531d4c0de59a24f8764ac119 |
File details
Details for the file awakatime-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: awakatime-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | 7be537a80bf461f396bcd41f7a1d818887aacff3b200e44cfb4d70ba2d2d812e |
|
MD5 | cc4b9ad880f7947f370797f9c7ad02a4 |
|
BLAKE2b-256 | c001be667cb8b1be7b309fc7962897c5b502752e106b8a18a2296907d7be6bf9 |