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 |
---|---|---|---|
? | ? | ✅ | ✅ |
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(8.3 kB
view details)
Built Distribution
ddapi-0.9.1-py3-none-any.whl
(9.1 kB
view details)
File details
Details for the file ddapi-0.9.1.tar.gz
.
File metadata
- Download URL: ddapi-0.9.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d383f816f6cc4b03f17b7420612f5c79bd849fdb45b7ed15c49b3dd4c229c5 |
|
MD5 | 017fb1f383d5862dba388439001f6647 |
|
BLAKE2b-256 | caf3dffdaac105e33cf1a77ba75abbcef259d1cb04177df781fe7ea6317a48a3 |
File details
Details for the file ddapi-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: ddapi-0.9.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fdd88903f3d01bcce3f521f76fcbbf6be1115210dbc09cd491315ccbd0edd7c |
|
MD5 | ba94a990363b35682638cd4adacce64c |
|
BLAKE2b-256 | 8c53b665201ef72c974e4929d33b1fda61f377b6c50e272e16460971462933f9 |