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():
async with DDnetApi() as obj:
user: DDPlayer = await obj.player("Cor")
if user is not None:
text = f"{user.player}: {user.points.points}/{user.points.total}"
percent = round(user.points.total / user.points.points * 100)
print(f"{text}({percent}%)")
# Cor: 32950/32950(100%)
else:
print("Player not found")
asyncio.run(main())
Tested on Python
3.11 | 3.12 | 3.13 |
---|---|---|
✅ | ✅ | ✅ |
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.13.1.tar.gz
(10.0 kB
view details)
Built Distribution
ddapi-0.13.1-py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file ddapi-0.13.1.tar.gz
.
File metadata
- Download URL: ddapi-0.13.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f0ae693ba217003d1dafd545a9cb91773ca24ea474fb6b96cab6f6cca7b1faa |
|
MD5 | 689b5bfe0c7ec559bd93d1bf3a6f4ef4 |
|
BLAKE2b-256 | f024861df49325d337002fce516240121d1323154ea95f91606cf720f57dbc17 |
File details
Details for the file ddapi-0.13.1-py3-none-any.whl
.
File metadata
- Download URL: ddapi-0.13.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c6dcc24354db8b103dfa6ec8d2305e9acf918bac5736621398705f0c97c0e0 |
|
MD5 | aeaaaee64fdbebaf22e9352f4cb3398f |
|
BLAKE2b-256 | 08b2ccba236201e28c0b5637c3f61f7632b4337e3f0be5c4602d138ff46e7da0 |