sampquery
Better, flexible, re-written and fast SA:MP/OMP query server client
Introduction
SA:MP Query it is developed to interact with GTA SA:MP/OpenMP servers, allowing to obtain
important data through mechanisms based on a UDP packet system provided by SA:MP.
[!NOTE]
Learn more about SA:MP Query Mechanisms
Installation
pip install py-sampquery
Usage
import trio
import sampquery as sampq
async def main() -> None:
server = sampq.SAMPQuery_Client(
ip='144.217.174.214',
port=6969
)
# Getting server information
server_info = await server.info()
print(f"Retrieving server data of {server_info.name)
# Players inside
player_list = await server.players()
for player in player_list.players:
print(f"Nickname: {player.name} (Score: {player.score})")
if __name__ == "__main__":
trio.run(main)
Wanna see some examples? you can check this examples folders.
Contributions
We're open to receiving contributions and improvements for the following enhancements. Feel free to open an issue or create a pull request.
Metadata
Release files for py-sampquery 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_sampquery-0.0.6.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_sampquery-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.6 kB
Release files / py_sampquery-0.0.6.tar.gz
| Download URL | py_sampquery-0.0.6.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
655eb41e3e9d1de5320fe430dc646e36230a6458f15d4c314f14c4152fc76abb
|
|
BLAKE2b-256 checksum How to use checksums |
8fb47fac7e0e64ecedf733e0bacc53b550106349d5950835c2ef266b9bc3313d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / py_sampquery-0.0.6-py3-none-any.whl
| Download URL | py_sampquery-0.0.6-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28690ea2818910747e7f87461fe73a016b09e835462eec8f5bf2b40557773161
|
|
BLAKE2b-256 checksum How to use checksums |
8bf31129782762dc6d52ef56f8fa8e168fe176869bcd909b8b708eb09e1516a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|