What is ddapi used for?
The ddapi tool is used to parsing or retrieving information from the DDraceNetwork game using the official api.
examples
I’ll show you one example here
import asyncio
from ddapi import DDnetApi, DDPlayer
async def main():
obj = DDnetApi()
nickname = "Cor"
user: DDPlayer = await obj.player(nickname)
if user is None:
await obj.close()
return "Player not found"
print(f"{user.player}: {user.points.total}")
await obj.close() # Closing client Not necessary
assert isinstance(user, DDPlayer)
asyncio.run(main())
other examples on github.