clinton 0.0.6__tar.gz → 0.0.8__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.
@@ -3,6 +3,7 @@ import time
3
3
  import ffmpeg
4
4
  import random
5
5
  import asyncio
6
+
6
7
  from ..scripts import Scripted
7
8
  from .collections import SMessage
8
9
  from hachoir.parser import createParser
@@ -20,7 +21,7 @@ class Media:
20
21
  #=====================================================================================================
21
22
 
22
23
  @staticmethod
23
- async def filename(location, filename=None, extension=Scripted.DATA06):
24
+ async def filename(location, filename=None, extension=".jpg"):
24
25
  moones = filename if filename else round(time.time())
25
26
  moonus = str(location) + str(moones) + extension
26
27
  return moonus
@@ -74,7 +75,7 @@ class Media:
74
75
  async def screenshot(file, dlocation, duration):
75
76
  try:
76
77
  output = await Media.filename(dlocation, extension=".jpg")
77
- ffmpeg.input(file, ss=duration).output(output.filename, vframes=1).run(quiet=True)
78
+ ffmpeg.input(file, ss=duration).output(output, vframes=1).run(quiet=True)
78
79
  moonos = output.filename if os.path.lexists(output.filename) else None
79
80
  return SMessage(result=moonos)
80
81
  except ffmpeg.Error as errors:
clinton-0.0.8/PKG-INFO ADDED
@@ -0,0 +1,35 @@
1
+ Metadata-Version: 2.4
2
+ Name: clinton
3
+ Version: 0.0.8
4
+ Author-email: Clinton Abraham <clintonabrahamc@gmail.com>
5
+ Project-URL: Homepage, https://telegram.me/Clinton_Abraham
6
+ Keywords: apps,python,extensions
7
+ Classifier: Natural Language :: English
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Programming Language :: Python :: 3.15
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+ Requires-Dist: pillow
19
+ Requires-Dist: hachoir
20
+ Requires-Dist: ffmpeg-python
21
+
22
+ <p align="center">
23
+ <a href="https://ibb.co/7NXDmQ8j"><img src="https://i.ibb.co/N2GsSp4b/file-00000000bd908211a319795ae2a89be9.png" alt="file-00000000d61c8211bf1838bd7e34f360" border="0">
24
+ </a>
25
+ <br>
26
+ <b>Python applications extension</b>
27
+ <br>
28
+ </p>
29
+
30
+
31
+ <p align="center">
32
+ <a href="https://telegram.me/Space_x_bots"><img src="https://img.shields.io/badge/Sᴘᴀᴄᴇ 𝕩 ʙᴏᴛꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
33
+ <a href="https://telegram.me/clinton_abraham"><img src="https://img.shields.io/badge/Cʟɪɴᴛᴏɴ Aʙʀᴀʜᴀᴍ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
34
+ <a href="https://telegram.me/sources_codes"><img src="https://img.shields.io/badge/Sᴏᴜʀᴄᴇ ᴄᴏᴅᴇꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
35
+ </p>
@@ -0,0 +1,14 @@
1
+ <p align="center">
2
+ <a href="https://ibb.co/7NXDmQ8j"><img src="https://i.ibb.co/N2GsSp4b/file-00000000bd908211a319795ae2a89be9.png" alt="file-00000000d61c8211bf1838bd7e34f360" border="0">
3
+ </a>
4
+ <br>
5
+ <b>Python applications extension</b>
6
+ <br>
7
+ </p>
8
+
9
+
10
+ <p align="center">
11
+ <a href="https://telegram.me/Space_x_bots"><img src="https://img.shields.io/badge/Sᴘᴀᴄᴇ 𝕩 ʙᴏᴛꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
12
+ <a href="https://telegram.me/clinton_abraham"><img src="https://img.shields.io/badge/Cʟɪɴᴛᴏɴ Aʙʀᴀʜᴀᴍ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
13
+ <a href="https://telegram.me/sources_codes"><img src="https://img.shields.io/badge/Sᴏᴜʀᴄᴇ ᴄᴏᴅᴇꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
14
+ </p>
@@ -0,0 +1,35 @@
1
+ Metadata-Version: 2.4
2
+ Name: clinton
3
+ Version: 0.0.8
4
+ Author-email: Clinton Abraham <clintonabrahamc@gmail.com>
5
+ Project-URL: Homepage, https://telegram.me/Clinton_Abraham
6
+ Keywords: apps,python,extensions
7
+ Classifier: Natural Language :: English
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Programming Language :: Python :: 3.15
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+ Requires-Dist: pillow
19
+ Requires-Dist: hachoir
20
+ Requires-Dist: ffmpeg-python
21
+
22
+ <p align="center">
23
+ <a href="https://ibb.co/7NXDmQ8j"><img src="https://i.ibb.co/N2GsSp4b/file-00000000bd908211a319795ae2a89be9.png" alt="file-00000000d61c8211bf1838bd7e34f360" border="0">
24
+ </a>
25
+ <br>
26
+ <b>Python applications extension</b>
27
+ <br>
28
+ </p>
29
+
30
+
31
+ <p align="center">
32
+ <a href="https://telegram.me/Space_x_bots"><img src="https://img.shields.io/badge/Sᴘᴀᴄᴇ 𝕩 ʙᴏᴛꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
33
+ <a href="https://telegram.me/clinton_abraham"><img src="https://img.shields.io/badge/Cʟɪɴᴛᴏɴ Aʙʀᴀʜᴀᴍ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
34
+ <a href="https://telegram.me/sources_codes"><img src="https://img.shields.io/badge/Sᴏᴜʀᴄᴇ ᴄᴏᴅᴇꜱ-30302f?style=flat&logo=telegram" alt="telegram badge"/></a>
35
+ </p>
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "clinton"
7
- version = "0.0.6"
8
- description = "Clinton"
7
+ description = ""
8
+ version = "0.0.8"
9
9
  requires-python = ">=3.10"
10
10
  keywords = ["apps", "python", "extensions"]
11
11
  dependencies = ["pillow", "hachoir", "ffmpeg-python"]
clinton-0.0.6/PKG-INFO DELETED
@@ -1,39 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: clinton
3
- Version: 0.0.6
4
- Summary: Clinton
5
- Author-email: Clinton Abraham <clintonabrahamc@gmail.com>
6
- Project-URL: Homepage, https://telegram.me/Clinton_Abraham
7
- Keywords: apps,python,extensions
8
- Classifier: Natural Language :: English
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Classifier: Programming Language :: Python :: 3.13
15
- Classifier: Programming Language :: Python :: 3.14
16
- Classifier: Programming Language :: Python :: 3.15
17
- Requires-Python: >=3.10
18
- Description-Content-Type: text/markdown
19
- Requires-Dist: pillow
20
- Requires-Dist: hachoir
21
- Requires-Dist: ffmpeg-python
22
-
23
- <p align="center">
24
- 📦 <a href="https://pypi.org/project/clinton" style="text-decoration:none;">CLINTON</a>
25
- </p>
26
-
27
- ```python
28
- import asyncio
29
- from Clinton.functions import Media
30
-
31
- async def main():
32
- duration = 7000 # IN SECONDS
33
- save = "./Home/" # OUTPUT LOCATION
34
- file = "./Home/Video.mp4" # FILE LOCATION
35
- result = await Media.screenshot(file, save, duration)
36
- print(result)
37
-
38
- asyncio.run(main())
39
- ```
clinton-0.0.6/README.md DELETED
@@ -1,17 +0,0 @@
1
- <p align="center">
2
- 📦 <a href="https://pypi.org/project/clinton" style="text-decoration:none;">CLINTON</a>
3
- </p>
4
-
5
- ```python
6
- import asyncio
7
- from Clinton.functions import Media
8
-
9
- async def main():
10
- duration = 7000 # IN SECONDS
11
- save = "./Home/" # OUTPUT LOCATION
12
- file = "./Home/Video.mp4" # FILE LOCATION
13
- result = await Media.screenshot(file, save, duration)
14
- print(result)
15
-
16
- asyncio.run(main())
17
- ```
@@ -1,39 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: clinton
3
- Version: 0.0.6
4
- Summary: Clinton
5
- Author-email: Clinton Abraham <clintonabrahamc@gmail.com>
6
- Project-URL: Homepage, https://telegram.me/Clinton_Abraham
7
- Keywords: apps,python,extensions
8
- Classifier: Natural Language :: English
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Classifier: Programming Language :: Python :: 3.13
15
- Classifier: Programming Language :: Python :: 3.14
16
- Classifier: Programming Language :: Python :: 3.15
17
- Requires-Python: >=3.10
18
- Description-Content-Type: text/markdown
19
- Requires-Dist: pillow
20
- Requires-Dist: hachoir
21
- Requires-Dist: ffmpeg-python
22
-
23
- <p align="center">
24
- 📦 <a href="https://pypi.org/project/clinton" style="text-decoration:none;">CLINTON</a>
25
- </p>
26
-
27
- ```python
28
- import asyncio
29
- from Clinton.functions import Media
30
-
31
- async def main():
32
- duration = 7000 # IN SECONDS
33
- save = "./Home/" # OUTPUT LOCATION
34
- file = "./Home/Video.mp4" # FILE LOCATION
35
- result = await Media.screenshot(file, save, duration)
36
- print(result)
37
-
38
- asyncio.run(main())
39
- ```
File without changes
File without changes