Metadata-Version: 2.4
Name: gamedig
Version: 0.5.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Summary: Unofficial high-level Python bindings for the Rust gamedig crate
Author-email: Jonathan Ehwald <github@ehwald.info>
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# python-gamedig

[![Versions][versions-image]][versions-url]
[![PyPI][pypi-image]][pypi-url]
[![License][license-image]][license-url]

[versions-image]: https://img.shields.io/pypi/pyversions/gamedig
[versions-url]: https://github.com/DoctorJohn/python-gamedig/blob/main/pyproject.toml
[pypi-image]: https://img.shields.io/pypi/v/gamedig
[pypi-url]: https://pypi.org/project/gamedig/
[license-image]: https://img.shields.io/pypi/l/gamedig
[license-url]: https://github.com/DoctorJohn/python-gamedig/blob/main/LICENSE

Unofficial high-level Python bindings for the Rust [gamedig](https://crates.io/crates/gamedig) crate.

## Installation

```bash
pip install gamedig
```

## Usage

```python
from socket import gethostbyname
from gamedig import query

ip_address = gethostbyname('minecraftonline.com')

response = query('minecraft', ip_address)

print(response)
```

## Development

1. Clone the repository and change into its directory
2. Create a virtual environment: `uv venv --seed`
3. Install dev dependencies: `uv sync --only-dev`
4. Activate the virtual environment: `source .venv/bin/activate`
5. Make changes to the code and tests
6. Build the package: `maturin develop`
7. Run the tests: `pytest`

