Skip to main content

ddapi

Project description

ddapi is an api from the ddnet and qwik website

Installation

I lost access to pypi so install via git below example

  pip install ddapi # old version

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ddapi-0.4.6.tar.gz
  • Upload date:
  • Size: 9.0 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.6.tar.gz
Algorithm Hash digest
SHA256 d99ee8ae165b4a2a522d3d6ceb76607b2a5fa75908f5cb912b706f8a9896f6b1
MD5 76f83ba4ca6943308dea9ff9aaae5335
BLAKE2b-256 30767d575dfd58d89707f56c343a108dcd11a00ba934e3e8677fc18562f95740

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddapi-0.4.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bb04bcf9d17e32b7d792572f0c8a68ce69ffb91dd81043eccd4fa6ccbf499ef6
MD5 34840d5333f497d98f28a48dd57b6599
BLAKE2b-256 e4850d25f2b3c34d6ef885526fa1c20582c51e26ca10fa31fdc1257c3804b523

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