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

Make sure you have Poetry installed.

git clone https://github.com/controlado/awakatime.git
cd awakatime
poetry install --with dev

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.6.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

awakatime-1.1.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: awakatime-1.1.6.tar.gz
  • Upload date:
  • Size: 4.0 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.6.tar.gz
Algorithm Hash digest
SHA256 9ec0bc9d7cbdd6b7ca1426820cdba241ff2d6a2e49cf0bbcb1b3438ebbfe645e
MD5 4bc742ecd8387ff280ac8a1aa56538ab
BLAKE2b-256 a8ce779216e5816c2fa2cac0aab684a513fc42cb33a9070a64c2c7949f53bd68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: awakatime-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bb82df77f0d5d99586892a67bc98d89023bbbd8202f3fa79644c2a2c45df9507
MD5 f0f9224d6554079e5bb26b044e799987
BLAKE2b-256 b8a154175e01da888bd8f9eeb2381f02f69996715825419c40b3b339186260eb

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