Skip to main content

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())

other examples

Project details


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.5.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

ddapi-0.5.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ddapi-0.5.1.tar.gz.

File metadata

  • Download URL: ddapi-0.5.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ddapi-0.5.1.tar.gz
Algorithm Hash digest
SHA256 54341268c55a294e4c3d3123a56ccf4bb264893ef9e4326588b38e9fedbb1574
MD5 3a9b1ab366d48447ba0d7e183fea83ee
BLAKE2b-256 4781ac4f7133571fa0afbf72381897c4d5d5631449517f3fe16479abe3d0d060

See more details on using hashes here.

File details

Details for the file ddapi-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: ddapi-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ddapi-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ac9b3b840a42ce9fc01434979d06fe051fbceae5847b295eb353a63f49af028
MD5 9a5f88347eaf4c0a3c2a04af9d12cb84
BLAKE2b-256 d96988be91d962f952d24d3b00593003fc416b652774cb6a15256d53d16f2fe3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page