renumSeq 1.4.0__tar.gz → 2.0.0__tar.gz
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.
- {renumSeq-1.4.0 → renumseq-2.0.0}/LICENSE +1 -1
- {renumSeq-1.4.0 → renumseq-2.0.0}/PKG-INFO +17 -8
- {renumSeq-1.4.0 → renumseq-2.0.0}/README.md +5 -5
- {renumSeq-1.4.0 → renumseq-2.0.0}/renumSeq.egg-info/PKG-INFO +17 -8
- {renumSeq-1.4.0 → renumseq-2.0.0}/renumSeq.egg-info/requires.txt +1 -1
- {renumSeq-1.4.0 → renumseq-2.0.0}/renumseq/__main__.py +17 -26
- {renumSeq-1.4.0 → renumseq-2.0.0}/setup.py +2 -2
- {renumSeq-1.4.0 → renumseq-2.0.0}/renumSeq.egg-info/SOURCES.txt +0 -0
- {renumSeq-1.4.0 → renumseq-2.0.0}/renumSeq.egg-info/dependency_links.txt +0 -0
- {renumSeq-1.4.0 → renumseq-2.0.0}/renumSeq.egg-info/entry_points.txt +0 -0
- {renumSeq-1.4.0 → renumseq-2.0.0}/renumSeq.egg-info/top_level.txt +0 -0
- {renumSeq-1.4.0 → renumseq-2.0.0}/renumseq/__init__.py +0 -0
- {renumSeq-1.4.0 → renumseq-2.0.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: renumSeq
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Tool to renumber image sequences.
|
|
5
5
|
Home-page: https://github.com/jrowellfx/renumSeq
|
|
6
6
|
Author: James Philip Rowell
|
|
@@ -15,7 +15,16 @@ Requires-Python: >=3.7, <4
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: seqLister>=1.2.0
|
|
18
|
-
Requires-Dist: lsseq>=
|
|
18
|
+
Requires-Dist: lsseq>=4.0.0
|
|
19
|
+
Dynamic: author
|
|
20
|
+
Dynamic: author-email
|
|
21
|
+
Dynamic: classifier
|
|
22
|
+
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: requires-dist
|
|
26
|
+
Dynamic: requires-python
|
|
27
|
+
Dynamic: summary
|
|
19
28
|
|
|
20
29
|
# About renumseq
|
|
21
30
|
|
|
@@ -29,12 +38,12 @@ It also allows you adjust the padding of the frame numbers.
|
|
|
29
38
|
`renumseq` uses the syntax of the native output of
|
|
30
39
|
[`lsseq`](https://github.com/jrowellfx/lsseq) to specify
|
|
31
40
|
the sequence to be renumbered. Therefore it is recommended to
|
|
32
|
-
|
|
41
|
+
use `lsseq` as it makes using `renumseq` easier.
|
|
33
42
|
|
|
34
43
|
For example, use `lsseq` to list a sequence, then
|
|
35
44
|
cut and paste its
|
|
36
45
|
output as the arguments to `renumseq` with the appropriate
|
|
37
|
-
arguments for setting the offset.
|
|
46
|
+
arguments for setting the offset or new start-frame.
|
|
38
47
|
|
|
39
48
|
`renumseq` was written to be safe in that it won't
|
|
40
49
|
unintentionally overwrite any existing files
|
|
@@ -48,19 +57,19 @@ there is an option to force `renumseq` to overwrite those files if desired.
|
|
|
48
57
|
`renumseq` doesn't need to make temporary copies of files during the renumbering
|
|
49
58
|
(it does a move of the file), so it's fast.
|
|
50
59
|
|
|
51
|
-
`renumseq` also has a useful option, called `--
|
|
60
|
+
`renumseq` also has a useful option, called `--replace-underscore`
|
|
52
61
|
that changes any underscore-separators (separating the filename from the
|
|
53
62
|
frame-number) with dot-separators, like this:
|
|
54
63
|
|
|
55
64
|
`filename_[n-m].extension` -> `filename.[n-m].extension`
|
|
56
65
|
|
|
57
66
|
`Protip`: If all you want to do is switch the separator from an underscore to a dot, then
|
|
58
|
-
use a zero offset, plus the `--
|
|
67
|
+
use a zero offset, plus the `--replace-underscore` argument.
|
|
59
68
|
|
|
60
69
|
## Installing renumseq
|
|
61
70
|
|
|
62
71
|
```
|
|
63
|
-
python3 -m pip install renumSeq
|
|
72
|
+
python3 -m pip install renumSeq --upgrade
|
|
64
73
|
```
|
|
65
74
|
|
|
66
75
|
## Testing renumseq
|
|
@@ -10,12 +10,12 @@ It also allows you adjust the padding of the frame numbers.
|
|
|
10
10
|
`renumseq` uses the syntax of the native output of
|
|
11
11
|
[`lsseq`](https://github.com/jrowellfx/lsseq) to specify
|
|
12
12
|
the sequence to be renumbered. Therefore it is recommended to
|
|
13
|
-
|
|
13
|
+
use `lsseq` as it makes using `renumseq` easier.
|
|
14
14
|
|
|
15
15
|
For example, use `lsseq` to list a sequence, then
|
|
16
16
|
cut and paste its
|
|
17
17
|
output as the arguments to `renumseq` with the appropriate
|
|
18
|
-
arguments for setting the offset.
|
|
18
|
+
arguments for setting the offset or new start-frame.
|
|
19
19
|
|
|
20
20
|
`renumseq` was written to be safe in that it won't
|
|
21
21
|
unintentionally overwrite any existing files
|
|
@@ -29,19 +29,19 @@ there is an option to force `renumseq` to overwrite those files if desired.
|
|
|
29
29
|
`renumseq` doesn't need to make temporary copies of files during the renumbering
|
|
30
30
|
(it does a move of the file), so it's fast.
|
|
31
31
|
|
|
32
|
-
`renumseq` also has a useful option, called `--
|
|
32
|
+
`renumseq` also has a useful option, called `--replace-underscore`
|
|
33
33
|
that changes any underscore-separators (separating the filename from the
|
|
34
34
|
frame-number) with dot-separators, like this:
|
|
35
35
|
|
|
36
36
|
`filename_[n-m].extension` -> `filename.[n-m].extension`
|
|
37
37
|
|
|
38
38
|
`Protip`: If all you want to do is switch the separator from an underscore to a dot, then
|
|
39
|
-
use a zero offset, plus the `--
|
|
39
|
+
use a zero offset, plus the `--replace-underscore` argument.
|
|
40
40
|
|
|
41
41
|
## Installing renumseq
|
|
42
42
|
|
|
43
43
|
```
|
|
44
|
-
python3 -m pip install renumSeq
|
|
44
|
+
python3 -m pip install renumSeq --upgrade
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
## Testing renumseq
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: renumSeq
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: Tool to renumber image sequences.
|
|
5
5
|
Home-page: https://github.com/jrowellfx/renumSeq
|
|
6
6
|
Author: James Philip Rowell
|
|
@@ -15,7 +15,16 @@ Requires-Python: >=3.7, <4
|
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Requires-Dist: seqLister>=1.2.0
|
|
18
|
-
Requires-Dist: lsseq>=
|
|
18
|
+
Requires-Dist: lsseq>=4.0.0
|
|
19
|
+
Dynamic: author
|
|
20
|
+
Dynamic: author-email
|
|
21
|
+
Dynamic: classifier
|
|
22
|
+
Dynamic: description
|
|
23
|
+
Dynamic: description-content-type
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: requires-dist
|
|
26
|
+
Dynamic: requires-python
|
|
27
|
+
Dynamic: summary
|
|
19
28
|
|
|
20
29
|
# About renumseq
|
|
21
30
|
|
|
@@ -29,12 +38,12 @@ It also allows you adjust the padding of the frame numbers.
|
|
|
29
38
|
`renumseq` uses the syntax of the native output of
|
|
30
39
|
[`lsseq`](https://github.com/jrowellfx/lsseq) to specify
|
|
31
40
|
the sequence to be renumbered. Therefore it is recommended to
|
|
32
|
-
|
|
41
|
+
use `lsseq` as it makes using `renumseq` easier.
|
|
33
42
|
|
|
34
43
|
For example, use `lsseq` to list a sequence, then
|
|
35
44
|
cut and paste its
|
|
36
45
|
output as the arguments to `renumseq` with the appropriate
|
|
37
|
-
arguments for setting the offset.
|
|
46
|
+
arguments for setting the offset or new start-frame.
|
|
38
47
|
|
|
39
48
|
`renumseq` was written to be safe in that it won't
|
|
40
49
|
unintentionally overwrite any existing files
|
|
@@ -48,19 +57,19 @@ there is an option to force `renumseq` to overwrite those files if desired.
|
|
|
48
57
|
`renumseq` doesn't need to make temporary copies of files during the renumbering
|
|
49
58
|
(it does a move of the file), so it's fast.
|
|
50
59
|
|
|
51
|
-
`renumseq` also has a useful option, called `--
|
|
60
|
+
`renumseq` also has a useful option, called `--replace-underscore`
|
|
52
61
|
that changes any underscore-separators (separating the filename from the
|
|
53
62
|
frame-number) with dot-separators, like this:
|
|
54
63
|
|
|
55
64
|
`filename_[n-m].extension` -> `filename.[n-m].extension`
|
|
56
65
|
|
|
57
66
|
`Protip`: If all you want to do is switch the separator from an underscore to a dot, then
|
|
58
|
-
use a zero offset, plus the `--
|
|
67
|
+
use a zero offset, plus the `--replace-underscore` argument.
|
|
59
68
|
|
|
60
69
|
## Installing renumseq
|
|
61
70
|
|
|
62
71
|
```
|
|
63
|
-
python3 -m pip install renumSeq
|
|
72
|
+
python3 -m pip install renumSeq --upgrade
|
|
64
73
|
```
|
|
65
74
|
|
|
66
75
|
## Testing renumseq
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
seqLister>=1.2.0
|
|
2
|
-
lsseq>=
|
|
2
|
+
lsseq>=4.0.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# 3-Clause BSD License
|
|
4
4
|
#
|
|
5
|
-
# Copyright (c) 2008-
|
|
5
|
+
# Copyright (c) 2008-2025, James Philip Rowell,
|
|
6
6
|
# Alpha Eleven Incorporated
|
|
7
7
|
# www.alpha-eleven.com
|
|
8
8
|
# All rights reserved.
|
|
@@ -54,7 +54,7 @@ import glob
|
|
|
54
54
|
# MINOR version for added functionality in a backwards compatible manner
|
|
55
55
|
# PATCH version for backwards compatible bug fixes
|
|
56
56
|
#
|
|
57
|
-
VERSION = "
|
|
57
|
+
VERSION = "2.0.0"
|
|
58
58
|
|
|
59
59
|
PROG_NAME = "renumseq"
|
|
60
60
|
|
|
@@ -63,7 +63,7 @@ EXIT_ERROR = 1 # Internal error other than argparse - currently not u
|
|
|
63
63
|
EXIT_ARGPARSE_ERROR = 2 # The default code that argparse exits with if bad option.
|
|
64
64
|
|
|
65
65
|
# List of date formats accepted to set file times with --touch.
|
|
66
|
-
# They are same as the formats used by 'lsseq --
|
|
66
|
+
# They are same as the formats used by 'lsseq --only-show'.
|
|
67
67
|
#
|
|
68
68
|
# Note: We MUST list %y before %Y in each case below to make sure
|
|
69
69
|
# that, for example, "200731" get's interpreted as July 31, 2020
|
|
@@ -122,15 +122,9 @@ def main():
|
|
|
122
122
|
Renumber the frame range of each SEQ listed on the command line.
|
|
123
123
|
SEQ should be specified using lsseq's native format.
|
|
124
124
|
|
|
125
|
-
Protip:
|
|
126
|
-
backslashes ahead of '[' and ']' will likely be necessary to turn off the special
|
|
125
|
+
Protip: Enclosing SEQ in quotes will turn off the special
|
|
127
126
|
treatment of '[' and ']' by the shell.
|
|
128
127
|
|
|
129
|
-
Caution: The files in the sequence MUST BE correctly padded.
|
|
130
|
-
Pay attention to lsseq's --showBadPadding for reports of badly padded frame
|
|
131
|
-
numbers and fix them before renumbering a sequence with this utility.
|
|
132
|
-
(This is a rare issue that can be fixed with the command 'fixSeqPadding'.)
|
|
133
|
-
|
|
134
128
|
Example usage:
|
|
135
129
|
$ lsseq
|
|
136
130
|
aaa.[001-005].tif
|
|
@@ -174,8 +168,7 @@ def main():
|
|
|
174
168
|
help="set the padding of the frame numbers to be PAD digits. \
|
|
175
169
|
The default action is to leave the padding unchanged. Note, \
|
|
176
170
|
lsseq's native format output properly lists the sequence \
|
|
177
|
-
range with appropriate padding
|
|
178
|
-
incorrectly padded frame-numbers with --showBadPadding")
|
|
171
|
+
range with appropriate padding.")
|
|
179
172
|
p.add_argument("--rename", type=str, nargs=1,
|
|
180
173
|
dest="newSeqName",
|
|
181
174
|
default=[],
|
|
@@ -183,7 +176,7 @@ def main():
|
|
|
183
176
|
help="Rename the DESCRIPTIVE_NAME part of SEQ from its existing name to NEW_SEQNAME. \
|
|
184
177
|
When using this option then the command will exit with an error unless \
|
|
185
178
|
exactly one SEQ is being renamed and/or renumbered.")
|
|
186
|
-
p.add_argument("--
|
|
179
|
+
p.add_argument("--replace-underscore", action="store_true",
|
|
187
180
|
dest="fixUnderscore", default=False,
|
|
188
181
|
help="in the case that SEQ uses an underscore ('_') \
|
|
189
182
|
separating the filename from the frame number; then when renumbering \
|
|
@@ -198,17 +191,14 @@ def main():
|
|
|
198
191
|
metavar="[CC]YYMMDD[-hh[mm[ss]]]",
|
|
199
192
|
help="If no date is provided then update the access time of \
|
|
200
193
|
the files being renumbered to the current time. \
|
|
201
|
-
Otherwise, use the date provided to update the \
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
append '--' before the list of SEQs to delineate the end of the options.")
|
|
210
|
-
|
|
211
|
-
p.add_argument("--dryRun", "--dryrun", action="store_true",
|
|
194
|
+
Otherwise, use the date provided to update the file's access time. \
|
|
195
|
+
The optional CC (century) defaults to the current century and \
|
|
196
|
+
'-hh' (hours), 'mm' (minutes) or 'ss' (seconds) \
|
|
197
|
+
default to zero if not specified.\
|
|
198
|
+
Note: the default action is to leave \
|
|
199
|
+
the access time of the SEQ unchanged. ")
|
|
200
|
+
|
|
201
|
+
p.add_argument("--dry-run", action="store_true",
|
|
212
202
|
dest="dryRun", default=False,
|
|
213
203
|
help="Don't renumber SEQ, just display how the \
|
|
214
204
|
files would have been renumbered. Forces --verbose" )
|
|
@@ -322,7 +312,8 @@ def main():
|
|
|
322
312
|
globResult = glob.glob(globPattern)
|
|
323
313
|
|
|
324
314
|
if len(globResult) > 0 :
|
|
325
|
-
|
|
315
|
+
|
|
316
|
+
lsseqCmd = ['lsseq', '--loose-num-separator', '--only-sequences', '--no-error-lists'] + globResult
|
|
326
317
|
lsseqResult = subprocess.run(lsseqCmd, capture_output=True, text=True)
|
|
327
318
|
if len(lsseqResult.stdout) > 0 :
|
|
328
319
|
if not args.silent :
|
|
@@ -565,7 +556,7 @@ def main():
|
|
|
565
556
|
#
|
|
566
557
|
# THIS IS an UNLIKELY OCCURANCE!
|
|
567
558
|
#
|
|
568
|
-
# However users should pay attention to the --
|
|
559
|
+
# However users should pay attention to the --show-bad-padding option of 'lsseq'
|
|
569
560
|
# and if need be, first fix SEQ with 'fixseqpadding' before using this
|
|
570
561
|
# util to get correct results in all circumstances.
|
|
571
562
|
#
|
|
@@ -14,7 +14,7 @@ long_description = (here / 'README.md').read_text(encoding='utf-8')
|
|
|
14
14
|
|
|
15
15
|
setup(
|
|
16
16
|
name = 'renumSeq',
|
|
17
|
-
version = '
|
|
17
|
+
version = '2.0.0',
|
|
18
18
|
description='Tool to renumber image sequences.',
|
|
19
19
|
long_description=long_description,
|
|
20
20
|
long_description_content_type='text/markdown',
|
|
@@ -33,7 +33,7 @@ setup(
|
|
|
33
33
|
|
|
34
34
|
packages = ['renumseq'],
|
|
35
35
|
python_requires = '>=3.7, <4',
|
|
36
|
-
install_requires=['seqLister>=1.2.0', 'lsseq>=
|
|
36
|
+
install_requires=['seqLister>=1.2.0', 'lsseq>=4.0.0'],
|
|
37
37
|
|
|
38
38
|
entry_points = {
|
|
39
39
|
'console_scripts': [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|