Skip to main content

A sync + async + sans-I/O library for the Valve Source Query (A2S) protocol.

Project description

little-a2s

A sync + async + sans-I/O library for the Valve Source Query (A2S) protocol.

from little_a2s import A2S, AsyncA2S

with A2S.from_addr("example.com", 27015, timeout=1) as a2s:
    print(a2s.info())
    print(a2s.players())
    print(a2s.rules())

addr = ("127.0.0.1", 27015)
async with AsyncA2S.from_ipv4() as a2s, asyncio.timeout(1):
    info = await a2s.info(addr)
    players = await a2s.players(addr)
    rules = await a2s.rules(addr)

Read the documentation or see the examples directory to get started!

Installation

The minimum Python version required is 3.11. No other dependencies are required.

This package can be installed from PyPI using one of the following commands:

# Linux/MacOS
python3 -m pip install little-a2s

# Windows
py -m pip install little-a2s

To install the development version of the library (requires Git), you can download it from GitHub directly:

pip install git+https://github.com/thegamecracks/little-a2s

License

This project is written under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

little_a2s-0.7.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

little_a2s-0.7.0-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file little_a2s-0.7.0.tar.gz.

File metadata

  • Download URL: little_a2s-0.7.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for little_a2s-0.7.0.tar.gz
Algorithm Hash digest
SHA256 f67a4edc45d18b99b208af980f3d3f1910223186e71958731bf93e29f7a59d4e
MD5 e7035828cc3584b6c0a860c383d49d51
BLAKE2b-256 e23e7b17b088f0ed205538f21e6c5cf30350d24fdf71457fc180e7a2b52667dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for little_a2s-0.7.0.tar.gz:

Publisher: publish.yml on thegamecracks/little-a2s

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file little_a2s-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: little_a2s-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for little_a2s-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4ad8a405dfd46a1f60c6c2ead6a16722add11d13138a7fa6c762cde1e470c9e
MD5 5b79d1c8c8ce5895f1acfebbfd4c2c25
BLAKE2b-256 f1d198f9a38c1ee3ea6ac91c186acb621c968f4ad1a43d9f13fff0fd77be8289

See more details on using hashes here.

Provenance

The following attestation bundles were made for little_a2s-0.7.0-py3-none-any.whl:

Publisher: publish.yml on thegamecracks/little-a2s

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page