Skip to main content

This library allows you to use Half-Life RCON protocol

Project description

# rHLDS
This library allows you to use Half-Life RCON protocol.

## REQUIREMENTS
Python 3+

## INSTALLATION
```
$ sudo pip3 install rHLDS
```
Or from git:
```
$ git clone https://github.com/chmod1/rHLDS.git
$ cd rHLDS
$ sudo python3 setup.py install
```

## USING
```python
from rHLDS import Console

# Default port 27015
srv = Console(host='127.0.0.1', password='somePass')
# If you need another port
srv = Cconsole(host='127.0.0.1', port=27016, password='somePass')

# Connect to server
srv.connect()

# Execute any command
print(srv.execute("status"))

# Сlose connection
srv.disconnect()
```

# LICENSE
[MIT License](http://www.opensource.org/licenses/MIT)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rHLDS-0.1.2.tar.gz (1.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page