Skip to main content

A synchronous and sans-I/O library implementing the A2S Valve Source Query protocol.

Project description

little-a2s

A synchronous and sans-I/O library implementing the A2S Valve Source Query protocol.

from little_a2s import A2S

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

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.3.0.tar.gz (13.3 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.3.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: little_a2s-0.3.0.tar.gz
  • Upload date:
  • Size: 13.3 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.3.0.tar.gz
Algorithm Hash digest
SHA256 19e84a78e5557744e5781e0bc80b5209981d64c1d7b25c1745f353ae97bcfc04
MD5 18b672fc96d80155614bc942e67be95b
BLAKE2b-256 12832fe92274598cf2afde7a64c538de50df9cf1e95c78e4910a93b8ac60aadd

See more details on using hashes here.

Provenance

The following attestation bundles were made for little_a2s-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: little_a2s-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f25e934a23605fe17d207594bda453a2aa1e48d75205e8cf18fee751a675c4f
MD5 f1e363b408da204c9842f89a5ba15161
BLAKE2b-256 a01beaf219df53665fee6fc329e84c73ac1e20c6b54dbbb0b33944faf48d52ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for little_a2s-0.3.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