expandSeq 3.0.0__py3-none-any.whl → 4.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- condenseseq/__main__.py +5 -5
- expandseq/__main__.py +4 -4
- {expandSeq-3.0.0.dist-info → expandseq-4.0.1.dist-info}/METADATA +121 -15
- expandseq-4.0.1.dist-info/RECORD +10 -0
- {expandSeq-3.0.0.dist-info → expandseq-4.0.1.dist-info}/WHEEL +1 -1
- {expandSeq-3.0.0.dist-info → expandseq-4.0.1.dist-info}/entry_points.txt +0 -1
- {expandSeq-3.0.0.dist-info → expandseq-4.0.1.dist-info/licenses}/LICENSE +1 -1
- expandSeq-3.0.0.dist-info/RECORD +0 -10
- {expandSeq-3.0.0.dist-info → expandseq-4.0.1.dist-info}/top_level.txt +0 -0
condenseseq/__main__.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# 3-Clause BSD License
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2008-
|
|
5
|
+
# Copyright (c) 2008-2026, James Philip Rowell,
|
|
6
6
|
# Alpha Eleven Incorporated
|
|
7
7
|
# www.alpha-eleven.com
|
|
8
8
|
# All rights reserved.
|
|
@@ -52,7 +52,7 @@ import seqLister
|
|
|
52
52
|
# MINOR version for added functionality in a backwards compatible manner
|
|
53
53
|
# PATCH version for backwards compatible bug fixes
|
|
54
54
|
#
|
|
55
|
-
VERSION = "
|
|
55
|
+
VERSION = "4.0.1"
|
|
56
56
|
|
|
57
57
|
PROG_NAME = "condenseseq"
|
|
58
58
|
|
|
@@ -108,7 +108,7 @@ def main():
|
|
|
108
108
|
|
|
109
109
|
(Also see expandseq).
|
|
110
110
|
'''),
|
|
111
|
-
usage="%(prog)s [OPTION]... [FRAME-RANGE]...")
|
|
111
|
+
usage="%(prog)s [-h | --help] [OPTION]... [FRAME-RANGE]...")
|
|
112
112
|
|
|
113
113
|
p.add_argument("--version", action="version", version=VERSION)
|
|
114
114
|
p.add_argument("--delimiter", "-d", action="store", type=str,
|
|
@@ -117,7 +117,7 @@ def main():
|
|
|
117
117
|
metavar="DELIMITER",
|
|
118
118
|
default="space",
|
|
119
119
|
help="List successive numbers delimited by a 'comma', 'space' (default) or a 'newline'.")
|
|
120
|
-
p.add_argument("--
|
|
120
|
+
p.add_argument("--only-ones", action="store_true",
|
|
121
121
|
dest="onlyOnes", default=False,
|
|
122
122
|
help="only condense sucessive frames, that is, do not list sequences on 2's, 3's, ... N's")
|
|
123
123
|
p.add_argument("--pad", action="store", type=int,
|
|
@@ -128,7 +128,7 @@ def main():
|
|
|
128
128
|
p.add_argument("--error", action="store_true",
|
|
129
129
|
dest="exitOnError", default=True,
|
|
130
130
|
help="exit with error if FRAME-RANGE is invalid. (default)" )
|
|
131
|
-
p.add_argument("--
|
|
131
|
+
p.add_argument("--no-error", action="store_false",
|
|
132
132
|
dest="exitOnError",
|
|
133
133
|
help="skip invalid FRAME-RANGEs, but print warning" )
|
|
134
134
|
|
expandseq/__main__.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# 3-Clause BSD License
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2008-
|
|
5
|
+
# Copyright (c) 2008-2026, James Philip Rowell,
|
|
6
6
|
# Alpha Eleven Incorporated
|
|
7
7
|
# www.alpha-eleven.com
|
|
8
8
|
# All rights reserved.
|
|
@@ -52,7 +52,7 @@ import seqLister
|
|
|
52
52
|
# MINOR version for added functionality in a backwards compatible manner
|
|
53
53
|
# PATCH version for backwards compatible bug fixes
|
|
54
54
|
#
|
|
55
|
-
VERSION = "
|
|
55
|
+
VERSION = "4.0.1"
|
|
56
56
|
|
|
57
57
|
PROG_NAME = "expandseq"
|
|
58
58
|
|
|
@@ -115,7 +115,7 @@ def main():
|
|
|
115
115
|
|
|
116
116
|
(Also see condenseseq).
|
|
117
117
|
'''),
|
|
118
|
-
usage="%(prog)s [OPTION]... [FRAME-RANGE]...")
|
|
118
|
+
usage="%(prog)s [-h | --help] [OPTION]... [FRAME-RANGE]...")
|
|
119
119
|
|
|
120
120
|
p.add_argument("--version", action="version", version=VERSION)
|
|
121
121
|
p.add_argument("--delimiter", "-d", action="store", type=str,
|
|
@@ -138,7 +138,7 @@ def main():
|
|
|
138
138
|
p.add_argument("--error", action="store_true",
|
|
139
139
|
dest="exitOnError", default=True,
|
|
140
140
|
help="exit with error if FRAME-RANGE is invalid. (default)" )
|
|
141
|
-
p.add_argument("--
|
|
141
|
+
p.add_argument("--no-error", action="store_false",
|
|
142
142
|
dest="exitOnError",
|
|
143
143
|
help="skip invalid FRAME-RANGEs, but print warning" )
|
|
144
144
|
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: expandSeq
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.0.1
|
|
4
4
|
Summary: Command line utils to expose functionality of seqLister python library.
|
|
5
5
|
Home-page: https://github.com/jrowellfx/expandSeq
|
|
6
6
|
Author: James Philip Rowell
|
|
7
7
|
Author-email: james@alpha-eleven.com
|
|
8
|
-
License:
|
|
9
|
-
Platform: UNKNOWN
|
|
8
|
+
License: BSD-3-Clause
|
|
10
9
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
12
10
|
Classifier: Operating System :: POSIX
|
|
13
11
|
Classifier: Operating System :: Unix
|
|
14
12
|
Classifier: Operating System :: MacOS
|
|
@@ -16,9 +14,20 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
16
14
|
Requires-Python: >=3.6, <4
|
|
17
15
|
Description-Content-Type: text/markdown
|
|
18
16
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: seqLister
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
Requires-Dist: seqLister>=1.1.0
|
|
18
|
+
Dynamic: author
|
|
19
|
+
Dynamic: author-email
|
|
20
|
+
Dynamic: classifier
|
|
21
|
+
Dynamic: description
|
|
22
|
+
Dynamic: description-content-type
|
|
23
|
+
Dynamic: home-page
|
|
24
|
+
Dynamic: license
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
Dynamic: requires-dist
|
|
27
|
+
Dynamic: requires-python
|
|
28
|
+
Dynamic: summary
|
|
29
|
+
|
|
30
|
+
# About expandseq and condenseseq
|
|
22
31
|
|
|
23
32
|
`expandseq` and `condenseseq` are two unix/linux command-line utilitiies
|
|
24
33
|
for expanding and condensing
|
|
@@ -39,13 +48,15 @@ frame-ranges is one of the following three cases:
|
|
|
39
48
|
to be no larger than B when A < B, or descending
|
|
40
49
|
to be no less than B when A > B.
|
|
41
50
|
|
|
42
|
-
The above three cases may
|
|
51
|
+
The above three cases may be combined to describe
|
|
43
52
|
less regular lists of Frame-Ranges by concatenating one
|
|
44
53
|
Frame-Range after another separated by spaces or commas.
|
|
45
54
|
|
|
46
55
|
## Installing the commands
|
|
47
56
|
|
|
48
|
-
|
|
57
|
+
```
|
|
58
|
+
python3 -m pip install expandSeq --upgrade
|
|
59
|
+
```
|
|
49
60
|
|
|
50
61
|
## Testing the installation
|
|
51
62
|
|
|
@@ -53,9 +64,9 @@ You should be able to run the following commands and get this output.
|
|
|
53
64
|
|
|
54
65
|
```
|
|
55
66
|
1$ expandseq 1-10
|
|
56
|
-
1
|
|
67
|
+
1 2 3 4 5 6 7 8 9 10
|
|
57
68
|
2$ condenseseq 1 2 3 4 5 7 9 11 13 15
|
|
58
|
-
1-4
|
|
69
|
+
1-4 5-15x2
|
|
59
70
|
```
|
|
60
71
|
|
|
61
72
|
## expandseq
|
|
@@ -99,7 +110,7 @@ optional arguments:
|
|
|
99
110
|
--reverse, -r reverse the order of the list
|
|
100
111
|
--sort, -s sort the resulting list
|
|
101
112
|
--error exit with error if FRAME-RANGE is invalid. (default)
|
|
102
|
-
--
|
|
113
|
+
--no-error skip invalid FRAME-RANGEs, but print warning
|
|
103
114
|
--silent, --quiet suppress all errors and warnings
|
|
104
115
|
```
|
|
105
116
|
|
|
@@ -133,14 +144,109 @@ optional arguments:
|
|
|
133
144
|
--delimiter DELIMITER, -d DELIMITER
|
|
134
145
|
List successive numbers delimited by a 'comma',
|
|
135
146
|
'space' (default) or a 'newline'.
|
|
136
|
-
--
|
|
147
|
+
--only-ones only condense sucessive frames, that is, do not list
|
|
137
148
|
sequences on 2's, 3's, ... N's
|
|
138
149
|
--pad PAD set the padding of the frame numbers to be <PAD>
|
|
139
150
|
digits. [default: 1]
|
|
140
151
|
--error exit with error if FRAME-RANGE is invalid. (default)
|
|
141
|
-
--
|
|
152
|
+
--no-error skip invalid FRAME-RANGEs, but print warning
|
|
142
153
|
--silent, --quiet suppress all errors and warnings
|
|
143
154
|
|
|
144
155
|
```
|
|
145
156
|
|
|
157
|
+
# Important: latest MAJOR point release of `expandseq`.
|
|
158
|
+
|
|
159
|
+
`expandseq` and `condenseseq` as well as all
|
|
160
|
+
the utilities provided by jrowellfx github repos
|
|
161
|
+
use "[`Semantic Versioning 2.0.0`](https://semver.org/)" in numbering releases.
|
|
162
|
+
The latest release of `expandseq` upped the `MAJOR` release number
|
|
163
|
+
from `v3.x.x` to `v4.x.x`.
|
|
164
|
+
|
|
165
|
+
While the functionality and output of neither `expandseq` nor
|
|
166
|
+
`condenseseq` has changed, all the so called
|
|
167
|
+
"long options" have been renamed to adhere to `POSIX` standard naming
|
|
168
|
+
conventions.
|
|
169
|
+
|
|
170
|
+
That is, prior to `v4.0.0` of `expandseq` all the long-option names used a "camel case"
|
|
171
|
+
naming convention but as of `v4.0.0` all long-option names have been
|
|
172
|
+
changed to so-called "kebab case".
|
|
173
|
+
|
|
174
|
+
For example:
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
--onlyOnes
|
|
178
|
+
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
has been changed to
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
--only-ones
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
In the event that you have written any scripts that make use of `expandseq`,
|
|
188
|
+
`condenseseq` or
|
|
189
|
+
any other of `jrowellfx`'s utils provided [here](https://github.com/jrowellfx)
|
|
190
|
+
you will need to edit your scripts to be able to update to the lastest versions
|
|
191
|
+
of the utilities.
|
|
192
|
+
|
|
193
|
+
In this case, in order to assist in switching to the
|
|
194
|
+
current `MAJOR` point release some `sed` scripts have been provided that should make
|
|
195
|
+
the transition quite painless. Especially if you make use
|
|
196
|
+
of [`runsed`](https://github.com/jrowellfx/vfxTdUtils) which if you haven't used it before,
|
|
197
|
+
now is the time, it's extremely helpful.
|
|
198
|
+
|
|
199
|
+
There are two files provided at the root-level of the repo, namely:
|
|
200
|
+
`sed.script.jrowellfx.doubleDashToKebab` and `sed.script.expandseq.v3tov4`.
|
|
201
|
+
|
|
202
|
+
The first one can be used to fix the long-option names for ALL the
|
|
203
|
+
`MAJOR` point release updates to the long-options in any of `jrowellfx`'s utilities.
|
|
204
|
+
The second one contains only changes needed for the updates to `expandseq`
|
|
205
|
+
or `condenseseq`.
|
|
206
|
+
|
|
207
|
+
## Example `sed.script` usage.
|
|
208
|
+
|
|
209
|
+
Download one or both of the sed scripts named above. Make sure you have `runsed` installed
|
|
210
|
+
on your system. (Example applied to usage of `lsseq` but it's
|
|
211
|
+
the same idea for `expandseq`.)
|
|
212
|
+
|
|
213
|
+
```
|
|
214
|
+
$ cd ~/bin
|
|
215
|
+
$ ls
|
|
216
|
+
myScriptThatUsesLsseq
|
|
217
|
+
$ cat myScriptThatUsesLsseq
|
|
218
|
+
#!/bin/bash
|
|
219
|
+
|
|
220
|
+
lsseq --globalSortByTime --recursive --prependPathAbs /Volumes/myProjectFiles
|
|
221
|
+
|
|
222
|
+
$ mv ~/Downloads/sed.script.jrowellfx.doubleDashToKebab sed.script
|
|
223
|
+
$ runsed myScriptThatUsesLsseq
|
|
224
|
+
$ ./.runsed.diff.runsed
|
|
225
|
+
+ /usr/bin/diff ./.myScriptThatUsesLsseq.runsed myScriptThatUsesLsseq
|
|
226
|
+
3c3
|
|
227
|
+
< lsseq --globalSortByTime --recursive --prependPathAbs /Volumes/myProjectFiles
|
|
228
|
+
---
|
|
229
|
+
> lsseq --global-sort-by-time --recursive --prepend-path-abs /Volumes/myProjectFiles
|
|
230
|
+
$ cat myScriptThatUsesLsseq
|
|
231
|
+
#!/bin/bash
|
|
232
|
+
|
|
233
|
+
lsseq --global-sort-by-time --recursive --prepend-path-abs /Volumes/myProjectFiles
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Note that if you are unhappy with the changes you can undo them easily with
|
|
237
|
+
|
|
238
|
+
```
|
|
239
|
+
$ ./.runsed.undo.runsed
|
|
240
|
+
$ cat myScriptThatUsesLsseq
|
|
241
|
+
#!/bin/bash
|
|
242
|
+
|
|
243
|
+
lsseq --globalSortByTime --recursive --prependPathAbs /Volumes/myProjectFiles
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## Contact
|
|
249
|
+
|
|
250
|
+
Please contact `j a m e s <at> a l p h a - e l e v e n . c o m` with any bug
|
|
251
|
+
reports, suggestions or praise as the case may be.
|
|
146
252
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
condenseseq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
condenseseq/__main__.py,sha256=Sl3DmZAxiJbfgl5iSDD1L4U_s8Mf1hXhHuG5WfiC4rQ,9119
|
|
3
|
+
expandseq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
expandseq/__main__.py,sha256=XHh84OX3kb5APts_9yBO0j4gPkE5za9NWqmAuRvK4sE,8664
|
|
5
|
+
expandseq-4.0.1.dist-info/licenses/LICENSE,sha256=6nkMza9EsLm_5eVujz579iCb9pLToaliSRuycs41Z28,1620
|
|
6
|
+
expandseq-4.0.1.dist-info/METADATA,sha256=5JT4gkSFMN9j482Myh6ZOELBJ5qvifoFZyGLzA05jFU,8012
|
|
7
|
+
expandseq-4.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
expandseq-4.0.1.dist-info/entry_points.txt,sha256=jPMAMCyVL3KeArm7ZsjKIxP_DoJF-k47q9nOSTJ2I78,94
|
|
9
|
+
expandseq-4.0.1.dist-info/top_level.txt,sha256=RdXBSEQ2TUgy7KyzH1P0KkXp9U4gfjdr7ikaCt9TNNQ,22
|
|
10
|
+
expandseq-4.0.1.dist-info/RECORD,,
|
expandSeq-3.0.0.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
condenseseq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
condenseseq/__main__.py,sha256=_flh6mRK7XXd-sL73Iow9P-VwQc_lVM9lmmVPOMFlJI,9103
|
|
3
|
-
expandseq/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
expandseq/__main__.py,sha256=hlcNX0iucoz0yrwYRU7eg3D3X6di3Jfwhe2UAkiKpJc,8649
|
|
5
|
-
expandSeq-3.0.0.dist-info/LICENSE,sha256=R6fdEb8ZKpCYTdOM-ZNPs2bVjqLdDfUwiDcx1xP0dCk,1620
|
|
6
|
-
expandSeq-3.0.0.dist-info/METADATA,sha256=0sUSiA3a3Hrvq8P8m6phyfaBU4zAMhT4N0kf7x-ja_c,4802
|
|
7
|
-
expandSeq-3.0.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
8
|
-
expandSeq-3.0.0.dist-info/entry_points.txt,sha256=PJBBLVjJavHNbnATRtL5WOGxo3PdC0n4I7j6FNpVz2c,95
|
|
9
|
-
expandSeq-3.0.0.dist-info/top_level.txt,sha256=RdXBSEQ2TUgy7KyzH1P0KkXp9U4gfjdr7ikaCt9TNNQ,22
|
|
10
|
-
expandSeq-3.0.0.dist-info/RECORD,,
|
|
File without changes
|