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.4.0.tar.gz (14.2 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.4.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: little_a2s-0.4.0.tar.gz
  • Upload date:
  • Size: 14.2 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.4.0.tar.gz
Algorithm Hash digest
SHA256 dcba4ddaea9d5c5648e91be4c3ec08d1b3460799c8e24d1de00ff156ea9c04b9
MD5 024b7e8d87f3c351e760fb3490b5f4ab
BLAKE2b-256 29c86db92a074254c83f6f91067bc0ff8d93a75ca3142b757a8b33265796dfe9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: little_a2s-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 18.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db04c7dfcdac23c4deb005480ae9fb57373df99da1b307e9ab941aed79398224
MD5 5c2ea21cb4a6b09cbdfd2ea66f01f295
BLAKE2b-256 dce26c1d851519678b3efa30a72aa611a5c1f2fcd3597ef45d8bc4dbd007349b

See more details on using hashes here.

Provenance

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