Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.19 KB

File metadata and controls

43 lines (31 loc) · 1.19 KB

python-gamedig

Versions PyPI Downloads License

Unofficial high-level Python bindings for the Rust gamedig crate.

Installation

pip install gamedig

Usage

from socket import gethostbyname
from gamedig import query

ip_address = gethostbyname('minecraftonline.com')

response = query('minecraft', ip_address)

print(response)

Development

  1. Install dependencies into a virtual env: uv sync
  2. Make changes to the code and tests
  3. Build the package: uv run maturin develop
  4. Run the tests: uv run pytest