Extract cue point locations from Hindenburg Journalist projects
Project description
hicues
hicues
(HIndenburg CUES) is a command line helper tool for Hindenburg Journalist that reads a project file and lists the cue points and their locations on the timeline along with their names. As of October 2021, you cannot get such a list within Hindenburg Journalist itself.
By default, the program keeps running and listens to changes to the file; the output is refreshed when the file is changed.
Installation
The best way to install hicues is via pip: pip install hicues
. You can alternatively install it from the source: python setup.py install
.
Usage
Basic usage
Run the program in the command line using hicues path/to/myproject.nhsx
. You will then see a table with the cue points in your project (if there are any). The table gets refreshed when you save the file. You can stop the program by pressing ctrl-c
.
Command line parameters
For more advanced use cases, you can use some of the following parameters.
flag | option | description |
---|---|---|
-h | --help | Show the help |
-t | --no-track | Don't show track names in the table-formatted output |
-r | --no-region | Don't show region names in the table-formatted output |
-d | --dump | Dump the list of cuepoints to output once instead of watching for changes forever |
-v | --verbose | Print diagnostic messages to stderr |
-j | --json | Output the results in JSON format instead of a formatted table |
--json-indent | If the output is JSON, this many spaces will be used to indent it. If not passed, everything will be on one line |
Python package
The main function, get_cue_points_from_file()
can be accessed by
from hicues import cue_finder
cue_finder.get_cue_points_from_file(filename)
This function returns a dictionary with the cue points ordered by their appearance on the timeline. Each cue point has four keys: timestamp
, which is a datetime.time
object with the location of the cue point on the timeline; name
, the label associated with the cue point; region
, the name of the region to which the cue point is attached; and track
, showing the name of the track where the the region is located.
Contributing
Issue submissions and pull requests are welcome. Simple fixes do not require an issue to be submitted, however, do submit one if your pull request includes a lot of changes or new features.
Changelog
- 0.1.0:
- initial public release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file hicues-0.1.0.tar.gz
.
File metadata
- Download URL: hicues-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d90f2e86f93662fb1f8ff7ac99726397525b113b3ca621c6e44b666d0db3e82a |
|
MD5 | 0f101ef590a59001c9e6988c1c0c1414 |
|
BLAKE2b-256 | 85c50ba0ff86ab731be816904453af1904b83fbf7194d605c4b9b3bf2a665e63 |
File details
Details for the file hicues-0.1.0-py3.9.egg
.
File metadata
- Download URL: hicues-0.1.0-py3.9.egg
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 600079abc631e68e813e512a673b474000564d9632e647e857fa4a4c4b4da7c0 |
|
MD5 | c716a743f8a795f455882495d156cc2d |
|
BLAKE2b-256 | b0163752962a162c5b0022cbd2ffc89a57a194b81d63a76b09aa6f2ff65c98a8 |
File details
Details for the file hicues-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: hicues-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff5d25a0ab36695ef1e5f330be51ec1867bfe7e6a84e4c2fe528597460fac09c |
|
MD5 | 06f5365756d4cd9b86123d1f900c1946 |
|
BLAKE2b-256 | 09f2491f1fd740131bbbcdac4cbd878e1097de01db1703712d9eec3241d7337f |