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

Uploaded Source

Built Distribution

ddapi-0.9.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ddapi-0.9.3.tar.gz
Algorithm Hash digest
SHA256 7611530c554743a29c7ff718a7d7e07f18289563673f288b1749d82917044c32
MD5 d1626637f43379bc085cb1c43b2d0657
BLAKE2b-256 51c8160d7516358edb56deec7f02de734eb2d3574e5c12027ad7771a52366d14

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ddapi-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 583fd5690480c4620a76c52cfe5430be9f0e0cbbba52f8697821c3ed8e917a1e
MD5 b6ddfaa06e5318f719ade1a15a26a65a
BLAKE2b-256 dcc061b76c88ee467f52f97ea2f01ef6b2cb7148753430ffe63f589daa88ca1a

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