Metadata-Version: 2.4
Name: ddapi
Version: 0.9.3
Summary: DDnet api
Home-page: https://github.com/ByFox213/ddapi
Author: ByFox
Project-URL: Github, https://github.com/ByFox213/ddapi
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

ddapi is an api from the ddnet and qwik website

## Installation

```bash
  pip install ddapi
```

or

```bash
  pip install git+https://github.com/ByFox213/ddapi
```

## Usage/Examples

DDnet

```python
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())
```

Tested on Python
| 3.9 | 3.10 | 3.11 | 3.12 |
|-----|------|------|------|
| ? | ? | ✅ | ✅ |

[other examples](https://github.com/ByFox213/ddapi/tree/main/example)
