Skip to main content

ddapi

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

Uploaded Source

Built Distribution

ddapi-0.4.7-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ddapi-0.4.7.tar.gz
Algorithm Hash digest
SHA256 7f319ebdeee7a3b5fd9eca2321c342be6d848ef8d6fc49ef3f38fd57dd66e3f5
MD5 2bad17b1a2b2a71a73076e974690b2f2
BLAKE2b-256 f86672ca6e1e284d6ac8561e0e51a1490b64446dbb1a59bb6fda42ed0d430bc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddapi-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c918cea77b5361a75ef18c5f80cb6810c75fb54bf4cd225471cb28bb144bcf61
MD5 fafb16fb090a067bd4ef84f86d139ebc
BLAKE2b-256 bca0ea131556aee44ef40dbfa5627d6f392cc2068141de0303cb50bcb355846d

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