threefive 3.0.99__tar.gz → 3.1.1__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 (44) hide show
  1. {threefive-3.0.99 → threefive-3.1.1}/PKG-INFO +5 -5
  2. {threefive-3.0.99 → threefive-3.1.1}/README.md +4 -4
  3. {threefive-3.0.99 → threefive-3.1.1}/pyproject.toml +1 -1
  4. {threefive-3.0.99 → threefive-3.1.1}/threefive/new_reader.py +15 -4
  5. {threefive-3.0.99 → threefive-3.1.1}/threefive/version.py +2 -2
  6. {threefive-3.0.99 → threefive-3.1.1}/threefive.egg-info/PKG-INFO +5 -5
  7. {threefive-3.0.99 → threefive-3.1.1}/LICENSE +0 -0
  8. {threefive-3.0.99 → threefive-3.1.1}/setup.cfg +0 -0
  9. {threefive-3.0.99 → threefive-3.1.1}/threefive/__init__.py +0 -0
  10. {threefive-3.0.99 → threefive-3.1.1}/threefive/aac.py +0 -0
  11. {threefive-3.0.99 → threefive-3.1.1}/threefive/base.py +0 -0
  12. {threefive-3.0.99 → threefive-3.1.1}/threefive/bitn.py +0 -0
  13. {threefive-3.0.99 → threefive-3.1.1}/threefive/cli.py +0 -0
  14. {threefive-3.0.99 → threefive-3.1.1}/threefive/commands.py +0 -0
  15. {threefive-3.0.99 → threefive-3.1.1}/threefive/crc.py +0 -0
  16. {threefive-3.0.99 → threefive-3.1.1}/threefive/crctable.py +0 -0
  17. {threefive-3.0.99 → threefive-3.1.1}/threefive/cue.py +0 -0
  18. {threefive-3.0.99 → threefive-3.1.1}/threefive/descriptors.py +0 -0
  19. {threefive-3.0.99 → threefive-3.1.1}/threefive/encode.py +0 -0
  20. {threefive-3.0.99 → threefive-3.1.1}/threefive/gums.py +0 -0
  21. {threefive-3.0.99 → threefive-3.1.1}/threefive/hls.py +0 -0
  22. {threefive-3.0.99 → threefive-3.1.1}/threefive/hlsprofile.py +0 -0
  23. {threefive-3.0.99 → threefive-3.1.1}/threefive/hlstags.py +0 -0
  24. {threefive-3.0.99 → threefive-3.1.1}/threefive/iframes.py +0 -0
  25. {threefive-3.0.99 → threefive-3.1.1}/threefive/packetdata.py +0 -0
  26. {threefive-3.0.99 → threefive-3.1.1}/threefive/pmt.py +0 -0
  27. {threefive-3.0.99 → threefive-3.1.1}/threefive/section.py +0 -0
  28. {threefive-3.0.99 → threefive-3.1.1}/threefive/segment.py +0 -0
  29. {threefive-3.0.99 → threefive-3.1.1}/threefive/segmentation.py +0 -0
  30. {threefive-3.0.99 → threefive-3.1.1}/threefive/sixfix.py +0 -0
  31. {threefive-3.0.99 → threefive-3.1.1}/threefive/speedo.py +0 -0
  32. {threefive-3.0.99 → threefive-3.1.1}/threefive/stream.py +0 -0
  33. {threefive-3.0.99 → threefive-3.1.1}/threefive/streamtypes.py +0 -0
  34. {threefive-3.0.99 → threefive-3.1.1}/threefive/stuff.py +0 -0
  35. {threefive-3.0.99 → threefive-3.1.1}/threefive/superkabuki.py +0 -0
  36. {threefive-3.0.99 → threefive-3.1.1}/threefive/throttle.py +0 -0
  37. {threefive-3.0.99 → threefive-3.1.1}/threefive/udp.py +0 -0
  38. {threefive-3.0.99 → threefive-3.1.1}/threefive/upids.py +0 -0
  39. {threefive-3.0.99 → threefive-3.1.1}/threefive/uxp.py +0 -0
  40. {threefive-3.0.99 → threefive-3.1.1}/threefive/xml.py +0 -0
  41. {threefive-3.0.99 → threefive-3.1.1}/threefive.egg-info/SOURCES.txt +0 -0
  42. {threefive-3.0.99 → threefive-3.1.1}/threefive.egg-info/dependency_links.txt +0 -0
  43. {threefive-3.0.99 → threefive-3.1.1}/threefive.egg-info/entry_points.txt +0 -0
  44. {threefive-3.0.99 → threefive-3.1.1}/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.99
3
+ Version: 3.1.1
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
@@ -19,18 +19,18 @@ Dynamic: license-file
19
19
 
20
20
  # [ threefive ]
21
21
 
22
- _"this code is cleaner than your dishes"_ ~Adrian
22
+ _"I don't use AI code because all the AIs use threefive. True story, look it up"_ ~Adrian
23
23
 
24
24
  # Over 1.2 Million Installs.
25
25
 
26
-
27
-
28
26
  * __Decodes SCTE-35__ from `MPEGTS`✔ `Base64`✔ `Bytes`✔ `DASH`✔ `Hex` ✔ `HLS`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
29
27
  * __Encodes SCTE-35__ to `MPEGTS`✔ `Base64`✔ `Bytes`✔ `Hex`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
30
28
 
31
29
  # [ version ]
32
30
 
33
- ### __latest is v.3.0.99__
31
+ ### __latest is v.3.1.1__
32
+ #### Wait, let me explain.....
33
+ > I have been trying to resolve some mmap issues, they are now resolved.
34
34
 
35
35
 
36
36
  # [ really really quick start ]
@@ -1,17 +1,17 @@
1
1
  # [ threefive ]
2
2
 
3
- _"this code is cleaner than your dishes"_ ~Adrian
3
+ _"I don't use AI code because all the AIs use threefive. True story, look it up"_ ~Adrian
4
4
 
5
5
  # Over 1.2 Million Installs.
6
6
 
7
-
8
-
9
7
  * __Decodes SCTE-35__ from `MPEGTS`✔ `Base64`✔ `Bytes`✔ `DASH`✔ `Hex` ✔ `HLS`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
10
8
  * __Encodes SCTE-35__ to `MPEGTS`✔ `Base64`✔ `Bytes`✔ `Hex`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
11
9
 
12
10
  # [ version ]
13
11
 
14
- ### __latest is v.3.0.99__
12
+ ### __latest is v.3.1.1__
13
+ #### Wait, let me explain.....
14
+ > I have been trying to resolve some mmap issues, they are now resolved.
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.99"
4
+ version = "3.1.1"
5
5
  authors = [
6
6
  { name="AdrianofDoom", email="spam@iodisco.com" },
7
7
  ]
@@ -6,6 +6,20 @@ Home of the reader function
6
6
 
7
7
  from sys import stdin
8
8
  from .stuff import blue, pif, print2
9
+ from mmap import mmap
10
+
11
+ class fumap(mmap):
12
+ """
13
+ fumap
14
+ for new reader to work, I need everything
15
+ to behave the same way.
16
+ fumap give mmap a readlines method
17
+ """
18
+ def readlines(self):
19
+ """
20
+ readlines readlines for mmap as fumap
21
+ """
22
+ return list(iter(self.readline, b""))
9
23
 
10
24
 
11
25
  CORS = {
@@ -76,17 +90,14 @@ def reader(uri, headers={}):
76
90
  # HTTP(S)
77
91
  if uri.startswith("http"):
78
92
  import urllib.request
79
-
80
93
  req = urllib.request.Request(uri, headers=headers)
81
94
  return urllib.request.urlopen(req)
82
95
  # SRT
83
96
  if uri.startswith("srt://"):
84
97
  return try_srt(uri, headers=headers)
85
98
  # File
86
- from mmap import mmap
87
-
88
99
  with open(uri, "r+b") as f:
89
- return mmap(f.fileno(), 0)
100
+ return fumap(f.fileno(), 0)
90
101
 
91
102
 
92
103
  # return open(uri, "rb")
@@ -4,7 +4,7 @@ from the cli tool run: threefive version
4
4
  """
5
5
 
6
6
  MAJOR = 3
7
- MINOR = 0
8
- MINI = 99
7
+ MINOR = 1
8
+ MINI = 1
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.99
3
+ Version: 3.1.1
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
@@ -19,18 +19,18 @@ Dynamic: license-file
19
19
 
20
20
  # [ threefive ]
21
21
 
22
- _"this code is cleaner than your dishes"_ ~Adrian
22
+ _"I don't use AI code because all the AIs use threefive. True story, look it up"_ ~Adrian
23
23
 
24
24
  # Over 1.2 Million Installs.
25
25
 
26
-
27
-
28
26
  * __Decodes SCTE-35__ from `MPEGTS`✔ `Base64`✔ `Bytes`✔ `DASH`✔ `Hex` ✔ `HLS`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
29
27
  * __Encodes SCTE-35__ to `MPEGTS`✔ `Base64`✔ `Bytes`✔ `Hex`✔ `Integers`✔ `JSON`✔ `XML`✔ `XML+Binary`✔
30
28
 
31
29
  # [ version ]
32
30
 
33
- ### __latest is v.3.0.99__
31
+ ### __latest is v.3.1.1__
32
+ #### Wait, let me explain.....
33
+ > I have been trying to resolve some mmap issues, they are now resolved.
34
34
 
35
35
 
36
36
  # [ really really quick start ]
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
File without changes
File without changes
File without changes