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

Uploaded Source

Built Distribution

ddapi-0.5.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ddapi-0.5.2.tar.gz
Algorithm Hash digest
SHA256 0d596d3d7aa320a74284c18cd469874b07dbcde290b4a6e7504c1bc6e554843c
MD5 94af6d1109f470bbcac450f94197d4f9
BLAKE2b-256 f45bc2827b848c582f27d5db9cd339f15d49380aa947ec47f26d8de7ffd89386

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ddapi-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 924e0bd76a5d44fc08182598bb8d427d4571b9b7497bb78ae59122bf304b3fb7
MD5 3aa13240f270dded521487729cd026b5
BLAKE2b-256 3e19973d357c44edc79b987d19eeed347bb090bc465d761d94890d95587ffe9e

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