Skip to content
/ ddapi Public

The ddapi tool is used to parsing or retrieving information from the DDraceNetwork game using the official api.

License

Notifications You must be signed in to change notification settings

ByFox213/ddapi

Repository files navigation

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

About

The ddapi tool is used to parsing or retrieving information from the DDraceNetwork game using the official api.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published