Skip to main content

A library to communicate with LiveSplit server from python.

Project description

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.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

livesplit-1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

livesplit-1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file livesplit-1.0.tar.gz.

File metadata

  • Download URL: livesplit-1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for livesplit-1.0.tar.gz
Algorithm Hash digest
SHA256 c9694ad82c7b36b85195e8097b819250ec9b869419e3ed4ce97db97852def8cb
MD5 87e150462f474217b383bdfa8e6a8683
BLAKE2b-256 f874751c13f4091bec27a30e0d68588fcfcbe3222a9d2d7dc75befd759f9c5f2

See more details on using hashes here.

File details

Details for the file livesplit-1.0-py3-none-any.whl.

File metadata

  • Download URL: livesplit-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for livesplit-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abbee11ad23e3db6a85398efccff826d2a6e84e77691914d41b12d1e843da629
MD5 154ac0435b5b05c4b3bf63829427190a
BLAKE2b-256 97ed8001e1fb8fa3778d032862393326ffeb86ef9acb7437d2b3392c4442e463

See more details on using hashes here.

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