t5oracle 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.
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.3
2
+ Name: t5oracle
3
+ Version: 0.1.0
4
+ Summary: Generate random T5 Oracle codes from Python or the command line.
5
+ Author: q5x-v6e-n7z-6x3
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+
File without changes
@@ -0,0 +1,20 @@
1
+ [project]
2
+ name = "t5oracle"
3
+ version = "0.1.0"
4
+ description = "Generate random T5 Oracle codes from Python or the command line."
5
+ readme = "README.md"
6
+ requires-python = ">=3.9"
7
+ dependencies = []
8
+
9
+ [[project.authors]]
10
+ name = "q5x-v6e-n7z-6x3"
11
+
12
+ [project.scripts]
13
+ t5oracle = "t5oracle.cli:main"
14
+
15
+ [build-system]
16
+ requires = ["uv_build>=0.12.17,<0.13.0"]
17
+ build-backend = "uv_build"
18
+
19
+ [dependency-groups]
20
+ dev = ["pytest>=8.4.1,<9"]
@@ -0,0 +1,22 @@
1
+ [project]
2
+ name = "t5oracle"
3
+ version = "0.1.0"
4
+ description = "Generate random T5 Oracle codes from Python or the command line."
5
+ readme = "README.md"
6
+ authors = [
7
+ { name = "q5x-v6e-n7z-6x3" }
8
+ ]
9
+ requires-python = ">=3.9"
10
+ dependencies = []
11
+
12
+ [project.scripts]
13
+ t5oracle = "t5oracle.cli:main"
14
+
15
+ [build-system]
16
+ requires = ["uv_build>=0.12.17,<0.13.0"]
17
+ build-backend = "uv_build"
18
+
19
+ [dependency-groups]
20
+ dev = [
21
+ "pytest>=8.4.1,<9",
22
+ ]
@@ -0,0 +1,3 @@
1
+ from .idgen import generate_code
2
+
3
+ __all__ = ["generate_code"]
@@ -0,0 +1,9 @@
1
+ from .idgen import generate_code
2
+
3
+
4
+ def main():
5
+ print(generate_code())
6
+
7
+
8
+ if __name__ == "__main__":
9
+ main()
@@ -0,0 +1,14 @@
1
+ import secrets
2
+ import string
3
+
4
+
5
+ def generate_code():
6
+ characters = string.ascii_lowercase + string.digits
7
+
8
+ groups = []
9
+
10
+ for _ in range(4):
11
+ group = "".join(secrets.choice(characters) for _ in range(3))
12
+ groups.append(group)
13
+
14
+ return "_".join(groups)
File without changes