ddapi is an api from the ddnet and qwik website
Installation
I lost access to pypi so install via git below example
pip install ddapi # old version
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())
Release files for ddapi 0.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ddapi-0.4.6.tar.gz | 9.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ddapi-0.4.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.4 kB
Release files / ddapi-0.4.6.tar.gz
| Download URL | ddapi-0.4.6.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d99ee8ae165b4a2a522d3d6ceb76607b2a5fa75908f5cb912b706f8a9896f6b1
|
|
BLAKE2b-256 checksum How to use checksums |
30767d575dfd58d89707f56c343a108dcd11a00ba934e3e8677fc18562f95740
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / ddapi-0.4.6-py3-none-any.whl
| Download URL | ddapi-0.4.6-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb04bcf9d17e32b7d792572f0c8a68ce69ffb91dd81043eccd4fa6ccbf499ef6
|
|
BLAKE2b-256 checksum How to use checksums |
e4850d25f2b3c34d6ef885526fa1c20582c51e26ca10fa31fdc1257c3804b523
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|