parascode 2.3.0__tar.gz → 2.3.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.
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.4
2
+ Name: parascode
3
+ Version: 2.3.1
4
+ Summary: Complete Python Utility Toolkit with cFonts, Social Media OSINT, and more
5
+ Author: Paras Chourasiya
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/Aotpy
8
+ Project-URL: Repository, https://github.com/Aotpy
9
+ Project-URL: Bug Tracker, https://github.com/Aotpy/issues
10
+ Keywords: cfonts,social-media,osint,instagram,twitter,tiktok,colors,console,parascode
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.6
16
+ Classifier: Programming Language :: Python :: 3.7
17
+ Classifier: Programming Language :: Python :: 3.8
18
+ Classifier: Programming Language :: Python :: 3.9
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Topic :: Utilities
23
+ Requires-Python: >=3.6
24
+ Description-Content-Type: text/markdown
25
+ Requires-Dist: requests>=2.25.0
26
+ Requires-Dist: httpx>=0.23.0
27
+ Requires-Dist: user-agent>=0.1.0
28
+ Requires-Dist: curl2pyreqs>=0.1.0
29
+ Requires-Dist: PySocks>=1.7.1
30
+ Requires-Dist: colorama>=0.4.4
31
+ Requires-Dist: urllib3>=1.26.0
@@ -0,0 +1,27 @@
1
+
2
+ """
3
+ ParasCode - Complete Python Utility Toolkit
4
+ Author: Paras Chourasiya
5
+ GitHub: https://github.com/Aptpy
6
+ """
7
+
8
+ from .__version__ import __version__
9
+ from .parascode import (
10
+ ParasCode, pc, cprint, random_string, random_number,
11
+ random_user_agent, get_client, link, expire, clear,
12
+ banner, clear_screen, print_colored, colored,
13
+ render, say, show_fonts, show_colors, show_backgrounds,
14
+ Instagram, Twitter, Tiktok, Facebook, Spotify,
15
+ Email, UserAgent, Curl, Proxy,
16
+ get_country_info, GetMid, coockie, r
17
+ )
18
+
19
+ __all__ = [
20
+ "__version__", "ParasCode", "pc", "cprint", "random_string",
21
+ "random_number", "random_user_agent", "get_client", "link",
22
+ "expire", "clear", "banner", "clear_screen", "print_colored",
23
+ "colored", "render", "say", "show_fonts", "show_colors",
24
+ "show_backgrounds", "Instagram", "Twitter", "Tiktok", "Facebook",
25
+ "Spotify", "Email", "UserAgent", "Curl", "Proxy",
26
+ "get_country_info", "GetMid", "coockie", "r"
27
+ ]
@@ -0,0 +1 @@
1
+ __version__ = "2.3.1"
@@ -0,0 +1,112 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ ParasCode Command Line Interface
4
+ """
5
+
6
+ import argparse
7
+ import sys
8
+ from . import (
9
+ __version__, pc, say, render, show_fonts,
10
+ show_colors, show_backgrounds, Instagram, Twitter
11
+ )
12
+
13
+ def main():
14
+ parser = argparse.ArgumentParser(
15
+ description="ParasCode - Python Utility Toolkit",
16
+ formatter_class=argparse.RawDescriptionHelpFormatter,
17
+ epilog="""
18
+ Examples:
19
+ parascode "Hello World" --font block --colors red,blue
20
+ parascode "Python" --font 3d --gradient red,yellow,green
21
+ parascode --instagram cristiano
22
+ parascode --twitter elonmusk
23
+ parascode --list-fonts
24
+ """
25
+ )
26
+
27
+ parser.add_argument("text", nargs="?", help="Text to render with cFonts")
28
+ parser.add_argument("-f", "--font", default="block", help="Font name (default: block)")
29
+ parser.add_argument("-c", "--colors", help="Colors (comma separated)")
30
+ parser.add_argument("-g", "--gradient", help="Gradient colors (comma separated)")
31
+ parser.add_argument("-a", "--align", default="left", choices=["left", "center", "right"], help="Text alignment")
32
+ parser.add_argument("-b", "--background", help="Background color")
33
+
34
+ parser.add_argument("--instagram", metavar="USERNAME", help="Get Instagram user info")
35
+ parser.add_argument("--twitter", metavar="USERNAME", help="Get Twitter user info")
36
+ parser.add_argument("--check-email", metavar="EMAIL", help="Check if email exists on Instagram")
37
+
38
+ parser.add_argument("--list-fonts", action="store_true", help="List all available fonts")
39
+ parser.add_argument("--list-colors", action="store_true", help="List all available colors")
40
+ parser.add_argument("--list-backgrounds", action="store_true", help="List all background colors")
41
+ parser.add_argument("-v", "--version", action="store_true", help="Show version")
42
+
43
+ args = parser.parse_args()
44
+
45
+ if args.version:
46
+ print(f"ParasCode v{__version__}")
47
+ return
48
+
49
+ if args.list_fonts:
50
+ show_fonts()
51
+ return
52
+
53
+ if args.list_colors:
54
+ show_colors()
55
+ return
56
+
57
+ if args.list_backgrounds:
58
+ show_backgrounds()
59
+ return
60
+
61
+ if args.instagram:
62
+ info = Instagram.information(args.instagram)
63
+ if info:
64
+ print(f"\n📱 Instagram: @{args.instagram}")
65
+ print(f"👤 Name: {info.get('name', 'N/A')}")
66
+ print(f"👥 Followers: {info.get('followers', 'N/A')}")
67
+ print(f"📝 Posts: {info.get('post', 'N/A')}")
68
+ print(f"✅ Verified: {info.get('is_verified', False)}")
69
+ print(f"🔒 Private: {info.get('is_private', False)}")
70
+ print(f"📅 Joined: {info.get('date', 'N/A')}")
71
+ else:
72
+ print(f"❌ User @{args.instagram} not found")
73
+ return
74
+
75
+ if args.twitter:
76
+ info = Twitter.information(args.twitter)
77
+ if info:
78
+ print(f"\n🐦 Twitter: @{args.twitter}")
79
+ print(f"👤 Name: {info.get('name', 'N/A')}")
80
+ print(f"👥 Followers: {info.get('followers', 'N/A')}")
81
+ print(f"📝 Bio: {info.get('bio', 'N/A')}")
82
+ print(f"📍 Location: {info.get('location', 'N/A')}")
83
+ print(f"✅ Verified: {info.get('verified', False)}")
84
+ else:
85
+ print(f"❌ User @{args.twitter} not found")
86
+ return
87
+
88
+ if args.check_email:
89
+ result = Instagram.CheckEmail(args.check_email)
90
+ if result:
91
+ print(f"✅ Email {args.check_email} is registered on Instagram")
92
+ else:
93
+ print(f"❌ Email {args.check_email} is NOT registered on Instagram")
94
+ return
95
+
96
+ if args.text:
97
+ colors = args.colors.split(",") if args.colors else None
98
+ gradient = args.gradient.split(",") if args.gradient else None
99
+
100
+ say(
101
+ args.text,
102
+ font=args.font,
103
+ colors=colors,
104
+ gradient=gradient,
105
+ align=args.align,
106
+ background=args.background or "transparent"
107
+ )
108
+ else:
109
+ parser.print_help()
110
+
111
+ if __name__ == "__main__":
112
+ main()