dzuseragents 0.0.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,6 @@
1
+ Metadata-Version: 2.4
2
+ Name: dzuseragents
3
+ Version: 0.0.1
4
+ Summary: Random User Agent Generator
5
+ Author: Your Name
6
+ Requires-Python: >=3.8
@@ -0,0 +1,6 @@
1
+ Metadata-Version: 2.4
2
+ Name: dzuseragents
3
+ Version: 0.0.1
4
+ Summary: Random User Agent Generator
5
+ Author: Your Name
6
+ Requires-Python: >=3.8
@@ -0,0 +1,7 @@
1
+ dzuseragents.py
2
+ pyproject.toml
3
+ dzuseragents.egg-info/PKG-INFO
4
+ dzuseragents.egg-info/SOURCES.txt
5
+ dzuseragents.egg-info/dependency_links.txt
6
+ dzuseragents.egg-info/entry_points.txt
7
+ dzuseragents.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ dzua = dzuseragents:main
@@ -0,0 +1 @@
1
+ dzuseragents
@@ -0,0 +1,24 @@
1
+ import random
2
+ import argparse
3
+
4
+ USER_AGENTS = [
5
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
6
+ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)",
7
+ "Mozilla/5.0 (X11; Linux x86_64)",
8
+ ]
9
+
10
+ def generate(count=1):
11
+ return [random.choice(USER_AGENTS) for _ in range(count)]
12
+
13
+
14
+ def main():
15
+ parser = argparse.ArgumentParser(description="Generate random User Agents")
16
+ parser.add_argument("--count", type=int, default=1)
17
+ args = parser.parse_args()
18
+
19
+ for ua in generate(args.count):
20
+ print(ua)
21
+
22
+
23
+ if __name__ == "__main__":
24
+ main()
@@ -0,0 +1,13 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "dzuseragents"
7
+ version = "0.0.1"
8
+ description = "Random User Agent Generator"
9
+ authors = [{ name = "Your Name" }]
10
+ requires-python = ">=3.8"
11
+
12
+ [project.scripts]
13
+ dzua = "dzuseragents:main"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+