lightshark-parser
lightshark-parser is a Python library for parsing show files used in the Lightshark software (.lshw).
Features
Parsing .lshw files
Extracts details from .lshw files into a Lightshow object. Also supports :
- Serialising the
Lightshowobject into a .json file - Summarising important show details into a .txt file
Currently, the following details are extracted:
- Fixture models
- Patched fixtures
- Groups
- Palettes
- Cues
- Cuelists
- Playbacks
- FXs
- Some settings
Edit without a Lightboard!
Lightshark Parser comes with a set of functions that allow you to edit the show's attributes through code without needing to use the lightboard directly, serving as a sort of offline editor.
Can also be used to create your own custom "macros".
After editing, you can use the to_bytes() method to write it back into a .lshw file, following a similar format to the one used by Lightshark.
Disclaimers:
- This is not official in any capacity. I reverse-engineered this based off a bunch of files I had, so it is nowhere near 100% accurate to how Lightshark formats their files.
- Some details of the show are currently not supported. The current ones implemented are the most commonly used, so it should work for most purposes.
Installation
You can install lightshark-parser using pip:
pip install lightshark-parser
Usage
Lightshark Parser can be used both from the command line and using Python code.
Command line
lightshark-parser -p/s <input_file> -o <output_file>
-p: Parse file-s: Summarise file
If no output file is provided, output_file will default to <input_path>.json or <input_path>_summarised.txt depending on the operation selected.
Code
from lightshark_parser import Lightshow, parse_file_bytes
Metadata
Release files for lightshark-parser 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| lightshark_parser-1.0.0.tar.gz | 66.4 kB | Without provenance | Details for lightshark_parser-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lightshark_parser-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for lightshark_parser-1.0.0-py3-none-any.whl |
Total release size: 150.2 kB
Release files / lightshark_parser-1.0.0.tar.gz
| Download URL | lightshark_parser-1.0.0.tar.gz |
|---|---|
| Size | 66.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
795a3a8007fe8f9a916f2d59aa5e12cd8b9aad50f8d94ebc9e85bee732dfa4df
|
|
BLAKE2b-256 checksum How to use checksums |
677e828d68822bf77519d16e6e7009accd9a337accb0a3b83e26b7f9d79b4e33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / lightshark_parser-1.0.0-py3-none-any.whl
| Download URL | lightshark_parser-1.0.0-py3-none-any.whl |
|---|---|
| Size | 83.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ad2f0579ecae744435f0ee87685e69e2a3b703ad14f7ecacc1bf5c27d6f1730
|
|
BLAKE2b-256 checksum How to use checksums |
97b488c4e5077c3ebecb817e99c61b992257a8de3b00113df29d063a10f21352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for lightshark-parser 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.