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())
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.6.0.tar.gz
(7.2 kB
view details)
Built Distribution
ddapi-0.6.0-py3-none-any.whl
(7.5 kB
view details)
File details
Details for the file ddapi-0.6.0.tar.gz
.
File metadata
- Download URL: ddapi-0.6.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb892d1e02f958fc2fd6e24444ab11fa45e7452b3bb997daf772b4e49441ca06 |
|
MD5 | d3bc96b3f927ec12c58893f46b22e45e |
|
BLAKE2b-256 | 9c6ac497e7cdcda6d849c554eb71d4e687d5676b3fb6daa897ea801a7a4a6f61 |
File details
Details for the file ddapi-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: ddapi-0.6.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c852dbc55d4cfd8f0376651f57855e00c210c601e176260f2f05996c0324e44 |
|
MD5 | ad3efe6714f13cc535fcb6683880f8a9 |
|
BLAKE2b-256 | 7acbf9ed566f22111f3f12921a6a7e7d0bcc3f82001784cc01404a33d5af53f6 |