If you use Arch Linux or one of its derivatives, you can install rcon from the AUR. Otherwise you can install rcon via pip:
pip install rcon
rcon requires Python 3.8 or higher.
Contents: