semvec/pypi-packages huggingface dataset:
ddapi 0.14.3
DDnet api
License: MIT
Requires Python: >=3.10

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():
    async with DDnetApi() as obj:
        user: DDPlayer = await obj.player("Cor")
    if user is not None:
        text = f"{user.player}: {user.points.points}/{user.points.total}"
        percent = round(user.points.total / user.points.points * 100)
        print(f"{text}({percent}%)")
        # Cor: 32950/32950(100%)
    else:
        print("Player not found")


asyncio.run(main())
```

Tested on Python
| 3.11 | 3.12 | 3.13 |
|------|------|------|
| ✅ | ✅ | ✅ |

[other examples](https://github.com/ByFox213/ddapi/tree/main/example)
cranelift-py 0.1.0
Cranelift Python bindings
License: MIT
Requires Python: >=3.8

# Python bindings for the Cranelift compiler.

This package is a thin python wrapper around the [Cranelift](https://github.com/bytecodealliance/wasmtime/tree/main/cranelift) compiler.

It is pretty much a direct translation of the [Rust API](https://docs.rs/cranelift/latest/cranelift/) to Python, with some simplifications.

For usage check out the [example file](./example/example.py).