simple steamcmd app installer
Project description
# py_steamcmd_installer
Simple tool to install steam apps via python using the steamcmd
## Prerequisites
Make sure steamcmd and python is installed
### Installing
```
pip install py_steamcmd_installer
```
## How to use:
```
# import the package
import py_steamcmd_installer
# create a steamcmd object and give the steamcmd path as an argument
steamcmd = py_steamcmd_installer.steamcmd("/usr/bin/steamcmd")
# create a function that handels the process output
def output_parser(output):
# under Linux the output will be printed from the pty
if steamcmd.__platform == "Windows":
print(output)
# set the output parser
steamcmd.handleOutput = output_parser
# install a server
steamcmd.installServer(4020, ../server_path)
```
Simple tool to install steam apps via python using the steamcmd
## Prerequisites
Make sure steamcmd and python is installed
### Installing
```
pip install py_steamcmd_installer
```
## How to use:
```
# import the package
import py_steamcmd_installer
# create a steamcmd object and give the steamcmd path as an argument
steamcmd = py_steamcmd_installer.steamcmd("/usr/bin/steamcmd")
# create a function that handels the process output
def output_parser(output):
# under Linux the output will be printed from the pty
if steamcmd.__platform == "Windows":
print(output)
# set the output parser
steamcmd.handleOutput = output_parser
# install a server
steamcmd.installServer(4020, ../server_path)
```
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
Close
Hashes for py_steamcmd_installer-0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef80f4a1094a6915cf148c1b624822fa2a545fdb51e66c4a53dcbaaf8e0bb770 |
|
MD5 | af8c1451501b6f24e0ae6aae45faecc7 |
|
BLAKE2b-256 | 9a8b20c14671fe48690a8d5e13080f4be697449dcd33a871741a60ed4217a09c |