Skip to main content

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.

Metadata

Release files for little-a2s 0.7.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for little-a2s 0.7.3
File Size Uploaded
little_a2s-0.7.3.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for little-a2s 0.7.3
File Interpreter ABI Platform
little_a2s-0.7.3-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / little_a2s-0.7.3.tar.gz

Download URL little_a2s-0.7.3.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e38c8fc7f091e79cb3ade14766b4538accd4e7f7fe6be8a9d54ad3a6b5224a51
BLAKE2b-256 checksum
How to use checksums
02306c0aa5ce5b25d70a766acf5631d0c176530254e5818e5d523eb7e6b1769c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.

Transparency log

Release files / little_a2s-0.7.3-py3-none-any.whl

Download URL little_a2s-0.7.3-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67eccad093d9551a9b2da4f20bc4b345281939a755c860937f5f55dfb9fd328a
BLAKE2b-256 checksum
How to use checksums
fc982b373c506f6cfc895646ed298d650bd366b8911b68b082e4a72b2eacb250
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.3 This release

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page