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

tested on python 3.11 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.7.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

ddapi-0.7.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ddapi-0.7.0.tar.gz
  • Upload date:
  • Size: 6.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.7.0.tar.gz
Algorithm Hash digest
SHA256 fdd2931ceda747cb682e677d779327f9c7d18255961fe13b38f3f2132b1bce43
MD5 17e02ee872fcf65716fe520ee07017f2
BLAKE2b-256 d76c44a9a279c643496430d1a8818c8bfd8b41111041bec222c29234fda89fdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddapi-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44d73b730cc221c15fd1844ed4ffb62be207684c6b328fa071eb9f0563b332aa
MD5 26b31af89ca2eb8c293c51dda619179d
BLAKE2b-256 009566dfa27f19212a6c901823f2a08067cdafaa8213a3fdf508dfef52c20e48

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