PrintTolTest 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,57 @@
1
+ # 🏳️‍🌈 Opinionated Queer License v1.2
2
+
3
+ © Copyright [NamelessNanashi](<https://git.NamelessNanashi.dev/>)
4
+
5
+ ## Permissions
6
+
7
+ The creators of this Work (“The Licensor”) grant permission
8
+ to any person, group or legal entity that doesn't violate the prohibitions below (“The User”),
9
+ to do everything with this Work that would otherwise infringe their copyright or any patent claims,
10
+ subject to the following conditions:
11
+
12
+ ## Obligations
13
+
14
+ The User must give appropriate credit to the Licensor,
15
+ provide a copy of this license or a (clickable, if the medium allows) link to
16
+ [oql.avris.it/license/v1.2](<https://oql.avris.it/license/v1.2>),
17
+ and indicate whether and what kind of changes were made.
18
+ The User may do so in any reasonable manner,
19
+ but not in any way that suggests the Licensor endorses the User or their use.
20
+
21
+ ## Prohibitions
22
+
23
+ No one may use this Work for prejudiced or bigoted purposes, including but not limited to:
24
+ racism, xenophobia, queerphobia, queer exclusionism, homophobia, transphobia, enbyphobia, misogyny.
25
+
26
+ No one may use this Work to inflict or facilitate violence or abuse of human rights,
27
+ as defined in either of the following documents:
28
+ [Universal Declaration of Human Rights](<https://www.un.org/en/about-us/universal-declaration-of-human-right>),
29
+ [European Convention on Human Rights](<https://prd-echr.coe.int/web/echr/european-convention-on-human-rights>)
30
+ along with the rulings of the [European Court of Human Rights](<https://www.echr.coe.int/>).
31
+
32
+ No law enforcement, carceral institutions, immigration enforcement entities, military entities or military contractors
33
+ may use the Work for any reason. This also applies to any individuals employed by those entities.
34
+
35
+ No business entity where the ratio of pay (salaried, freelance, stocks, or other benefits)
36
+ between the highest and lowest individual in the entity is greater than 50 : 1
37
+ may use the Work for any reason.
38
+
39
+ No private business run for profit with more than a thousand employees
40
+ may use the Work for any reason.
41
+
42
+ Unless the User has made substantial changes to the Work,
43
+ or uses it only as a part of a new work (eg. as a library, as a part of an anthology, etc.),
44
+ they are prohibited from selling the Work.
45
+ That prohibition includes processing the Work with machine learning models.
46
+
47
+ ## Sanctions
48
+
49
+ If the Licensor notifies the User that they have not complied with the rules of the license,
50
+ they can keep their license by complying within 30 days after the notice.
51
+ If they do not do so, their license ends immediately.
52
+
53
+ ## Warranty
54
+
55
+ This Work is provided “as is”, without warranty of any kind, express or implied.
56
+ The Licensor will not be liable to anyone for any damages related to the Work or this license,
57
+ under any kind of legal claim as far as the law allows.
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: PrintTolTest
3
+ Version: 0.1.0
4
+ Summary: A CLI tool to calculate 3D print dimensional tolerance.
5
+ Author: NanashiTheNameless
6
+ Author-email: NanashiTheNameless <NanashiTheNameless@NamelessNanashi.dev>
7
+ Maintainer: NanashiTheNameless
8
+ Maintainer-email: NanashiTheNameless <NanashiTheNameless@NamelessNanashi.dev>
9
+ License: OQL-1.2
10
+ Project-URL: Download, https://github.com/NanashiTheNameless/PrintTolTest/releases/latest
11
+ Project-URL: Homepage, https://github.com/NanashiTheNameless/PrintTolTest
12
+ Project-URL: GitHub-Sponsor, https://github.com/sponsors/NanashiTheNameless
13
+ Project-URL: BuyMeACoffee, https://buymeacoffee.com/NamelessNanashi
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Natural Language :: English
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE.md
27
+ Dynamic: license-file
28
+
29
+ # PrintTolTest
30
+
31
+ Simple command-line utility to convert CSV files to searchable and
32
+ sortable HTML table. Supports large datasets and horizontal scrolling
33
+ for large number of columns.
34
+
35
+ ## Installation
36
+
37
+ Get the Latest
38
+
39
+ ```sh
40
+ python3 -m pip install --upgrade 'PrintTolTest @ git+https://github.com/NanashiTheNameless/PrintTolTest@master'
41
+ ```
42
+
43
+ Or get from [PyPi](<https://pypi.org/project/PrintTolTest/>) (not recommended, may be out of date)
44
+
45
+ ```sh
46
+ python3 -m pip install --upgrade PrintTolTest
47
+ ```
48
+
49
+ ## Get started
50
+
51
+ ```sh
52
+ PrintTolTest
53
+ ```
File without changes
@@ -0,0 +1,28 @@
1
+ def calculate_tolerance(ideal, measured):
2
+ signed = ((measured - ideal) / ideal) * 100
3
+ absolute = abs(signed)
4
+ return signed, absolute
5
+
6
+
7
+ def main():
8
+ print("3D Print Tolerance:")
9
+ try:
10
+ ideal_x = float(input("Ideal X dimension (mm): "))
11
+ ideal_y = float(input("Ideal Y dimension (mm): "))
12
+ ideal_z = float(input("Ideal Z dimension (mm): "))
13
+ measured_x = float(input("Measured X dimension (mm): "))
14
+ measured_y = float(input("Measured Y dimension (mm): "))
15
+ measured_z = float(input("Measured Z dimension (mm): "))
16
+ results = {
17
+ "X": calculate_tolerance(ideal_x, measured_x),
18
+ "Y": calculate_tolerance(ideal_y, measured_y),
19
+ "Z": calculate_tolerance(ideal_z, measured_z),
20
+ }
21
+ print("\nTolerance Results:")
22
+ for axis, (signed, absolute) in results.items():
23
+ print(f"{axis}-axis: Signed = {signed:+.3f}%, Absolute = {absolute:.3f}%")
24
+ except ValueError:
25
+ print("Invalid input. Only numeric values are allowed.")
26
+
27
+ if __name__ == "__main__":
28
+ main()
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: PrintTolTest
3
+ Version: 0.1.0
4
+ Summary: A CLI tool to calculate 3D print dimensional tolerance.
5
+ Author: NanashiTheNameless
6
+ Author-email: NanashiTheNameless <NanashiTheNameless@NamelessNanashi.dev>
7
+ Maintainer: NanashiTheNameless
8
+ Maintainer-email: NanashiTheNameless <NanashiTheNameless@NamelessNanashi.dev>
9
+ License: OQL-1.2
10
+ Project-URL: Download, https://github.com/NanashiTheNameless/PrintTolTest/releases/latest
11
+ Project-URL: Homepage, https://github.com/NanashiTheNameless/PrintTolTest
12
+ Project-URL: GitHub-Sponsor, https://github.com/sponsors/NanashiTheNameless
13
+ Project-URL: BuyMeACoffee, https://buymeacoffee.com/NamelessNanashi
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Natural Language :: English
16
+ Classifier: Programming Language :: Python
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: 3.14
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE.md
27
+ Dynamic: license-file
28
+
29
+ # PrintTolTest
30
+
31
+ Simple command-line utility to convert CSV files to searchable and
32
+ sortable HTML table. Supports large datasets and horizontal scrolling
33
+ for large number of columns.
34
+
35
+ ## Installation
36
+
37
+ Get the Latest
38
+
39
+ ```sh
40
+ python3 -m pip install --upgrade 'PrintTolTest @ git+https://github.com/NanashiTheNameless/PrintTolTest@master'
41
+ ```
42
+
43
+ Or get from [PyPi](<https://pypi.org/project/PrintTolTest/>) (not recommended, may be out of date)
44
+
45
+ ```sh
46
+ python3 -m pip install --upgrade PrintTolTest
47
+ ```
48
+
49
+ ## Get started
50
+
51
+ ```sh
52
+ PrintTolTest
53
+ ```
@@ -0,0 +1,10 @@
1
+ LICENSE.md
2
+ README.md
3
+ pyproject.toml
4
+ PrintTolTest/__init__.py
5
+ PrintTolTest/cli.py
6
+ PrintTolTest.egg-info/PKG-INFO
7
+ PrintTolTest.egg-info/SOURCES.txt
8
+ PrintTolTest.egg-info/dependency_links.txt
9
+ PrintTolTest.egg-info/entry_points.txt
10
+ PrintTolTest.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ PrintTolTest = PrintTolTest.cli:main
@@ -0,0 +1 @@
1
+ PrintTolTest
@@ -0,0 +1,25 @@
1
+ # PrintTolTest
2
+
3
+ Simple command-line utility to convert CSV files to searchable and
4
+ sortable HTML table. Supports large datasets and horizontal scrolling
5
+ for large number of columns.
6
+
7
+ ## Installation
8
+
9
+ Get the Latest
10
+
11
+ ```sh
12
+ python3 -m pip install --upgrade 'PrintTolTest @ git+https://github.com/NanashiTheNameless/PrintTolTest@master'
13
+ ```
14
+
15
+ Or get from [PyPi](<https://pypi.org/project/PrintTolTest/>) (not recommended, may be out of date)
16
+
17
+ ```sh
18
+ python3 -m pip install --upgrade PrintTolTest
19
+ ```
20
+
21
+ ## Get started
22
+
23
+ ```sh
24
+ PrintTolTest
25
+ ```
@@ -0,0 +1,46 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "PrintTolTest"
7
+ version = "0.1.0"
8
+ description = "A CLI tool to calculate 3D print dimensional tolerance."
9
+ readme = "README.md"
10
+ license = { text = "OQL-1.2" }
11
+ requires-python = ">=3.10"
12
+
13
+ authors = [
14
+ { name = "NanashiTheNameless" },
15
+ { name = "NanashiTheNameless", email = "NanashiTheNameless@NamelessNanashi.dev" }
16
+ ]
17
+
18
+ maintainers = [
19
+ { name = "NanashiTheNameless" },
20
+ { name = "NanashiTheNameless", email = "NanashiTheNameless@NamelessNanashi.dev" }
21
+ ]
22
+
23
+ classifiers = [
24
+ "Development Status :: 4 - Beta",
25
+ "Natural Language :: English",
26
+ "Programming Language :: Python",
27
+ "Programming Language :: Python :: 3",
28
+ "Programming Language :: Python :: 3 :: Only",
29
+ "Programming Language :: Python :: 3.10",
30
+ "Programming Language :: Python :: 3.11",
31
+ "Programming Language :: Python :: 3.12",
32
+ "Programming Language :: Python :: 3.13",
33
+ "Programming Language :: Python :: 3.14"
34
+ ]
35
+
36
+ [project.scripts]
37
+ PrintTolTest = "PrintTolTest.cli:main"
38
+
39
+ [tool.setuptools]
40
+ license-files = ["LICENSE.md"]
41
+
42
+ [project.urls]
43
+ Download = "https://github.com/NanashiTheNameless/PrintTolTest/releases/latest"
44
+ Homepage = "https://github.com/NanashiTheNameless/PrintTolTest"
45
+ GitHub-Sponsor = "https://github.com/sponsors/NanashiTheNameless"
46
+ BuyMeACoffee = "https://buymeacoffee.com/NamelessNanashi"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+