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.0.tar.gz
(8.3 kB
view details)
Built Distribution
ddapi-0.9.0-py3-none-any.whl
(9.1 kB
view details)
File details
Details for the file ddapi-0.9.0.tar.gz
.
File metadata
- Download URL: ddapi-0.9.0.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 | 54b86ba1ed124c2e54ad28313cc2a7ceadf45e73af74682daaed49affe2aaae4 |
|
MD5 | 248e641519aae86be167a23e895ae01d |
|
BLAKE2b-256 | 5fe593bdd107ad29eaedeefdcba14b322efa75963b63c2b6c5ee396d5eaad19f |
File details
Details for the file ddapi-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: ddapi-0.9.0-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 | b62fe9a6bd72f5e07925430b1006076f2d443fff8b773f5e72fa9e6eb960429e |
|
MD5 | 743591bf0ae972494013267239eac62d |
|
BLAKE2b-256 | bc31965d27677388e2e043c35e9e17fabad5d12bdc021c901ef495a5a94426c3 |