upload-socials 0.1.0__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 (28) hide show
  1. upload_socials-0.1.0/LICENSE +21 -0
  2. upload_socials-0.1.0/MANIFEST.in +1 -0
  3. upload_socials-0.1.0/PKG-INFO +89 -0
  4. upload_socials-0.1.0/README.md +60 -0
  5. upload_socials-0.1.0/pyproject.toml +35 -0
  6. upload_socials-0.1.0/setup.cfg +4 -0
  7. upload_socials-0.1.0/setup.py +32 -0
  8. upload_socials-0.1.0/upload_socials/__init__.py +54 -0
  9. upload_socials-0.1.0/upload_socials/uploadyt/create.png +0 -0
  10. upload_socials-0.1.0/upload_socials/uploadyt/create2.png +0 -0
  11. upload_socials-0.1.0/upload_socials/uploadyt/filename.png +0 -0
  12. upload_socials-0.1.0/upload_socials/uploadyt/next.png +0 -0
  13. upload_socials-0.1.0/upload_socials/uploadyt/publish.png +0 -0
  14. upload_socials-0.1.0/upload_socials/uploadyt/select.png +0 -0
  15. upload_socials-0.1.0/upload_socials/uploadyt/select2.png +0 -0
  16. upload_socials-0.1.0/upload_socials/uploadyt/showmore.png +0 -0
  17. upload_socials-0.1.0/upload_socials/uploadyt/tags.png +0 -0
  18. upload_socials-0.1.0/upload_socials/uploadyt/tell.png +0 -0
  19. upload_socials-0.1.0/upload_socials/uploadyt/thumbnail.png +0 -0
  20. upload_socials-0.1.0/upload_socials/uploadyt/thumbnail2.png +0 -0
  21. upload_socials-0.1.0/upload_socials/uploadyt/title.png +0 -0
  22. upload_socials-0.1.0/upload_socials/uploadyt/uploadvids.png +0 -0
  23. upload_socials-0.1.0/upload_socials/uploadyt/uploadvids2.png +0 -0
  24. upload_socials-0.1.0/upload_socials.egg-info/PKG-INFO +89 -0
  25. upload_socials-0.1.0/upload_socials.egg-info/SOURCES.txt +26 -0
  26. upload_socials-0.1.0/upload_socials.egg-info/dependency_links.txt +1 -0
  27. upload_socials-0.1.0/upload_socials.egg-info/requires.txt +6 -0
  28. upload_socials-0.1.0/upload_socials.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 AMA Mazing
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ recursive-include upload_socials/uploadyt *.png
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: upload-socials
3
+ Version: 0.1.0
4
+ Summary: Streamline your content workflow by automating video uploads to YouTube, TikTok, and Instagram with this Python library.
5
+ Home-page: https://github.com/AMAMazing/upload-socials
6
+ Author: Your Name
7
+ Author-email: Your Name <your.email@example.com>
8
+ License: MIT
9
+ Project-URL: Homepage, https://github.com/AMAMazing/upload-socials
10
+ Project-URL: Bug Tracker, https://github.com/AMAMazing/upload-socials/issues
11
+ Keywords: automation,social media,youtube,tiktok,instagram,upload,pyautogui
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Development Status :: 4 - Beta
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Topic :: Internet
18
+ Requires-Python: >=3.6
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: PyAutoGUI
22
+ Requires-Dist: optimisewait
23
+ Requires-Dist: smartpaste
24
+ Requires-Dist: pypiwin32; sys_platform == "win32"
25
+ Dynamic: author
26
+ Dynamic: home-page
27
+ Dynamic: license-file
28
+ Dynamic: requires-python
29
+
30
+ # 🚀 upload-socials
31
+
32
+ Streamline your content workflow by automating video uploads to YouTube with this Python library.
33
+
34
+ ---
35
+
36
+ ## ⚠️ Prerequisites
37
+
38
+ This is a GUI automation library and **requires a specific setup to function**:
39
+
40
+ 1. **Screen Resolution:** Your screen resolution should ideally be 1920x1080. The browser window should be maximized.
41
+ 2. **Reference Images:** GUI automation works by finding images on the screen. You **must** provide your own folders of reference images (e.g., screenshots of the 'Upload', 'Next', and 'Publish' buttons for YouTube).
42
+ 3. **Platform Language:** The YouTube website must be set to English for the default image names to match.
43
+
44
+ This library is best suited for developers comfortable with tuning GUI automation scripts.
45
+
46
+ ## Installation
47
+
48
+ ```bash
49
+ pip install upload-socials
50
+ ```
51
+
52
+ ## Quick Start
53
+
54
+ Create a folder for your automation images. For example: `C:\my_automation_images\youtube`. Then, take screenshots of the buttons needed for the upload process and save them in that folder (e.g., `create.png`, `next.png`, `publish.png`).
55
+
56
+ ```python
57
+ from upload_socials import upload_youtube
58
+
59
+ # The absolute path to your folder of reference images for YouTube
60
+ YT_IMAGE_PATH = r"C:\\my_automation_images\\youtube"
61
+
62
+ # Video details
63
+ video_file = r"C:\\path\\to\\my_awesome_video.mp4"
64
+ video_title = "My First Automated Upload!"
65
+ video_desc = "This was uploaded using the upload-socials Python library."
66
+ thumb_file = r"C:\\path\\to\\my_thumbnail.png"
67
+ video_tags = "python,automation,coding"
68
+
69
+ # Call the function
70
+ upload_youtube(
71
+ filepath=video_file,
72
+ title=video_title,
73
+ image_path=YT_IMAGE_PATH,
74
+ description=video_desc,
75
+ thumbnail=thumb_file,
76
+ tags=video_tags
77
+ )
78
+ ```
79
+
80
+ ## API Overview
81
+
82
+ - `upload_youtube(filepath, title, image_path, ...)`
83
+
84
+ Each function requires an `image_path` argument pointing to a folder containing the necessary `.png` screenshots for its automation tasks.
85
+
86
+ ## License
87
+
88
+ This project is licensed under the MIT License.
89
+
@@ -0,0 +1,60 @@
1
+ # 🚀 upload-socials
2
+
3
+ Streamline your content workflow by automating video uploads to YouTube with this Python library.
4
+
5
+ ---
6
+
7
+ ## ⚠️ Prerequisites
8
+
9
+ This is a GUI automation library and **requires a specific setup to function**:
10
+
11
+ 1. **Screen Resolution:** Your screen resolution should ideally be 1920x1080. The browser window should be maximized.
12
+ 2. **Reference Images:** GUI automation works by finding images on the screen. You **must** provide your own folders of reference images (e.g., screenshots of the 'Upload', 'Next', and 'Publish' buttons for YouTube).
13
+ 3. **Platform Language:** The YouTube website must be set to English for the default image names to match.
14
+
15
+ This library is best suited for developers comfortable with tuning GUI automation scripts.
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ pip install upload-socials
21
+ ```
22
+
23
+ ## Quick Start
24
+
25
+ Create a folder for your automation images. For example: `C:\my_automation_images\youtube`. Then, take screenshots of the buttons needed for the upload process and save them in that folder (e.g., `create.png`, `next.png`, `publish.png`).
26
+
27
+ ```python
28
+ from upload_socials import upload_youtube
29
+
30
+ # The absolute path to your folder of reference images for YouTube
31
+ YT_IMAGE_PATH = r"C:\\my_automation_images\\youtube"
32
+
33
+ # Video details
34
+ video_file = r"C:\\path\\to\\my_awesome_video.mp4"
35
+ video_title = "My First Automated Upload!"
36
+ video_desc = "This was uploaded using the upload-socials Python library."
37
+ thumb_file = r"C:\\path\\to\\my_thumbnail.png"
38
+ video_tags = "python,automation,coding"
39
+
40
+ # Call the function
41
+ upload_youtube(
42
+ filepath=video_file,
43
+ title=video_title,
44
+ image_path=YT_IMAGE_PATH,
45
+ description=video_desc,
46
+ thumbnail=thumb_file,
47
+ tags=video_tags
48
+ )
49
+ ```
50
+
51
+ ## API Overview
52
+
53
+ - `upload_youtube(filepath, title, image_path, ...)`
54
+
55
+ Each function requires an `image_path` argument pointing to a folder containing the necessary `.png` screenshots for its automation tasks.
56
+
57
+ ## License
58
+
59
+ This project is licensed under the MIT License.
60
+
@@ -0,0 +1,35 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "upload-socials"
7
+ version = "0.1.0"
8
+ authors = [
9
+ { name="Your Name", email="your.email@example.com" },
10
+ ]
11
+ description = "Streamline your content workflow by automating video uploads to YouTube, TikTok, and Instagram with this Python library."
12
+ readme = "README.md"
13
+ requires-python = ">=3.8"
14
+ license = { text="MIT" }
15
+ keywords = ["automation", "social media", "youtube", "tiktok", "instagram", "upload", "pyautogui"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Operating System :: Microsoft :: Windows",
20
+ "Development Status :: 4 - Beta",
21
+ "Intended Audience :: Developers",
22
+ "Topic :: Internet",
23
+ ]
24
+
25
+ # List all the libraries your code needs to run.
26
+ dependencies = [
27
+ "PyAutoGUI",
28
+ "optimisewait",
29
+ "smartpaste",
30
+ "pypiwin32; sys_platform == 'win32'", # For Windows-specific functionality
31
+ ]
32
+
33
+ [project.urls]
34
+ Homepage = "https://github.com/AMAMazing/upload-socials"
35
+ "Bug Tracker" = "https://github.com/AMAMazing/upload-socials/issues"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,32 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ with open("README.md", "r", encoding="utf-8") as fh:
4
+ long_description = fh.read()
5
+
6
+ setup(
7
+ name="upload-socials",
8
+ version="0.1.0",
9
+ author="Your Name",
10
+ author_email="alexmalone489@gmail.com",
11
+ description="A Python library to automate video uploads to YouTube.",
12
+ long_description=long_description,
13
+ long_description_content_type="text/markdown",
14
+ url="https://github.com/AMAMazing/upload-socials",
15
+ packages=find_packages(),
16
+ classifiers=[
17
+ "Programming Language :: Python :: 3",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Operating System :: OS Independent",
20
+ ],
21
+ python_requires='>=3.6',
22
+ install_requires=[
23
+ 'pyautogui',
24
+ 'pywin32',
25
+ 'optimisewait',
26
+ 'smartpaste'
27
+ ],
28
+ include_package_data=True,
29
+ package_data={
30
+ 'upload_socials': ['uploadyt/*.png'],
31
+ },
32
+ )
@@ -0,0 +1,54 @@
1
+ import os
2
+ from time import sleep
3
+ import webbrowser
4
+ import pyautogui
5
+ from optimisewait import optimiseWait
6
+ import smartpaste
7
+
8
+ def upload_youtube(filepath: str, title: str, image_path: str = None, description: str = None, channelurl: str = 'https://studio.youtube.com/', thumbnail: str = None, tags: str = None):
9
+ """
10
+ Automates uploading a video to YouTube.
11
+ Args:
12
+ filepath (str): The absolute path to the video file.
13
+ title (str): The title of the YouTube video.
14
+ image_path (str, optional): The path to the folder containing reference images for automation. Defaults to bundled 'uploadyt' folder.
15
+ description (str, optional): The video description. Defaults to None.
16
+ channelurl (str, optional): The YouTube Studio URL. Defaults to 'https://studio.youtube.com/'.
17
+ thumbnail (str, optional): The absolute path to the thumbnail image. Defaults to None.
18
+ tags (str, optional): A comma-separated string of tags. Defaults to None.
19
+ """
20
+ if image_path is None:
21
+ image_path = os.path.join(os.path.dirname(__file__), 'uploadyt')
22
+
23
+ webbrowser.open(channelurl)
24
+
25
+ optimiseWait(['create','create2'], autopath=image_path)
26
+ optimiseWait(['uploadvids','uploadvids2'], autopath=image_path)
27
+ optimiseWait(['select','select2'], autopath=image_path)
28
+ optimiseWait('filename', clicks=0, autopath=image_path)
29
+ smartpaste.smartpaste(filepath)
30
+ pyautogui.press('enter')
31
+ optimiseWait('title', yoff=10, clicks=0, autopath=image_path)
32
+ pyautogui.hotkey('ctrl', 'a')
33
+
34
+ smartpaste.smartpaste(title)
35
+ if thumbnail:
36
+ optimiseWait(['thumbnail','thumbnail2'], autopath=image_path)
37
+ optimiseWait('filename', clicks=0, autopath=image_path)
38
+ smartpaste.smartpaste(thumbnail)
39
+ pyautogui.press('enter')
40
+ sleep(1)
41
+ if description:
42
+ optimiseWait('tell', autopath=image_path)
43
+ smartpaste.smartpaste(description)
44
+
45
+ if tags:
46
+ optimiseWait('showmore', scrolltofind='pagedown', autopath=image_path)
47
+ optimiseWait('tags', scrolltofind='pagedown', autopath=image_path)
48
+ smartpaste.smartpaste(tags)
49
+
50
+ for i in range(0, 3):
51
+ sleep(1)
52
+ optimiseWait('next', autopath=image_path)
53
+
54
+ optimiseWait('publish', autopath=image_path)
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.4
2
+ Name: upload-socials
3
+ Version: 0.1.0
4
+ Summary: Streamline your content workflow by automating video uploads to YouTube, TikTok, and Instagram with this Python library.
5
+ Home-page: https://github.com/AMAMazing/upload-socials
6
+ Author: Your Name
7
+ Author-email: Your Name <your.email@example.com>
8
+ License: MIT
9
+ Project-URL: Homepage, https://github.com/AMAMazing/upload-socials
10
+ Project-URL: Bug Tracker, https://github.com/AMAMazing/upload-socials/issues
11
+ Keywords: automation,social media,youtube,tiktok,instagram,upload,pyautogui
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Development Status :: 4 - Beta
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Topic :: Internet
18
+ Requires-Python: >=3.6
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: PyAutoGUI
22
+ Requires-Dist: optimisewait
23
+ Requires-Dist: smartpaste
24
+ Requires-Dist: pypiwin32; sys_platform == "win32"
25
+ Dynamic: author
26
+ Dynamic: home-page
27
+ Dynamic: license-file
28
+ Dynamic: requires-python
29
+
30
+ # 🚀 upload-socials
31
+
32
+ Streamline your content workflow by automating video uploads to YouTube with this Python library.
33
+
34
+ ---
35
+
36
+ ## ⚠️ Prerequisites
37
+
38
+ This is a GUI automation library and **requires a specific setup to function**:
39
+
40
+ 1. **Screen Resolution:** Your screen resolution should ideally be 1920x1080. The browser window should be maximized.
41
+ 2. **Reference Images:** GUI automation works by finding images on the screen. You **must** provide your own folders of reference images (e.g., screenshots of the 'Upload', 'Next', and 'Publish' buttons for YouTube).
42
+ 3. **Platform Language:** The YouTube website must be set to English for the default image names to match.
43
+
44
+ This library is best suited for developers comfortable with tuning GUI automation scripts.
45
+
46
+ ## Installation
47
+
48
+ ```bash
49
+ pip install upload-socials
50
+ ```
51
+
52
+ ## Quick Start
53
+
54
+ Create a folder for your automation images. For example: `C:\my_automation_images\youtube`. Then, take screenshots of the buttons needed for the upload process and save them in that folder (e.g., `create.png`, `next.png`, `publish.png`).
55
+
56
+ ```python
57
+ from upload_socials import upload_youtube
58
+
59
+ # The absolute path to your folder of reference images for YouTube
60
+ YT_IMAGE_PATH = r"C:\\my_automation_images\\youtube"
61
+
62
+ # Video details
63
+ video_file = r"C:\\path\\to\\my_awesome_video.mp4"
64
+ video_title = "My First Automated Upload!"
65
+ video_desc = "This was uploaded using the upload-socials Python library."
66
+ thumb_file = r"C:\\path\\to\\my_thumbnail.png"
67
+ video_tags = "python,automation,coding"
68
+
69
+ # Call the function
70
+ upload_youtube(
71
+ filepath=video_file,
72
+ title=video_title,
73
+ image_path=YT_IMAGE_PATH,
74
+ description=video_desc,
75
+ thumbnail=thumb_file,
76
+ tags=video_tags
77
+ )
78
+ ```
79
+
80
+ ## API Overview
81
+
82
+ - `upload_youtube(filepath, title, image_path, ...)`
83
+
84
+ Each function requires an `image_path` argument pointing to a folder containing the necessary `.png` screenshots for its automation tasks.
85
+
86
+ ## License
87
+
88
+ This project is licensed under the MIT License.
89
+
@@ -0,0 +1,26 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ upload_socials/__init__.py
7
+ upload_socials.egg-info/PKG-INFO
8
+ upload_socials.egg-info/SOURCES.txt
9
+ upload_socials.egg-info/dependency_links.txt
10
+ upload_socials.egg-info/requires.txt
11
+ upload_socials.egg-info/top_level.txt
12
+ upload_socials/uploadyt/create.png
13
+ upload_socials/uploadyt/create2.png
14
+ upload_socials/uploadyt/filename.png
15
+ upload_socials/uploadyt/next.png
16
+ upload_socials/uploadyt/publish.png
17
+ upload_socials/uploadyt/select.png
18
+ upload_socials/uploadyt/select2.png
19
+ upload_socials/uploadyt/showmore.png
20
+ upload_socials/uploadyt/tags.png
21
+ upload_socials/uploadyt/tell.png
22
+ upload_socials/uploadyt/thumbnail.png
23
+ upload_socials/uploadyt/thumbnail2.png
24
+ upload_socials/uploadyt/title.png
25
+ upload_socials/uploadyt/uploadvids.png
26
+ upload_socials/uploadyt/uploadvids2.png
@@ -0,0 +1,6 @@
1
+ PyAutoGUI
2
+ optimisewait
3
+ smartpaste
4
+
5
+ [:sys_platform == "win32"]
6
+ pypiwin32
@@ -0,0 +1 @@
1
+ upload_socials