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

Uploaded Source

Built Distribution

ddapi-0.8.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ddapi-0.8.0.tar.gz
Algorithm Hash digest
SHA256 2d9626fe3545f2f28f4a5c8bbbd9e19311680a4833ddfb418645a4867a81da39
MD5 9dd0aadad721ce29326b7554d575f76f
BLAKE2b-256 6ca9bb609f1b66a76edd024bab9d7b32329f3b426e409459847c8cc3bf6448a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddapi-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc99391265ab2cf0efd6a6d9366f99dd782db8a5bd28e36e4fb8a5fee4550938
MD5 fabee1f25f6ddc574180785b3e4dc8a7
BLAKE2b-256 5f3fdd33370cd848cd1373329122a200af1a83a72baaf2d7c9be2499bac3704f

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