Skip to main content

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

Metadata

Release files for ddapi 0.4.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ddapi 0.4.6
File Size Uploaded Provenance Actions
ddapi-0.4.6.tar.gz 9.0 kB Without provenance Details for ddapi-0.4.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ddapi 0.4.6
File Interpreter ABI Platform Actions
ddapi-0.4.6-py3-none-any.whl Python 3 none any Details for ddapi-0.4.6-py3-none-any.whl

Total release size: 17.4 kB

Release files / ddapi-0.4.6.tar.gz

Download URL ddapi-0.4.6.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d99ee8ae165b4a2a522d3d6ceb76607b2a5fa75908f5cb912b706f8a9896f6b1
BLAKE2b-256 checksum
How to use checksums
30767d575dfd58d89707f56c343a108dcd11a00ba934e3e8677fc18562f95740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / ddapi-0.4.6-py3-none-any.whl

Download URL ddapi-0.4.6-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb04bcf9d17e32b7d792572f0c8a68ce69ffb91dd81043eccd4fa6ccbf499ef6
BLAKE2b-256 checksum
How to use checksums
e4850d25f2b3c34d6ef885526fa1c20582c51e26ca10fa31fdc1257c3804b523
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for ddapi 0.4.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page