Sen descrición

Fabian Peter Hammerle c9a16ec2b7 readme: added python interface snippet %!s(int64=4) %!d(string=hai) anos
tests 9789ac2889 cli: fail if select username not in config file or ambiguous %!s(int64=4) %!d(string=hai) anos
tooncher 9789ac2889 cli: fail if select username not in config file or ambiguous %!s(int64=4) %!d(string=hai) anos
.gitignore 64431eda67 gitignore: /build and /env %!s(int64=6) %!d(string=hai) anos
.pylintrc 5860e57415 pylint: disable bad-continuation & missing-docstring check %!s(int64=4) %!d(string=hai) anos
CHANGELOG.md 9789ac2889 cli: fail if select username not in config file or ambiguous %!s(int64=4) %!d(string=hai) anos
LICENSE.txt 5b192b434a release v0.4.1 %!s(int64=4) %!d(string=hai) anos
Pipfile a6a79b1510 black format %!s(int64=4) %!d(string=hai) anos
Pipfile.lock a6a79b1510 black format %!s(int64=4) %!d(string=hai) anos
README.md c9a16ec2b7 readme: added python interface snippet %!s(int64=4) %!d(string=hai) anos
setup.cfg 1e7fc4b920 initial %!s(int64=7) %!d(string=hai) anos
setup.py 76a716b940 install command line interface via `setuptools.setup(entry_points=…)` %!s(int64=4) %!d(string=hai) anos

README.md

tooncher

automates toontown rewritten's login process

Installation

$ pip3 install --user --upgrade tooncher

Optional: Install cpulimit to enable use of parameter --cpu-limit

$ sudo apt-get install cpulimit

Configuration

# default path: $HOME/.tooncher
accounts:
- username: toon
  password: secret
- username: ceo
  password: golf
- username: cfo
  password: train
engine_path: '/opt/Toontown Rewritten/TTREngine'

Usage

$ tooncher [username]

tooncher --help shows all available options.

Examples

$ tooncher toon
$ tooncher ceo
$ tooncher --cpu-limit 70 cfo

Python Interface

import pathlib
import tooncher

tooncher.launch(
    engine_path=pathlib.Path('/somewhere/toontown-rewritten/TTREngine'),
    username='toon',
    password='secret',
)