Lsseq

Latest version: v4.0.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

2.7.0

$ cd tests/testdir/pdir/
$ source custom.touch.images
$ lsseq --globalSortByTime --noErrorLists --recursive --prependPathRel -t -r --time median
./p01_dir/p02B_dir/p01B_median1_v01.[08-12].jpg
./p01_dir/p02B_dir/p01B_median1_v02.[08-12].jpg
./p01_dir/p02B_dir/p01B_median1_v03.[08-12].jpg
./p01_dir/p01_median2_v01.[08-12].jpg
./p01_dir/p01_median2_v02.[08-12].jpg
./p01_dir/p01_median2_v03.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v01.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v02.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v03.[08-12].jpg
./p_median4_v01.[08-12].jpg
./p_median4_v02.[08-12].jpg
./p_median4_v03.[08-12].jpg
./p02_dir/p02_median5_v01.[08-12].jpg
./p02_dir/p02_median5_v02.[08-12].jpg
./p02_dir/p02_median5_v03.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v01.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v02.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v03.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v01.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v02.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v03.[08-12].jpg

$ lsseq --globalSortByTime --noErrorLists --recursive --prependPathRel -t -r --time oldest
./p02_dir/p02_median5_v03.[08-12].jpg
./p02_dir/p02_median5_v01.[08-12].jpg
./p02_dir/p02_median5_v02.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v03.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v01.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v02.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v03.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v01.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v02.[08-12].jpg
./p01_dir/p02B_dir/p01B_median1_v03.[08-12].jpg
./p01_dir/p02B_dir/p01B_median1_v01.[08-12].jpg
./p01_dir/p02B_dir/p01B_median1_v02.[08-12].jpg
./p01_dir/p01_median2_v03.[08-12].jpg
./p01_dir/p01_median2_v01.[08-12].jpg
./p01_dir/p01_median2_v02.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v03.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v01.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v02.[08-12].jpg
./p_median4_v03.[08-12].jpg
./p_median4_v01.[08-12].jpg
./p_median4_v02.[08-12].jpg

$ lsseq --globalSortByTime --noErrorLists --recursive --prependPathRel -t -r --time newest
./p_median4_v02.[08-12].jpg
./p_median4_v03.[08-12].jpg
./p_median4_v01.[08-12].jpg
./p02_dir/p02_median5_v02.[08-12].jpg
./p02_dir/p02_median5_v03.[08-12].jpg
./p02_dir/p02_median5_v01.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v02.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v03.[08-12].jpg
./p02_dir/p02A_dir/p02A_median6_v01.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v02.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v03.[08-12].jpg
./p02_dir/p02B_dir/p02B_median7_v01.[08-12].jpg
./p01_dir/p02B_dir/p01B_median1_v02.[08-12].jpg
./p01_dir/p02B_dir/p01B_median1_v03.[08-12].jpg
./p01_dir/p02B_dir/p01B_median1_v01.[08-12].jpg
./p01_dir/p01_median2_v02.[08-12].jpg
./p01_dir/p01_median2_v03.[08-12].jpg
./p01_dir/p01_median2_v01.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v02.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v03.[08-12].jpg
./p01_dir/p01A_dir/p01A_median3_v01.[08-12].jpg

You would almost never see such discrepancies between `oldest`, `newest` or `median` when listing versioned sub-directories within a render directory, but the time stamps on those files above were hand tweaked to really push the test and make sure that the sequences were printing out in the correct order. If you want to double check that it's correct, then try running this while your current working directory is still pdir:

$ ls -t -r -l -R

And compare the results!

Enjoy!

2.6.1

Includes a slightly improved default help message (to show -h or --help is available). More importantly moved importing 3 modules into a small section of code that uses them in main(), which significantly speeds up loading and running lsseq. Those 3 modules are heavy and only needed when calling the --onlyShow option. This speedup is most noticeable on slower-older machines, however should speed it up on all platforms.

2.6.0

Using better time-stamp format for specifying the cutoff date for listing sequences
(before or since the date) with --onlyShow. The date format is now:
[CC]YYMMDD[-hh[mm[ss]]] - which gives more terse options for
specifying the date than before, plus it is easier to read.

The older syntax for specifying the date is still quietly supported, but no
longer listed in the help output.

Also fixed two minor bugs with how the --onlyShow feature was working.
1) When using --onlyShow, it was incorrectly listing shots in reverse alphabetical order.
2) The cutoff time was supposed to INCLUDE files up-to-and-including (or including-and-after) the
date specified, but the test was omitting sequences whose times matched exactly instead of including them.

2.5.3

Added the following file types to the default lists of files types considered to be images, or movies or cached sequences.

LSSEQ_IMAGE_EXTENSION
ari - Arri
arw - Sony/Minolta
cr2 - Canon RAW 2
crw - Canon RAW
dng - Digital Negative
orf - Olympus
pef - Pentax RAW
ptx - Pentax RAW 2
raf - Fuji
rdc - Ricoh
rmf - Canon Raw Media Format

LSSEQ_MOV_EXTENSION
mxf - Arri

LSSEQ_CACHE_EXTENSION
tx - Render Texture cached image (eg. Arnold)

2.5.2

Changed code to use PROG_NAME='lsseq' string global variable
which replaces use of sys.argv[0] since the latter does not behave well in all
circumstances. For example under wiz or rez version control systems sys.argv[0]
results in the program name printing as "\_\_main__.py" for usage and error msgs.
Simply using the string 'lsseq' is probably the best solution to this issue.
All regression tests passed - NO change to test-output besides version number
being incremented.

2.5.1

Added three new types to internal default list of image extensions.

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.