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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file little_a2s-0.7.1.tar.gz.
File metadata
- Download URL: little_a2s-0.7.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79d884dfe042b80485f207ade42cdad36c84d87983573686d2b4f3ed678e937b
|
|
| MD5 |
5a4ee0df035a49d1fa0de7607983504e
|
|
| BLAKE2b-256 |
62807d0d07f8e39df24b5a6be41b666f6d1fad79ef25f8a3ff04fcf527209466
|
Provenance
The following attestation bundles were made for little_a2s-0.7.1.tar.gz:
Publisher:
publish.yml on thegamecracks/little-a2s
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
little_a2s-0.7.1.tar.gz -
Subject digest:
79d884dfe042b80485f207ade42cdad36c84d87983573686d2b4f3ed678e937b - Sigstore transparency entry: 728821140
- Sigstore integration time:
-
Permalink:
thegamecracks/little-a2s@82e82cb4477971bb3ffbf46e70595642c0cc9dce -
Branch / Tag:
refs/heads/main - Owner: https://github.com/thegamecracks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@82e82cb4477971bb3ffbf46e70595642c0cc9dce -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file little_a2s-0.7.1-py3-none-any.whl.
File metadata
- Download URL: little_a2s-0.7.1-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
502b05eca0f726c4c72297d4c26421886507f1ab466174ffdca4834e8a6d9b5d
|
|
| MD5 |
4161dda4aad0ef2f7c5bf121d07ca82f
|
|
| BLAKE2b-256 |
c4481d9c4ee7dd6882a6bcacc32d31c6acd965ba252258d6cc586a18aecb71fc
|
Provenance
The following attestation bundles were made for little_a2s-0.7.1-py3-none-any.whl:
Publisher:
publish.yml on thegamecracks/little-a2s
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
little_a2s-0.7.1-py3-none-any.whl -
Subject digest:
502b05eca0f726c4c72297d4c26421886507f1ab466174ffdca4834e8a6d9b5d - Sigstore transparency entry: 728821148
- Sigstore integration time:
-
Permalink:
thegamecracks/little-a2s@82e82cb4477971bb3ffbf46e70595642c0cc9dce -
Branch / Tag:
refs/heads/main - Owner: https://github.com/thegamecracks
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@82e82cb4477971bb3ffbf46e70595642c0cc9dce -
Trigger Event:
workflow_dispatch
-
Statement type: