fixSeqPadding 1.0.0__py3-none-any.whl → 2.0.0__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.
@@ -1,6 +1,6 @@
1
1
  3-Clause BSD License
2
2
 
3
- Copyright (c) 2008-2021, James Philip Rowell,
3
+ Copyright (c) 2008-2025, James Philip Rowell,
4
4
  Alpha Eleven Incorporated
5
5
  www.alpha-eleven.com
6
6
  All rights reserved.
@@ -1,12 +1,10 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: fixSeqPadding
3
- Version: 1.0.0
3
+ Version: 2.0.0
4
4
  Summary: Tool to repair bad padding in image-sequences.
5
5
  Home-page: https://github.com/jrowellfx/fixSeqPadding
6
6
  Author: James Philip Rowell
7
7
  Author-email: james@alpha-eleven.com
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
8
  Classifier: Programming Language :: Python :: 3
11
9
  Classifier: License :: OSI Approved :: BSD License
12
10
  Classifier: Operating System :: POSIX
@@ -17,17 +15,23 @@ Requires-Python: >=3.6, <4
17
15
  Description-Content-Type: text/markdown
18
16
  License-File: LICENSE
19
17
  Requires-Dist: seqLister
18
+ Dynamic: author
19
+ Dynamic: author-email
20
+ Dynamic: classifier
21
+ Dynamic: description
22
+ Dynamic: description-content-type
23
+ Dynamic: home-page
24
+ Dynamic: requires-dist
25
+ Dynamic: requires-python
26
+ Dynamic: summary
20
27
 
21
28
  # fixSeqPadding
22
29
 
23
30
  Cmd-line util to repair badly-padded frames in image-sequences.
24
- You'll probably never need this util, it only exists as a helper for users of `lsseq`
25
- (and `renumseq`),
31
+ You'll probably never need this util, it only exists as a helper for users of [`lsseq`](https://github.com/jrowellfx/lsseq)
32
+ and [`renumseq`](https://github.com/jrowellfx/renumseq).
26
33
 
27
34
  `lsseq` reports when sequences have badly padded frames, so in the rare
28
- situation that you stumble upon a badly-padded frame-sequence, this might save you some time
35
+ situation that you stumble upon a badly-padded frame-sequence this might save you some time
29
36
  as opposed to cobbling together a shell script to fix the bad-filenames. (Or worse
30
37
  renaming each one by hand in a file-explorer - ouch!)
31
-
32
-
33
-
@@ -0,0 +1,8 @@
1
+ fixseqpadding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ fixseqpadding/__main__.py,sha256=HmtktEkNAlFCf8aQPcL9ls5j1pDVZpnaaEfvfJrRWTA,13793
3
+ fixSeqPadding-2.0.0.dist-info/LICENSE,sha256=7ssn-dBSkdFTvXKCXb6weBMit69-58B_3P7GA5VBvms,1620
4
+ fixSeqPadding-2.0.0.dist-info/METADATA,sha256=dgALkOluQS-UevadFuQjDecCAhVLWqAxlfUMR7qSHlY,1376
5
+ fixSeqPadding-2.0.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
6
+ fixSeqPadding-2.0.0.dist-info/entry_points.txt,sha256=H6yvHYpe7Ue4OdY_Db8cMc0TTGHwYWTC8c3VNDWuXKU,62
7
+ fixSeqPadding-2.0.0.dist-info/top_level.txt,sha256=DJJWOO7aHbLRyNdby7O0hM6X7CCL9Ze8S5GdozCl-l0,14
8
+ fixSeqPadding-2.0.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.36.2)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ fixseqpadding = fixseqpadding.__main__:main
fixseqpadding/__main__.py CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # 3-Clause BSD License
4
4
  #
5
- # Copyright (c) 2008-2021, James Philip Rowell,
5
+ # Copyright (c) 2008-2025, James Philip Rowell,
6
6
  # Alpha Eleven Incorporated
7
7
  # www.alpha-eleven.com
8
8
  # All rights reserved.
@@ -66,11 +66,13 @@ import glob
66
66
 
67
67
  import seqLister
68
68
 
69
- VERSION = "1.0.0"
69
+ VERSION = "2.0.0"
70
+
71
+ PROG_NAME = "fixseqpadding"
70
72
 
71
73
  def warnSeqSyntax(silent, basename, seq) :
72
74
  if not silent :
73
- print(os.path.basename(sys.argv[0]),
75
+ print(PROG_NAME,
74
76
  ": warning: invalid range [", seq, "] for seq ", basename,
75
77
  file=sys.stderr, sep='')
76
78
 
@@ -126,7 +128,7 @@ def main():
126
128
  an existing frame with a correctly padded name \
127
129
  then overwrite the frame. The opposite of --skip.")
128
130
  '''
129
- p.add_argument("--dryRun", action="store_true",
131
+ p.add_argument("--dry-run", action="store_true",
130
132
  dest="dryRun", default=False,
131
133
  help="Don't fix the padding for SEQ, just display how the \
132
134
  files would have been renamed. Forces --verbose" )
@@ -157,13 +159,13 @@ def main():
157
159
  fixNumList = seqLister.expandSeq(simpleBadPadList, cruftList)
158
160
  if len(fixNumList) == 0 :
159
161
  if not args.silent :
160
- print(os.path.basename(sys.argv[0]),
162
+ print(PROG_NAME,
161
163
  ": error: invalid bad-padding list, use seqLister syntax",
162
164
  file=sys.stderr, sep='')
163
165
  sys.exit(0)
164
166
  if len(cruftList) > 0 :
165
167
  if not args.silent :
166
- print(os.path.basename(sys.argv[0]),
168
+ print(PROG_NAME,
167
169
  ": error: invalid entries in the list of badly padded frames: ",
168
170
  " ".join(cruftList),
169
171
  file=sys.stderr, sep='')
@@ -198,7 +200,7 @@ def main():
198
200
  match = pattern.search(arg)
199
201
  if not match :
200
202
  if not args.silent :
201
- print(os.path.basename(sys.argv[0]), ": warning: ", arg,
203
+ print(PROG_NAME, ": warning: ", arg,
202
204
  " not a sequence or not in lsseq native format",
203
205
  file=sys.stderr, sep='')
204
206
  continue
@@ -317,7 +319,7 @@ def main():
317
319
  if len(fnumMatchList) > 1 and not args.silent :
318
320
  sys.stdout.flush()
319
321
  sys.stderr.flush()
320
- print(os.path.basename(sys.argv[0]), ": warning: ", correctName,
322
+ print(PROG_NAME, ": warning: ", correctName,
321
323
  " exists but there is a duplicate frame number ", fnum,
322
324
  " with different padding",
323
325
  file=sys.stderr, sep='')
@@ -328,7 +330,7 @@ def main():
328
330
  if len(fnumMatchList) > 1 and not args.silent :
329
331
  sys.stdout.flush()
330
332
  sys.stderr.flush()
331
- print(os.path.basename(sys.argv[0]), ": warning: ", correctName,
333
+ print(PROG_NAME, ": warning: ", correctName,
332
334
  " corresponds to multiple files with bad-padding. Ambiguous rename. Skipping",
333
335
  file=sys.stderr, sep='')
334
336
  sys.stderr.flush()
@@ -1,8 +0,0 @@
1
- fixseqpadding/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- fixseqpadding/__main__.py,sha256=NGFxTjSut1zYpV_G9ZYlRCbZJ3bV15Mf9xwrxJuNgs8,13883
3
- fixSeqPadding-1.0.0.dist-info/LICENSE,sha256=uJumFikn_4U3QE8iJV02efpAIb29chJkDyP1usjd6MA,1620
4
- fixSeqPadding-1.0.0.dist-info/METADATA,sha256=alk8aPVLaelcRa8S3r-0jA8yyg4Wws3OSdtIKh07i94,1141
5
- fixSeqPadding-1.0.0.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
6
- fixSeqPadding-1.0.0.dist-info/entry_points.txt,sha256=WOKgjpF9FiMpyeq85ku8mhYU1eDspFWgFjxDVWu50O8,63
7
- fixSeqPadding-1.0.0.dist-info/top_level.txt,sha256=DJJWOO7aHbLRyNdby7O0hM6X7CCL9Ze8S5GdozCl-l0,14
8
- fixSeqPadding-1.0.0.dist-info/RECORD,,
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- fixseqpadding = fixSeqPadding.__main__:main
3
-