Browse Source

readme: added python interface snippet

Fabian Peter Hammerle 4 years ago
parent
commit
c9a16ec2b7
1 changed files with 13 additions and 0 deletions
  1. 13 0
      README.md

+ 13 - 0
README.md

@@ -44,3 +44,16 @@ $ tooncher toon
 $ tooncher ceo
 $ tooncher --cpu-limit 70 cfo
 ```
+
+### Python Interface
+
+```python
+import pathlib
+import tooncher
+
+tooncher.launch(
+    engine_path=pathlib.Path('/somewhere/toontown-rewritten/TTREngine'),
+    username='toon',
+    password='secret',
+)
+```