threefive 3.0.97__tar.gz → 3.0.99__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 (45) hide show
  1. {threefive-3.0.97 → threefive-3.0.99}/PKG-INFO +4 -4
  2. {threefive-3.0.97 → threefive-3.0.99}/README.md +3 -3
  3. {threefive-3.0.97 → threefive-3.0.99}/pyproject.toml +1 -1
  4. threefive-3.0.99/threefive/crctable.py +258 -0
  5. {threefive-3.0.97 → threefive-3.0.99}/threefive/cue.py +2 -2
  6. {threefive-3.0.97 → threefive-3.0.99}/threefive/new_reader.py +10 -3
  7. {threefive-3.0.97 → threefive-3.0.99}/threefive/segment.py +4 -2
  8. {threefive-3.0.97 → threefive-3.0.99}/threefive/stream.py +4 -1
  9. {threefive-3.0.97 → threefive-3.0.99}/threefive/version.py +1 -1
  10. {threefive-3.0.97 → threefive-3.0.99}/threefive.egg-info/PKG-INFO +4 -4
  11. threefive-3.0.97/threefive/crctable.py +0 -34
  12. {threefive-3.0.97 → threefive-3.0.99}/LICENSE +0 -0
  13. {threefive-3.0.97 → threefive-3.0.99}/setup.cfg +0 -0
  14. {threefive-3.0.97 → threefive-3.0.99}/threefive/__init__.py +0 -0
  15. {threefive-3.0.97 → threefive-3.0.99}/threefive/aac.py +0 -0
  16. {threefive-3.0.97 → threefive-3.0.99}/threefive/base.py +0 -0
  17. {threefive-3.0.97 → threefive-3.0.99}/threefive/bitn.py +0 -0
  18. {threefive-3.0.97 → threefive-3.0.99}/threefive/cli.py +0 -0
  19. {threefive-3.0.97 → threefive-3.0.99}/threefive/commands.py +0 -0
  20. {threefive-3.0.97 → threefive-3.0.99}/threefive/crc.py +0 -0
  21. {threefive-3.0.97 → threefive-3.0.99}/threefive/descriptors.py +0 -0
  22. {threefive-3.0.97 → threefive-3.0.99}/threefive/encode.py +0 -0
  23. {threefive-3.0.97 → threefive-3.0.99}/threefive/gums.py +0 -0
  24. {threefive-3.0.97 → threefive-3.0.99}/threefive/hls.py +0 -0
  25. {threefive-3.0.97 → threefive-3.0.99}/threefive/hlsprofile.py +0 -0
  26. {threefive-3.0.97 → threefive-3.0.99}/threefive/hlstags.py +0 -0
  27. {threefive-3.0.97 → threefive-3.0.99}/threefive/iframes.py +0 -0
  28. {threefive-3.0.97 → threefive-3.0.99}/threefive/packetdata.py +0 -0
  29. {threefive-3.0.97 → threefive-3.0.99}/threefive/pmt.py +0 -0
  30. {threefive-3.0.97 → threefive-3.0.99}/threefive/section.py +0 -0
  31. {threefive-3.0.97 → threefive-3.0.99}/threefive/segmentation.py +0 -0
  32. {threefive-3.0.97 → threefive-3.0.99}/threefive/sixfix.py +0 -0
  33. {threefive-3.0.97 → threefive-3.0.99}/threefive/speedo.py +0 -0
  34. {threefive-3.0.97 → threefive-3.0.99}/threefive/streamtypes.py +0 -0
  35. {threefive-3.0.97 → threefive-3.0.99}/threefive/stuff.py +0 -0
  36. {threefive-3.0.97 → threefive-3.0.99}/threefive/superkabuki.py +0 -0
  37. {threefive-3.0.97 → threefive-3.0.99}/threefive/throttle.py +0 -0
  38. {threefive-3.0.97 → threefive-3.0.99}/threefive/udp.py +0 -0
  39. {threefive-3.0.97 → threefive-3.0.99}/threefive/upids.py +0 -0
  40. {threefive-3.0.97 → threefive-3.0.99}/threefive/uxp.py +0 -0
  41. {threefive-3.0.97 → threefive-3.0.99}/threefive/xml.py +0 -0
  42. {threefive-3.0.97 → threefive-3.0.99}/threefive.egg-info/SOURCES.txt +0 -0
  43. {threefive-3.0.97 → threefive-3.0.99}/threefive.egg-info/dependency_links.txt +0 -0
  44. {threefive-3.0.97 → threefive-3.0.99}/threefive.egg-info/entry_points.txt +0 -0
  45. {threefive-3.0.97 → threefive-3.0.99}/threefive.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: threefive
3
- Version: 3.0.97
3
+ Version: 3.0.99
4
4
  Summary: threefive is The #1 SCTE-35 Decoder and Encoder on the Planet.
5
5
  Author-email: AdrianofDoom <spam@iodisco.com>
6
6
  License-Expression: Sleepycat
@@ -17,10 +17,10 @@ Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Dynamic: license-file
19
19
 
20
- _A lot of people consider me to be a subject matter expert on SCTE-35,<BR> I see myself more as the undisputed heavy weight champion of SCTE-35._ ~Adrian
21
-
22
20
  # [ threefive ]
23
21
 
22
+ _"this code is cleaner than your dishes"_ ~Adrian
23
+
24
24
  # Over 1.2 Million Installs.
25
25
 
26
26
 
@@ -30,7 +30,7 @@ _A lot of people consider me to be a subject matter expert on SCTE-35,<BR> I see
30
30
 
31
31
  # [ version ]
32
32
 
33
- ### __latest is v.3.0.97__
33
+ ### __latest is v.3.0.99__
34
34
 
35
35
 
36
36
  # [ really really quick start ]
@@ -1,7 +1,7 @@
1
- _A lot of people consider me to be a subject matter expert on SCTE-35,<BR> I see myself more as the undisputed heavy weight champion of SCTE-35._ ~Adrian
2
-
3
1
  # [ threefive ]
4
2
 
3
+ _"this code is cleaner than your dishes"_ ~Adrian
4
+
5
5
  # Over 1.2 Million Installs.
6
6
 
7
7
 
@@ -11,7 +11,7 @@ _A lot of people consider me to be a subject matter expert on SCTE-35,<BR> I see
11
11
 
12
12
  # [ version ]
13
13
 
14
- ### __latest is v.3.0.97__
14
+ ### __latest is v.3.0.99__
15
15
 
16
16
 
17
17
  # [ really really quick start ]
@@ -1,7 +1,7 @@
1
1
 
2
2
  [project]
3
3
  name = "threefive"
4
- version = "3.0.97"
4
+ version = "3.0.99"
5
5
  authors = [
6
6
  { name="AdrianofDoom", email="spam@iodisco.com" },
7
7
  ]
@@ -0,0 +1,258 @@
1
+ CRCTABLE = [
2
+ 0,
3
+ 79764919,
4
+ 159529838,
5
+ 222504665,
6
+ 319059676,
7
+ 398814059,
8
+ 445009330,
9
+ 507990021,
10
+ 638119352,
11
+ 583659535,
12
+ 797628118,
13
+ 726387553,
14
+ 890018660,
15
+ 835552979,
16
+ 1015980042,
17
+ 944750013,
18
+ 1276238704,
19
+ 1221641927,
20
+ 1167319070,
21
+ 1095957929,
22
+ 1595256236,
23
+ 1540665371,
24
+ 1452775106,
25
+ 1381403509,
26
+ 1780037320,
27
+ 1859660671,
28
+ 1671105958,
29
+ 1733955601,
30
+ 2031960084,
31
+ 2111593891,
32
+ 1889500026,
33
+ 1952343757,
34
+ 2552477408,
35
+ 2632100695,
36
+ 2443283854,
37
+ 2506133561,
38
+ 2334638140,
39
+ 2414271883,
40
+ 2191915858,
41
+ 2254759653,
42
+ 3190512472,
43
+ 3135915759,
44
+ 3081330742,
45
+ 3009969537,
46
+ 2905550212,
47
+ 2850959411,
48
+ 2762807018,
49
+ 2691435357,
50
+ 3560074640,
51
+ 3505614887,
52
+ 3719321342,
53
+ 3648080713,
54
+ 3342211916,
55
+ 3287746299,
56
+ 3467911202,
57
+ 3396681109,
58
+ 4063920168,
59
+ 4143685023,
60
+ 4223187782,
61
+ 4286162673,
62
+ 3779000052,
63
+ 3858754371,
64
+ 3904687514,
65
+ 3967668269,
66
+ 881225847,
67
+ 809987520,
68
+ 1023691545,
69
+ 969234094,
70
+ 662832811,
71
+ 591600412,
72
+ 771767749,
73
+ 717299826,
74
+ 311336399,
75
+ 374308984,
76
+ 453813921,
77
+ 533576470,
78
+ 25881363,
79
+ 88864420,
80
+ 134795389,
81
+ 214552010,
82
+ 2023205639,
83
+ 2086057648,
84
+ 1897238633,
85
+ 1976864222,
86
+ 1804852699,
87
+ 1867694188,
88
+ 1645340341,
89
+ 1724971778,
90
+ 1587496639,
91
+ 1516133128,
92
+ 1461550545,
93
+ 1406951526,
94
+ 1302016099,
95
+ 1230646740,
96
+ 1142491917,
97
+ 1087903418,
98
+ 2896545431,
99
+ 2825181984,
100
+ 2770861561,
101
+ 2716262478,
102
+ 3215044683,
103
+ 3143675388,
104
+ 3055782693,
105
+ 3001194130,
106
+ 2326604591,
107
+ 2389456536,
108
+ 2200899649,
109
+ 2280525302,
110
+ 2578013683,
111
+ 2640855108,
112
+ 2418763421,
113
+ 2498394922,
114
+ 3769900519,
115
+ 3832873040,
116
+ 3912640137,
117
+ 3992402750,
118
+ 4088425275,
119
+ 4151408268,
120
+ 4197601365,
121
+ 4277358050,
122
+ 3334271071,
123
+ 3263032808,
124
+ 3476998961,
125
+ 3422541446,
126
+ 3585640067,
127
+ 3514407732,
128
+ 3694837229,
129
+ 3640369242,
130
+ 1762451694,
131
+ 1842216281,
132
+ 1619975040,
133
+ 1682949687,
134
+ 2047383090,
135
+ 2127137669,
136
+ 1938468188,
137
+ 2001449195,
138
+ 1325665622,
139
+ 1271206113,
140
+ 1183200824,
141
+ 1111960463,
142
+ 1543535498,
143
+ 1489069629,
144
+ 1434599652,
145
+ 1363369299,
146
+ 622672798,
147
+ 568075817,
148
+ 748617968,
149
+ 677256519,
150
+ 907627842,
151
+ 853037301,
152
+ 1067152940,
153
+ 995781531,
154
+ 51762726,
155
+ 131386257,
156
+ 177728840,
157
+ 240578815,
158
+ 269590778,
159
+ 349224269,
160
+ 429104020,
161
+ 491947555,
162
+ 4046411278,
163
+ 4126034873,
164
+ 4172115296,
165
+ 4234965207,
166
+ 3794477266,
167
+ 3874110821,
168
+ 3953728444,
169
+ 4016571915,
170
+ 3609705398,
171
+ 3555108353,
172
+ 3735388376,
173
+ 3664026991,
174
+ 3290680682,
175
+ 3236090077,
176
+ 3449943556,
177
+ 3378572211,
178
+ 3174993278,
179
+ 3120533705,
180
+ 3032266256,
181
+ 2961025959,
182
+ 2923101090,
183
+ 2868635157,
184
+ 2813903052,
185
+ 2742672763,
186
+ 2604032198,
187
+ 2683796849,
188
+ 2461293480,
189
+ 2524268063,
190
+ 2284983834,
191
+ 2364738477,
192
+ 2175806836,
193
+ 2238787779,
194
+ 1569362073,
195
+ 1498123566,
196
+ 1409854455,
197
+ 1355396672,
198
+ 1317987909,
199
+ 1246755826,
200
+ 1192025387,
201
+ 1137557660,
202
+ 2072149281,
203
+ 2135122070,
204
+ 1912620623,
205
+ 1992383480,
206
+ 1753615357,
207
+ 1816598090,
208
+ 1627664531,
209
+ 1707420964,
210
+ 295390185,
211
+ 358241886,
212
+ 404320391,
213
+ 483945776,
214
+ 43990325,
215
+ 106832002,
216
+ 186451547,
217
+ 266083308,
218
+ 932423249,
219
+ 861060070,
220
+ 1041341759,
221
+ 986742920,
222
+ 613929101,
223
+ 542559546,
224
+ 756411363,
225
+ 701822548,
226
+ 3316196985,
227
+ 3244833742,
228
+ 3425377559,
229
+ 3370778784,
230
+ 3601682597,
231
+ 3530312978,
232
+ 3744426955,
233
+ 3689838204,
234
+ 3819031489,
235
+ 3881883254,
236
+ 3928223919,
237
+ 4007849240,
238
+ 4037393693,
239
+ 4100235434,
240
+ 4180117107,
241
+ 4259748804,
242
+ 2310601993,
243
+ 2373574846,
244
+ 2151335527,
245
+ 2231098320,
246
+ 2596047829,
247
+ 2659030626,
248
+ 2470359227,
249
+ 2550115596,
250
+ 2947551409,
251
+ 2876312838,
252
+ 2788305887,
253
+ 2733848168,
254
+ 3165939309,
255
+ 3094707162,
256
+ 3040238851,
257
+ 2985771188,
258
+ ]
@@ -354,14 +354,14 @@ class Cue(SCTE35Base):
354
354
  """
355
355
  encode_as_hex alias for Cue.hex()
356
356
  """
357
- blue("Cue.encode_as_hex() has been deprecated use Cue.hex() instead")
357
+ blue("Cue.encode_as_hex() has been deprecated use Cue.hex() instead")
358
358
  return self.hex()
359
359
 
360
360
  def encode_as_int(self):
361
361
  """
362
362
  encode_as_int alias for Cue.int()
363
363
  """
364
- blue("Cue.encode_as_int() has been deprecated use Cue.int() instead")
364
+ blue("Cue.encode_as_int() has been deprecated use Cue.int() instead")
365
365
 
366
366
  return self.int()
367
367
 
@@ -30,6 +30,7 @@ def corsreader(uri, headers={}):
30
30
  def try_srt(uri, headers={}):
31
31
  try:
32
32
  from srtfu import SRTfu, SRTO_TRANSTYPE, SRT_LIVE, SRTO_RCVSYN, SRTO_RCVBUF
33
+
33
34
  return _do_srt(uri, headers=headers)
34
35
  except ImportError:
35
36
  blue("pip install srtfu to add SRT support")
@@ -75,6 +76,7 @@ def reader(uri, headers={}):
75
76
  # HTTP(S)
76
77
  if uri.startswith("http"):
77
78
  import urllib.request
79
+
78
80
  req = urllib.request.Request(uri, headers=headers)
79
81
  return urllib.request.urlopen(req)
80
82
  # SRT
@@ -82,9 +84,12 @@ def reader(uri, headers={}):
82
84
  return try_srt(uri, headers=headers)
83
85
  # File
84
86
  from mmap import mmap
87
+
85
88
  with open(uri, "r+b") as f:
86
- return mmap(f.fileno(),0)
87
- ## return open(uri, "rb")
89
+ return mmap(f.fileno(), 0)
90
+
91
+
92
+ # return open(uri, "rb")
88
93
 
89
94
 
90
95
  def _do_srt(srt_url, headers={}):
@@ -111,6 +116,7 @@ def _open_udp(uri):
111
116
  udp://1.2.3.4:5555
112
117
  """
113
118
  from .udp import udp_receiver
119
+
114
120
  udp_ip, udp_port = (uri.split("udp://")[1]).rsplit(":", 1)
115
121
  udp_port = pif(udp_port)
116
122
  blue("Opening UDP Unicast socket")
@@ -125,7 +131,8 @@ def _open_mcast(uri):
125
131
  udp://@227.1.3.10:4310
126
132
  """
127
133
  import socket
128
- from .udp import udp_receiver,mcast_ttl
134
+ from .udp import udp_receiver, mcast_ttl
135
+
129
136
  ttl = 32
130
137
  interface_ip = "0.0.0.0"
131
138
  multicast_group, port = (uri.split("udp://@")[1]).rsplit(":", 1)
@@ -5,7 +5,7 @@ The threefive.Segment class
5
5
  import os
6
6
  from .new_reader import reader
7
7
  from .stream import Stream
8
- from .stuff import print2,blue
8
+ from .stuff import print2, blue
9
9
 
10
10
 
11
11
  class Segment(Stream):
@@ -44,6 +44,7 @@ class Segment(Stream):
44
44
  89730.281789: '/DAvAAAAAAAAAP/wFAUAAAKWf+//4WoauH4BTFYgAAEAAAAKAAhDVUVJAAAAAOv1oqc='}
45
45
 
46
46
  """
47
+
47
48
  def __init__(self, seg_uri, key_uri=None, iv=None):
48
49
  self.seg_uri = seg_uri
49
50
  self.key_uri = key_uri
@@ -66,10 +67,11 @@ class Segment(Stream):
66
67
  def _import_aes():
67
68
  try:
68
69
  import pyaes
70
+
69
71
  return True
70
72
  except ImportError:
71
73
  blue("pip install pyaes for AES support")
72
- return False
74
+ return False
73
75
 
74
76
  def __repr__(self):
75
77
  return str(self.__dict__)
@@ -243,7 +243,7 @@ class Stream(Based):
243
243
  if one:
244
244
  if one[0] == self.SYNC_BYTE:
245
245
  tail = self._tsdata.read(self.PACKET_SIZE - 1)
246
- self._parse(one + tail)
246
+ self.parse(one + tail)
247
247
  return True
248
248
  print2("No Stream Found\n")
249
249
  return False
@@ -540,6 +540,9 @@ class Stream(Based):
540
540
  cue = self._parse_scte35(pkt, pid)
541
541
  return cue
542
542
 
543
+ def _parse(self,pkt):
544
+ return self.parse(pkt)
545
+
543
546
  def _chk_partial(self, pay, pid, sep):
544
547
  if pid in self.maps.partial:
545
548
  pay2 = self.maps.partial.pop(pid) + pay
@@ -5,6 +5,6 @@ from the cli tool run: threefive version
5
5
 
6
6
  MAJOR = 3
7
7
  MINOR = 0
8
- MINI = 97
8
+ MINI = 99
9
9
 
10
10
  version = f"{MAJOR}.{MINOR}.{MINI}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: threefive
3
- Version: 3.0.97
3
+ Version: 3.0.99
4
4
  Summary: threefive is The #1 SCTE-35 Decoder and Encoder on the Planet.
5
5
  Author-email: AdrianofDoom <spam@iodisco.com>
6
6
  License-Expression: Sleepycat
@@ -17,10 +17,10 @@ Description-Content-Type: text/markdown
17
17
  License-File: LICENSE
18
18
  Dynamic: license-file
19
19
 
20
- _A lot of people consider me to be a subject matter expert on SCTE-35,<BR> I see myself more as the undisputed heavy weight champion of SCTE-35._ ~Adrian
21
-
22
20
  # [ threefive ]
23
21
 
22
+ _"this code is cleaner than your dishes"_ ~Adrian
23
+
24
24
  # Over 1.2 Million Installs.
25
25
 
26
26
 
@@ -30,7 +30,7 @@ _A lot of people consider me to be a subject matter expert on SCTE-35,<BR> I see
30
30
 
31
31
  # [ version ]
32
32
 
33
- ### __latest is v.3.0.97__
33
+ ### __latest is v.3.0.99__
34
34
 
35
35
 
36
36
  # [ really really quick start ]
@@ -1,34 +0,0 @@
1
- CRCTABLE = [0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,
2
- 638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,
3
- 1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,
4
- 1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,
5
- 2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,
6
- 3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,
7
- 3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,
8
- 4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,
9
- 881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,
10
- 311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,
11
- 2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,
12
- 1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,
13
- 2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,
14
- 2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,
15
- 3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,
16
- 3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,
17
- 1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,
18
- 1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,
19
- 622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,
20
- 51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,
21
- 4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,
22
- 3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,
23
- 3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,
24
- 2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,
25
- 1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,
26
- 2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,
27
- 295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,
28
- 932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,
29
- 3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,
30
- 3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,
31
- 2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,
32
- 2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188,]
33
-
34
-
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
File without changes