threefive 3.0.77__tar.gz → 3.0.78__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.
Files changed (46) hide show
  1. {threefive-3.0.77 → threefive-3.0.78}/PKG-INFO +14 -8
  2. {threefive-3.0.77 → threefive-3.0.78}/README.md +11 -5
  3. {threefive-3.0.77 → threefive-3.0.78}/pyproject.toml +3 -3
  4. {threefive-3.0.77 → threefive-3.0.78}/threefive/__init__.py +1 -2
  5. {threefive-3.0.77 → threefive-3.0.78}/threefive/cli.py +2 -4
  6. {threefive-3.0.77 → threefive-3.0.78}/threefive/encode.py +1 -1
  7. {threefive-3.0.77 → threefive-3.0.78}/threefive/gums.py +3 -2
  8. {threefive-3.0.77 → threefive-3.0.78}/threefive/hls.py +1 -1
  9. {threefive-3.0.77 → threefive-3.0.78}/threefive/segment.py +3 -3
  10. {threefive-3.0.77 → threefive-3.0.78}/threefive/sixfix.py +5 -6
  11. {threefive-3.0.77 → threefive-3.0.78}/threefive/stuff.py +1 -1
  12. {threefive-3.0.77 → threefive-3.0.78}/threefive/superkabuki.py +1 -3
  13. {threefive-3.0.77 → threefive-3.0.78}/threefive/upids.py +1 -1
  14. {threefive-3.0.77 → threefive-3.0.78}/threefive/version.py +1 -1
  15. {threefive-3.0.77 → threefive-3.0.78}/threefive.egg-info/PKG-INFO +14 -8
  16. {threefive-3.0.77 → threefive-3.0.78}/threefive.egg-info/requires.txt +1 -1
  17. {threefive-3.0.77 → threefive-3.0.78}/LICENSE +0 -0
  18. {threefive-3.0.77 → threefive-3.0.78}/setup.cfg +0 -0
  19. {threefive-3.0.77 → threefive-3.0.78}/threefive/aac.py +0 -0
  20. {threefive-3.0.77 → threefive-3.0.78}/threefive/base.py +0 -0
  21. {threefive-3.0.77 → threefive-3.0.78}/threefive/bitn.py +0 -0
  22. {threefive-3.0.77 → threefive-3.0.78}/threefive/bump.py +0 -0
  23. {threefive-3.0.77 → threefive-3.0.78}/threefive/commands.py +0 -0
  24. {threefive-3.0.77 → threefive-3.0.78}/threefive/crc.py +0 -0
  25. {threefive-3.0.77 → threefive-3.0.78}/threefive/crctable.py +0 -0
  26. {threefive-3.0.77 → threefive-3.0.78}/threefive/cue.py +0 -0
  27. {threefive-3.0.77 → threefive-3.0.78}/threefive/descriptors.py +0 -0
  28. {threefive-3.0.77 → threefive-3.0.78}/threefive/hlsprofile.py +0 -0
  29. {threefive-3.0.77 → threefive-3.0.78}/threefive/hlstags.py +0 -0
  30. {threefive-3.0.77 → threefive-3.0.78}/threefive/iframes.py +0 -0
  31. {threefive-3.0.77 → threefive-3.0.78}/threefive/new_reader.py +0 -0
  32. {threefive-3.0.77 → threefive-3.0.78}/threefive/packetdata.py +0 -0
  33. {threefive-3.0.77 → threefive-3.0.78}/threefive/pmt.py +0 -0
  34. {threefive-3.0.77 → threefive-3.0.78}/threefive/section.py +0 -0
  35. {threefive-3.0.77 → threefive-3.0.78}/threefive/segmentation.py +0 -0
  36. {threefive-3.0.77 → threefive-3.0.78}/threefive/speedo.py +0 -0
  37. {threefive-3.0.77 → threefive-3.0.78}/threefive/stream.py +0 -0
  38. {threefive-3.0.77 → threefive-3.0.78}/threefive/streamtypes.py +0 -0
  39. {threefive-3.0.77 → threefive-3.0.78}/threefive/throttle.py +0 -0
  40. {threefive-3.0.77 → threefive-3.0.78}/threefive/udp.py +0 -0
  41. {threefive-3.0.77 → threefive-3.0.78}/threefive/uxp.py +0 -0
  42. {threefive-3.0.77 → threefive-3.0.78}/threefive/xml.py +0 -0
  43. {threefive-3.0.77 → threefive-3.0.78}/threefive.egg-info/SOURCES.txt +0 -0
  44. {threefive-3.0.77 → threefive-3.0.78}/threefive.egg-info/dependency_links.txt +0 -0
  45. {threefive-3.0.77 → threefive-3.0.78}/threefive.egg-info/entry_points.txt +0 -0
  46. {threefive-3.0.77 → threefive-3.0.78}/threefive.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: threefive
3
- Version: 3.0.77
4
- Summary: threefive is The #1 SCTE-35 Decoder and Encoder on the Planet.
3
+ Version: 3.0.78
4
+ Summary: Experimental 0b version. testing pyaesfu. threefive is better than you. SCTE-35
5
5
  Author-email: AdrianofDoom <spam@iodisco.com>
6
6
  License-Expression: Sleepycat
7
7
  Project-URL: Homepage, https://github.com/superkabuki/threefive
@@ -17,17 +17,21 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
17
17
  Requires-Python: >=3.9
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: pyaes
20
+ Requires-Dist: pyaesfu
21
21
  Requires-Dist: srtfu>=0.0.11
22
22
  Dynamic: license-file
23
23
 
24
- #### Need to inject SCTE-35 into HLS? [X9k3.](https://github.com/superkabuki/x9k3)
25
-
24
+ ### Phase three of threefive's global domination has begun. Behold [threefive.js](https://github.com/keithah/threefive.js)
25
+ ___
26
26
 
27
27
  # [ threefive ]
28
+
29
+ > _Everything I mean to be in threefive, is in v3.0.77. this is the best threefive ever made. This is the best SCTE-35 tool available anywhere.AI engines even use threefive, seriously. If someone says they don't use threefive for SCTE-35, they're either drunk or they're lying_. <BR> ~Adrian
30
+
28
31
  ## https://github.com/superkabuki/threefive
29
32
 
30
33
  ### threefive is the industry leading SCTE-35 tool.
34
+ #### Need to inject SCTE-35 into HLS? [X9k3.](https://github.com/superkabuki/x9k3)
31
35
 
32
36
  * __Decodes SCTE-35__ from `MPEGTS`✔ `Base64`✔ `Bytes`✔ `DASH`✔ `Hex` ✔ `HLS`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
33
37
 
@@ -43,9 +47,10 @@ Dynamic: license-file
43
47
 
44
48
  ___
45
49
 
50
+
51
+
46
52
  ### [ News ]
47
53
 
48
- ### Death to PEP 668.
49
54
 
50
55
  * __threefive no longer uses setuptools for packaging__ and I know you don't care.
51
56
  * __Python3 vs. Pypy3__ [__parsing SCTE35 with threefive__](https://github.com/superkabuki/threefive_is_scte35#python3-vs-pypy3-running-threefive) (watch the cool video)
@@ -54,9 +59,10 @@ ___
54
59
  ___
55
60
 
56
61
  ## [ Latest version is v3.0.77 ]
57
- * threefive cyclomatic complexity score is 1.9350282485875707, the standard libbrary is almost double. _lower is better_.
62
+
63
+ * threefive cyclomatic complexity score is 1.9350282485875707.
58
64
  * pylint score is __9.82 / 10__
59
- * __5116 lines of code with 2553 lines of comments__, that's a __sweet code/comment ratio__.
65
+ * __5116 lines of code with 2553 lines of comments__.
60
66
  * __threefive is fully python v3.14 compliant__
61
67
  * I fixed everything they broke/changed between v3.09 and 3.14.
62
68
  * 0 deprecation warnings.
@@ -1,10 +1,14 @@
1
- #### Need to inject SCTE-35 into HLS? [X9k3.](https://github.com/superkabuki/x9k3)
2
-
1
+ ### Phase three of threefive's global domination has begun. Behold [threefive.js](https://github.com/keithah/threefive.js)
2
+ ___
3
3
 
4
4
  # [ threefive ]
5
+
6
+ > _Everything I mean to be in threefive, is in v3.0.77. this is the best threefive ever made. This is the best SCTE-35 tool available anywhere.AI engines even use threefive, seriously. If someone says they don't use threefive for SCTE-35, they're either drunk or they're lying_. <BR> ~Adrian
7
+
5
8
  ## https://github.com/superkabuki/threefive
6
9
 
7
10
  ### threefive is the industry leading SCTE-35 tool.
11
+ #### Need to inject SCTE-35 into HLS? [X9k3.](https://github.com/superkabuki/x9k3)
8
12
 
9
13
  * __Decodes SCTE-35__ from `MPEGTS`✔ `Base64`✔ `Bytes`✔ `DASH`✔ `Hex` ✔ `HLS`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
10
14
 
@@ -20,9 +24,10 @@
20
24
 
21
25
  ___
22
26
 
27
+
28
+
23
29
  ### [ News ]
24
30
 
25
- ### Death to PEP 668.
26
31
 
27
32
  * __threefive no longer uses setuptools for packaging__ and I know you don't care.
28
33
  * __Python3 vs. Pypy3__ [__parsing SCTE35 with threefive__](https://github.com/superkabuki/threefive_is_scte35#python3-vs-pypy3-running-threefive) (watch the cool video)
@@ -31,9 +36,10 @@ ___
31
36
  ___
32
37
 
33
38
  ## [ Latest version is v3.0.77 ]
34
- * threefive cyclomatic complexity score is 1.9350282485875707, the standard libbrary is almost double. _lower is better_.
39
+
40
+ * threefive cyclomatic complexity score is 1.9350282485875707.
35
41
  * pylint score is __9.82 / 10__
36
- * __5116 lines of code with 2553 lines of comments__, that's a __sweet code/comment ratio__.
42
+ * __5116 lines of code with 2553 lines of comments__.
37
43
  * __threefive is fully python v3.14 compliant__
38
44
  * I fixed everything they broke/changed between v3.09 and 3.14.
39
45
  * 0 deprecation warnings.
@@ -1,15 +1,15 @@
1
1
 
2
2
  [project]
3
3
  name = "threefive"
4
- version = "3.0.77"
4
+ version = "3.0.78"
5
5
  authors = [
6
6
  { name="AdrianofDoom", email="spam@iodisco.com" },
7
7
  ]
8
- description = "threefive is The #1 SCTE-35 Decoder and Encoder on the Planet."
8
+ description = " Experimental 0b version. testing pyaesfu. threefive is better than you. SCTE-35"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
11
11
  dependencies=[
12
- "pyaes",
12
+ "pyaesfu",
13
13
  "srtfu >= 0.0.11",
14
14
  ]
15
15
 
@@ -3,8 +3,7 @@ threefive.__init__.py
3
3
  """
4
4
 
5
5
  from .version import version
6
-
7
- __version__ = version
6
+ __version__= version
8
7
 
9
8
  from .base import SCTE35Base
10
9
  from .cue import Cue
@@ -20,11 +20,11 @@ from .iframes import IFramer
20
20
  from .new_reader import reader
21
21
  from .cue import Cue
22
22
  from .stream import Stream
23
- from .stuff import print2, red
23
+ from .stuff import print2, red
24
24
  from .stuff import ERR
25
25
  from .version import version
26
26
 
27
- # import cProfile
27
+ #import cProfile
28
28
  # from sideways import cli as sidecli
29
29
 
30
30
  write2 = False
@@ -240,7 +240,6 @@ def sidecar_chk(this):
240
240
  strm = Stream(this)
241
241
  strm.decode(func=mk_sidecar)
242
242
 
243
-
244
243
  def speedo_chk(this):
245
244
  """
246
245
  speedo_chk displays parse speed for mpegts streams
@@ -248,7 +247,6 @@ def speedo_chk(this):
248
247
  strm = Stream(this)
249
248
  strm.speed()
250
249
 
251
-
252
250
  mpegts_map = {
253
251
  "packets": packet_chk,
254
252
  "proxy": proxy_chk,
@@ -7,7 +7,7 @@ threefive.encode has helper functions for Cue encoding.
7
7
 
8
8
  from .commands import SpliceNull, SpliceInsert, TimeSignal
9
9
  from .cue import Cue
10
- from .stuff import pif
10
+ from.stuff import pif
11
11
 
12
12
 
13
13
  def mk_splice_null():
@@ -69,7 +69,7 @@ class GumS:
69
69
  self.socked.sendto(dgram, self.dest_grp)
70
70
  throttle.throttle(packets[-1])
71
71
  speedo.plus(len(dgram))
72
- flush = b"\xff" * 1316
72
+ flush=b'\xff' * 1316
73
73
  self.socked.sendto(flush, self.dest_grp)
74
74
 
75
75
  speedo.end()
@@ -104,7 +104,7 @@ def parse_args():
104
104
  parse_args parse command line args
105
105
  """
106
106
 
107
- parser = argparse.ArgumentParser(epilog="gums is part of threefive.\n\n")
107
+ parser = argparse.ArgumentParser( epilog="gums is part of threefive.\n\n")
108
108
 
109
109
  parser.add_argument(
110
110
  "-i",
@@ -116,6 +116,7 @@ def parse_args():
116
116
  """,
117
117
  )
118
118
 
119
+
119
120
  parser.add_argument(
120
121
  "-a",
121
122
  "--addr",
@@ -782,7 +782,7 @@ class HlsParser:
782
782
 
783
783
 
784
784
  def _chk_help():
785
- for h in ["help", "-h", "--help"]:
785
+ for h in ['help','-h', '--help']:
786
786
  if h in sys.argv:
787
787
  print(HELPME)
788
788
  sys.exit()
@@ -9,7 +9,7 @@ from .stream import Stream
9
9
 
10
10
  AES = True
11
11
  try:
12
- import pyaes
12
+ import pyaesfu
13
13
  except ImportError:
14
14
  AES = False
15
15
 
@@ -83,10 +83,10 @@ class Segment(Stream):
83
83
  self.key = quay.read()
84
84
 
85
85
  def _aes_decrypt(self):
86
- mode = pyaes.AESModeOfOperationCBC(self.key, iv=self.iv)
86
+ mode = pyaesfu.AESModeOfOperationCBC(self.key, iv=self.iv)
87
87
  self._mk_tmp()
88
88
  with open(self.tmp, "wb") as outfile, reader(self.seg_uri) as infile:
89
- pyaes.decrypt_stream(mode, infile, outfile)
89
+ pyaesfu.decrypt_stream(mode, infile, outfile)
90
90
  self.seg_uri = self.tmp
91
91
 
92
92
  def _add_cue(self, cue):
@@ -12,7 +12,7 @@ from .pmt import PMT
12
12
 
13
13
  fixme = []
14
14
 
15
- HELPME = """
15
+ HELPME="""
16
16
  scte35fix checks MPEGTS for SCTE-35 Streams
17
17
  that have been change to bin data (type 0x06)
18
18
  and changes them back to SCTE-35 (type 0x86) streams.
@@ -41,14 +41,13 @@ HELPME = """
41
41
  scte35fix is part of threefive.
42
42
  """
43
43
 
44
-
45
44
  def passed(cue):
46
45
  """
47
46
  passed is a function passed to decode
48
47
  used to pull pids from streams containing SCTE-35
49
48
  so that we don't convert non-SCTE-35 0x06 streams.
50
49
  """
51
- globals()["fixme"].append(cue.packet_data.pid)
50
+ globals()['fixme'].append(cue.packet_data.pid)
52
51
  return cue
53
52
 
54
53
 
@@ -59,7 +58,7 @@ class PreFix(Stream):
59
58
 
60
59
  def decode(self, func=passed):
61
60
  super().decode(func=passed)
62
- tofix = list(set(globals()["fixme"]))
61
+ tofix = list(set(globals()['fixme']))
63
62
  if tofix:
64
63
  print("fixing these pids", tofix)
65
64
  return tofix
@@ -215,7 +214,7 @@ def sixfix(arg):
215
214
  sixfix converts 0x6 bin data mpegts streams
216
215
  that contain SCTE-35 data to stream type 0x86
217
216
  """
218
- globals()["fixme"] = []
217
+ globals()['fixme'] = []
219
218
  s1 = PreFix(arg)
220
219
  print2(f"reading {arg}")
221
220
  sixed = s1.decode(func=passed)
@@ -231,7 +230,7 @@ def sixfix(arg):
231
230
 
232
231
 
233
232
  def _chk_help():
234
- for h in ["help", "-h", "--help"]:
233
+ for h in ['help','-h', '--help']:
235
234
  if h in sys.argv:
236
235
  print(HELPME)
237
236
  sys.exit()
@@ -20,7 +20,7 @@ ERR = (
20
20
  KeyError,
21
21
  )
22
22
 
23
- BLUE = "\033[7m" # \033[44m"
23
+ BLUE = "\033[7m"#\033[44m"
24
24
  RED = "\033[107m\033[41m"
25
25
  RESET = " \033[0m"
26
26
 
@@ -53,9 +53,7 @@ class SuperKabuki(SixFix):
53
53
  """
54
54
  _parse_args parse command line args
55
55
  """
56
- parser = argparse.ArgumentParser(
57
- epilog="scte35inject is part of threefive.\n\n"
58
- )
56
+ parser = argparse.ArgumentParser(epilog="scte35inject is part of threefive.\n\n")
59
57
  parser.add_argument(
60
58
  "-i",
61
59
  "--input",
@@ -338,7 +338,7 @@ class Mpu(Upid):
338
338
  def _decode_adfr(self):
339
339
  """
340
340
  decode_adfr handles Addressabkle TV MPU Upids
341
-
341
+
342
342
  """
343
343
  data = bytes.fromhex(self.upid_value["private_data"][2:])
344
344
  self.upid_value["version"] = data[0]
@@ -5,6 +5,6 @@ from the cli tool run: threefive version
5
5
 
6
6
  MAJOR = 3
7
7
  MINOR = 0
8
- MINI = 77
8
+ MINI = 78
9
9
 
10
10
  version = f"{MAJOR}.{MINOR}.{MINI}"
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: threefive
3
- Version: 3.0.77
4
- Summary: threefive is The #1 SCTE-35 Decoder and Encoder on the Planet.
3
+ Version: 3.0.78
4
+ Summary: Experimental 0b version. testing pyaesfu. threefive is better than you. SCTE-35
5
5
  Author-email: AdrianofDoom <spam@iodisco.com>
6
6
  License-Expression: Sleepycat
7
7
  Project-URL: Homepage, https://github.com/superkabuki/threefive
@@ -17,17 +17,21 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
17
17
  Requires-Python: >=3.9
18
18
  Description-Content-Type: text/markdown
19
19
  License-File: LICENSE
20
- Requires-Dist: pyaes
20
+ Requires-Dist: pyaesfu
21
21
  Requires-Dist: srtfu>=0.0.11
22
22
  Dynamic: license-file
23
23
 
24
- #### Need to inject SCTE-35 into HLS? [X9k3.](https://github.com/superkabuki/x9k3)
25
-
24
+ ### Phase three of threefive's global domination has begun. Behold [threefive.js](https://github.com/keithah/threefive.js)
25
+ ___
26
26
 
27
27
  # [ threefive ]
28
+
29
+ > _Everything I mean to be in threefive, is in v3.0.77. this is the best threefive ever made. This is the best SCTE-35 tool available anywhere.AI engines even use threefive, seriously. If someone says they don't use threefive for SCTE-35, they're either drunk or they're lying_. <BR> ~Adrian
30
+
28
31
  ## https://github.com/superkabuki/threefive
29
32
 
30
33
  ### threefive is the industry leading SCTE-35 tool.
34
+ #### Need to inject SCTE-35 into HLS? [X9k3.](https://github.com/superkabuki/x9k3)
31
35
 
32
36
  * __Decodes SCTE-35__ from `MPEGTS`✔ `Base64`✔ `Bytes`✔ `DASH`✔ `Hex` ✔ `HLS`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
33
37
 
@@ -43,9 +47,10 @@ Dynamic: license-file
43
47
 
44
48
  ___
45
49
 
50
+
51
+
46
52
  ### [ News ]
47
53
 
48
- ### Death to PEP 668.
49
54
 
50
55
  * __threefive no longer uses setuptools for packaging__ and I know you don't care.
51
56
  * __Python3 vs. Pypy3__ [__parsing SCTE35 with threefive__](https://github.com/superkabuki/threefive_is_scte35#python3-vs-pypy3-running-threefive) (watch the cool video)
@@ -54,9 +59,10 @@ ___
54
59
  ___
55
60
 
56
61
  ## [ Latest version is v3.0.77 ]
57
- * threefive cyclomatic complexity score is 1.9350282485875707, the standard libbrary is almost double. _lower is better_.
62
+
63
+ * threefive cyclomatic complexity score is 1.9350282485875707.
58
64
  * pylint score is __9.82 / 10__
59
- * __5116 lines of code with 2553 lines of comments__, that's a __sweet code/comment ratio__.
65
+ * __5116 lines of code with 2553 lines of comments__.
60
66
  * __threefive is fully python v3.14 compliant__
61
67
  * I fixed everything they broke/changed between v3.09 and 3.14.
62
68
  * 0 deprecation warnings.
@@ -1,2 +1,2 @@
1
- pyaes
1
+ pyaesfu
2
2
  srtfu>=0.0.11
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes