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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ddapi-0.4.8.tar.gz
  • Upload date:
  • Size: 8.8 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.8.tar.gz
Algorithm Hash digest
SHA256 a7b237979085426cdadd65e29934baa0d87b70187ac563b6bcfcaa6a1e0d59a5
MD5 bb6aa652c6cc52d99feb7f1b8846a8c3
BLAKE2b-256 a1baf732c2e85f072c5eb72b778835e027081e37b8aa546ba3da33e6e88c7bab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddapi-0.4.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2549ef7632f2e063e467141ea333698d7c71951d651124c647f22af5ccc7b56c
MD5 26fc30deddf3f750c4277a3a032cb82d
BLAKE2b-256 ab0a9eed3743711050a1500d784ad7bd9da7e923314503a59dd739b79914b3bd

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