PySplit
PySplit is a Python library for communicating with Livesplit Server.
Installation
Use the package manager pip to install foobar.
pip install livesplit-python
Usage
Example
import livesplit
import time
# Create our livesplit object
# On connection, your timer won't be reset by default
# To read more, take a look at options later.
l = livesplit.Livesplit()
# Start our timer
l.startTimer()
l.startGameTimer()
# Wait one second
time.sleep(1)
# Stop the game timer 1 second in
l.stopGameTimer()
time.sleep(1)
# Stop the timer
l.pause()
# Wait one second again
time.sleep(1)
# Reset the timer
l.reset()
Livesplit Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
ip |
String | IP address / hostname the Livesplit Server can be located at. | "127.0.0.1" |
port |
Integer | Port that the Livesplit Server is listening on. | 16834 |
reset |
Boolean | Whether to reset the timer when creating this object | False |
setupGameTimer |
Boolean | Whether to setup and pause the game timer when creating this object. | Value of reset |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
This project is licensed under the MIT license. To read more, open up the license file.
Release files for livesplit 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| livesplit-1.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| livesplit-1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / livesplit-1.0.tar.gz
| Download URL | livesplit-1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9694ad82c7b36b85195e8097b819250ec9b869419e3ed4ce97db97852def8cb
|
|
BLAKE2b-256 checksum How to use checksums |
f874751c13f4091bec27a30e0d68588fcfcbe3222a9d2d7dc75befd759f9c5f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|
Release files / livesplit-1.0-py3-none-any.whl
| Download URL | livesplit-1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abbee11ad23e3db6a85398efccff826d2a6e84e77691914d41b12d1e843da629
|
|
BLAKE2b-256 checksum How to use checksums |
97ed8001e1fb8fa3778d032862393326ffeb86ef9acb7437d2b3392c4442e463
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
|