Skip to main content

DDnet api

Project description

ddapi is an api from the ddnet and qwik website

Installation

  pip install ddapi

or

  pip install git+https://github.com/ByFox213/ddapi

Usage/Examples

DDnet

import asyncio
from ddapi import DDnetApi, DDPlayer


async def main():
    obj = DDnetApi()
    nickname = "Cor"
    user: DDPlayer = await obj.player(nickname)
    if user is None:
        return "Player not found"
    print(f"{user.player}: {user.points.points}")
    # Cor: 31473 
    await obj.close()  # Closing client Not necessary
    assert isinstance(user, DDPlayer)


asyncio.run(main())

Tested on Python

3.9 3.10 3.11 3.12
? ? ?

other examples

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

ddapi-0.7.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

ddapi-0.7.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file ddapi-0.7.2.tar.gz.

File metadata

  • Download URL: ddapi-0.7.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for ddapi-0.7.2.tar.gz
Algorithm Hash digest
SHA256 56ae4c4314ddfc06fa917aede367f87fcfeda2a8f0fbd2f83777d00998303815
MD5 08089525fa5b0cd5c5f661f033e59880
BLAKE2b-256 77d3e96771d7b9c9efb220603246d46216710227d3ed757e000dcdaa125e0e7d

See more details on using hashes here.

File details

Details for the file ddapi-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: ddapi-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for ddapi-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73167e64b8d8c8dcc6ee956fb2146802851d7c340d8e179bf20ae08a35ab3616
MD5 256f8fa52e105d8459b3b65597833732
BLAKE2b-256 b56b25ef5ff12021b9be92bb165ae35e8033c0c631cedc46819ffaee0ce375e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page