API wrapper for RCON.
Project description
py3rcon
RCON API for Python3
Built and tested for Quake3, but will work with most RCON systems.
Installation:
$ pip install py3rcon
Examples:
Send RCON commands without waiting for a response:
from py3rcon import RCON
rcon = RCON("127.0.0.1", "secret_password")
rcon.send_command("say Hello, world!", response=False)
Send RCON commands and get their response:
from py3rcon import RCON
rcon = RCON("127.0.0.1", "secret_password", port=27960) #port is optional
status = rcon.send_command("status")
print(status)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
py3rcon-1.0-py3-none-any.whl
(14.6 kB
view details)
File details
Details for the file py3rcon-1.0-py3-none-any.whl
.
File metadata
- Download URL: py3rcon-1.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78438f409d13fc728db4c46910897d7f28f2ec479d1fef9696db22fe0acd68b0 |
|
MD5 | d612c6b050b4775783fd50810a2f51b0 |
|
BLAKE2b-256 | 8cb64a9af15103ff00907fc3d01d6e25239a07000c962f54b7d42a47ad1ea797 |