Seqlister

Latest version: v1.2.0

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

Scan your dependencies

1.2.0

The main argument passed to each of the three functions in this library, namely the argument called 'seqList', now allows multiple Frame-Ranges, or multiple integers to be passed in any strings in the list. Any such strings passed in through seqList are split along whitespace and commas, and then processed as in v.1.1.0.

This is a backward compatible change with v1.1.0

Mainly the documentation was vastly improved and several new tests added to the regression-test-code.

The documentation appears in the code, and also in the README.md visible on the homepage for this repo.

This release was tested for backward compatibility with all the command-line utils in jrowellfx's repositories. Namely, lsseq, renumseq, expandseq and fixseqpadding, and passed in all cases, so this release can be made with a fair degree of confidence that it did not introduce any new bugs.

1.1.0

Added the ability to return any invalid arguments passed to condenseseq() back to the user, the way that expandseq() does. Non-integers strings are passed back with the nonSeqList optional argument.

Note, that since condenseseq already has an optional argument "pad", when skipping supplying the "pad" argument, and you ONLY want to pass a list to nonSeqList, then make use of the python feature where you can specify the argument by it's name.

Eg.

badArgs = []
seqLister.condenseSeq([1, 2, 3, 4, "foo"], 2, badArgs) Will return "01-04"

and

seqLister.condenseSeq([1, 2, 3, 4, "foo"], nonSeqList=badArgs)

Will BOTH return "foo" in the badArgs list.

Added some new test lines to the test code and actually fixed one bug. Strings containing negative integers (only passed to condenseseq(), that is, the bug did not affect expandseq()) were being made positive instead of remaining negative. Note that lists of negative ints (i.e. not lists of strings like ["-2", "-1"]) were being handled correctly which is why this bug likely hadn't cropped up in utils such as lsseq or renumseq etc.

1.0.0

This library is used by several command-line utilities written by jrowellfx (github user), and has been in heavy use for many years. Thus is is fully debugged and tested. Feel free to use it for any new purposes, but see lsseq, expandseq and renum utils for examples of its use.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.