eytelwein 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 (121) hide show
  1. eytelwein-0.1.0/.editorconfig +7 -0
  2. eytelwein-0.1.0/.gitattributes +24 -0
  3. eytelwein-0.1.0/.github/workflows/ci.yml +31 -0
  4. eytelwein-0.1.0/.github/workflows/docs.yml +60 -0
  5. eytelwein-0.1.0/.github/workflows/publish.yml +27 -0
  6. eytelwein-0.1.0/.gitignore +153 -0
  7. eytelwein-0.1.0/.pre-commit-config.yaml +46 -0
  8. eytelwein-0.1.0/.python-version +1 -0
  9. eytelwein-0.1.0/CONTRIBUTING.md +79 -0
  10. eytelwein-0.1.0/LICENSE +190 -0
  11. eytelwein-0.1.0/NOTICE +5 -0
  12. eytelwein-0.1.0/PKG-INFO +237 -0
  13. eytelwein-0.1.0/README.md +217 -0
  14. eytelwein-0.1.0/docs/assets/avatar.svg +37 -0
  15. eytelwein-0.1.0/docs/assets/logo.svg +37 -0
  16. eytelwein-0.1.0/docs/source/conf.py +36 -0
  17. eytelwein-0.1.0/docs/source/eytelwein_export.rst +10 -0
  18. eytelwein-0.1.0/docs/source/index.rst +16 -0
  19. eytelwein-0.1.0/examples/advanced/h_private_functions_not_recommended.py +125 -0
  20. eytelwein-0.1.0/examples/features/a_output_unit_minimum_tension.py +41 -0
  21. eytelwein-0.1.0/examples/features/b_imperial_input_dual_output.py +37 -0
  22. eytelwein-0.1.0/examples/features/c_unit_errors_are_caught.py +31 -0
  23. eytelwein-0.1.0/examples/features/d_physically_invalid_inputs_are_caught.py +31 -0
  24. eytelwein-0.1.0/examples/features/e_output_precision_control.py +51 -0
  25. eytelwein-0.1.0/examples/features/f_round_trip_consistency.py +82 -0
  26. eytelwein-0.1.0/examples/features/g_constants_and_enums.py +59 -0
  27. eytelwein-0.1.0/examples/real_world_cross_section_flow.py +87 -0
  28. eytelwein-0.1.0/pyproject.toml +59 -0
  29. eytelwein-0.1.0/src/eytelwein/__init__.py +31 -0
  30. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/__init__.py +209 -0
  31. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/constants.py +183 -0
  32. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/__init__.py +222 -0
  33. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/_belt_tensions_and_takeup_forces.py +61 -0
  34. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/_design_layout_of_drive_system.py +79 -0
  35. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/_design_of_conveyor_belt.py +0 -0
  36. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/_distribution_of_belt_tensions_across_belt_width.py +349 -0
  37. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/_minimum_pulley_diameter.py +107 -0
  38. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/_resistance_and_power_for_steady_operations.py +176 -0
  39. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/_volume_flow_mass_flow.py +632 -0
  40. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/belt_tensions_and_takeup_forces.py +137 -0
  41. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/design_layout_of_drive_system.py +244 -0
  42. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/design_of_conveyor_belt.py +38 -0
  43. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/distribution_of_belt_tensions_across_belt_width.py +820 -0
  44. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/minimum_pulley_diameter.py +234 -0
  45. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/resistance_and_power_for_steady_operations.py +683 -0
  46. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/core/volume_flow_mass_flow.py +1175 -0
  47. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/data/minimum_pulley_diameters.csv +176 -0
  48. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/__init__.py +123 -0
  49. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/_design_layout_of_drive_system.py +314 -0
  50. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/_design_of_conveyor_belt.py +75 -0
  51. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/_distribution_of_belt_tensions_across_belt_width.py +14 -0
  52. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/_mass_inertia.py +186 -0
  53. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/_minimum_pulley_diameter.py +0 -0
  54. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/_resistance_and_power_for_steady_operations.py +24 -0
  55. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/_volume_flow_mass_flow.py +281 -0
  56. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/design_layout_of_drive_system.py +820 -0
  57. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/design_of_conveyor_belt.py +233 -0
  58. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/distribution_of_belt_tensions_across_belt_width.py +63 -0
  59. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/mass_inertia.py +391 -0
  60. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/resistance_and_power_for_steady_operations.py +39 -0
  61. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/extended/volume_flow_mass_flow.py +450 -0
  62. eytelwein-0.1.0/src/eytelwein/belt_conveyor_design/py.typed +0 -0
  63. eytelwein-0.1.0/src/eytelwein/horizontal_curves/__init__.py +68 -0
  64. eytelwein-0.1.0/src/eytelwein/horizontal_curves/core/__init__.py +50 -0
  65. eytelwein-0.1.0/src/eytelwein/horizontal_curves/core/_horizontal_curve_calculations.py +1557 -0
  66. eytelwein-0.1.0/src/eytelwein/horizontal_curves/core/horizontal_curve_calculations.py +2670 -0
  67. eytelwein-0.1.0/src/eytelwein/idler_design/__init__.py +13 -0
  68. eytelwein-0.1.0/src/eytelwein/idler_design/constants.py +0 -0
  69. eytelwein-0.1.0/src/eytelwein/idler_design/core/__init__.py +20 -0
  70. eytelwein-0.1.0/src/eytelwein/idler_design/core/_idler_rolls.py +72 -0
  71. eytelwein-0.1.0/src/eytelwein/idler_design/core/idler_rolls.py +172 -0
  72. eytelwein-0.1.0/src/eytelwein/idler_design/extended/__init__.py +0 -0
  73. eytelwein-0.1.0/src/eytelwein/idler_design/py.typed +0 -0
  74. eytelwein-0.1.0/src/eytelwein/main/__init__.py +0 -0
  75. eytelwein-0.1.0/src/eytelwein/main/constants.py +72 -0
  76. eytelwein-0.1.0/src/eytelwein/main/units.py +186 -0
  77. eytelwein-0.1.0/tests/__init__.py +3 -0
  78. eytelwein-0.1.0/tests/main/__init__.py +3 -0
  79. eytelwein-0.1.0/tests/main/test_units.py +95 -0
  80. eytelwein-0.1.0/tests/test_angle_handling.py +207 -0
  81. eytelwein-0.1.0/tests/test_belt_conveyor_design/__init__.py +0 -0
  82. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_constants.py +56 -0
  83. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_conveyor_belt.py +59 -0
  84. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/__init__.py +0 -0
  85. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test__belt_tensions_and_takeup_forces.py +102 -0
  86. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test__design_layout_of_drive_system.py +246 -0
  87. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test__distribution_of_belt_tensions_across_belt_width.py +504 -0
  88. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test__minimum_pulley_diameter.py +121 -0
  89. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test__resistance_and_power_for_steady_operations.py +544 -0
  90. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test__volume_flow_mass_flow.py +897 -0
  91. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test_belt_tensions_and_takeup_forces.py +217 -0
  92. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test_design_layout_of_drive_system.py +559 -0
  93. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test_distribution_of_belt_tensions_across_belt_width.py +642 -0
  94. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test_minimum_pulley_diameter.py +155 -0
  95. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test_resistance_and_power_for_steady_operations.py +1191 -0
  96. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_core/test_volume_flow_mass_flow.py +1128 -0
  97. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/__init__.py +0 -0
  98. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test__design_layout_of_drive_system.py +549 -0
  99. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test__design_of_conveyor_belt.py +192 -0
  100. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test__distribution_of_belt_tensions_across_belt_width.py +35 -0
  101. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test__mass_inertia.py +274 -0
  102. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test__minimum_pulley_diameter.py +37 -0
  103. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test__resistance_and_power_for_steady_operations.py +46 -0
  104. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test__volume_flow_mass_flow.py +270 -0
  105. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test_design_layout_of_drive_system.py +789 -0
  106. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test_design_of_conveyor_belt.py +460 -0
  107. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test_distribution_of_belt_tensions_across_belt_width.py +32 -0
  108. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test_mass_inertia.py +348 -0
  109. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test_resistance_and_power_for_steady_operations.py +50 -0
  110. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_extended/test_volume_flow_mass_flow.py +521 -0
  111. eytelwein-0.1.0/tests/test_belt_conveyor_design/test_public_api_belt_weight.py +89 -0
  112. eytelwein-0.1.0/tests/test_horizontal_curves/__init__.py +1 -0
  113. eytelwein-0.1.0/tests/test_horizontal_curves/test_core/__init__.py +1 -0
  114. eytelwein-0.1.0/tests/test_horizontal_curves/test_core/test__horizontal_curve_calculations.py +3960 -0
  115. eytelwein-0.1.0/tests/test_horizontal_curves/test_core/test_horizontal_curve_calculations.py +4998 -0
  116. eytelwein-0.1.0/tests/test_idler_design/__init__.py +0 -0
  117. eytelwein-0.1.0/tests/test_idler_design/test_core/__init__.py +0 -0
  118. eytelwein-0.1.0/tests/test_idler_design/test_core/test__idler_rolls.py +137 -0
  119. eytelwein-0.1.0/tests/test_idler_design/test_core/test_idler_rolls.py +175 -0
  120. eytelwein-0.1.0/tests/test_main/test_constants.py +55 -0
  121. eytelwein-0.1.0/uv.lock +724 -0
@@ -0,0 +1,7 @@
1
+ root = true
2
+
3
+ [*]
4
+ end_of_line = lf
5
+ insert_final_newline = true
6
+ trim_trailing_whitespace = true
7
+ charset = utf-8
@@ -0,0 +1,24 @@
1
+ # Auto detect text files and normalise line endings
2
+ * text=auto
3
+
4
+ # Force LF for scripts and config
5
+ *.py text eol=lf
6
+ *.yml text eol=lf
7
+ *.yaml text eol=lf
8
+ *.toml text eol=lf
9
+ *.md text eol=lf
10
+ *.txt text eol=lf
11
+ *.cfg text eol=lf
12
+ *.ini text eol=lf
13
+ *.sh text eol=lf
14
+
15
+ # Binary files
16
+ *.png binary
17
+ *.jpg binary
18
+ *.jpeg binary
19
+ *.gif binary
20
+ *.ico binary
21
+ *.pdf binary
22
+ *.zip binary
23
+ *.gz binary
24
+ *.exe binary
@@ -0,0 +1,31 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - name: Install uv
16
+ uses: astral-sh/setup-uv@v4
17
+
18
+ - name: Set up Python 3.13
19
+ run: uv python install 3.13
20
+
21
+ - name: Install dependencies
22
+ run: uv sync
23
+
24
+ - name: Lint with ruff
25
+ run: uv run ruff check src/ tests/
26
+
27
+ - name: Type check with mypy
28
+ run: uv run mypy src/
29
+
30
+ - name: Run tests
31
+ run: uv run pytest tests/ --tb=short
@@ -0,0 +1,60 @@
1
+ name: Docs
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main]
6
+ push:
7
+ branches: [main]
8
+ workflow_dispatch:
9
+
10
+ permissions:
11
+ contents: read
12
+ pages: write
13
+ id-token: write
14
+
15
+ concurrency:
16
+ group: pages
17
+ cancel-in-progress: false
18
+
19
+ jobs:
20
+ build-docs:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - name: Install uv
26
+ uses: astral-sh/setup-uv@v4
27
+
28
+ - name: Set up Python 3.13
29
+ run: uv python install 3.13
30
+
31
+ - name: Install dependencies
32
+ run: uv sync
33
+
34
+ - name: Generate API docs
35
+ run: uv run sphinx-apidoc -o docs/source src/eytelwein --force --separate
36
+
37
+ - name: Build Sphinx HTML
38
+ run: uv run sphinx-build -b html docs/source docs/_build/html
39
+
40
+ - name: Upload Pages artifact
41
+ if: |
42
+ (github.event_name == 'push' && github.ref == 'refs/heads/main') ||
43
+ (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
44
+ uses: actions/upload-pages-artifact@v3
45
+ with:
46
+ path: docs/_build/html
47
+
48
+ deploy-pages:
49
+ if: |
50
+ (github.event_name == 'push' && github.ref == 'refs/heads/main') ||
51
+ (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
52
+ runs-on: ubuntu-latest
53
+ needs: build-docs
54
+ environment:
55
+ name: github-pages
56
+ url: ${{ steps.deployment.outputs.page_url }}
57
+ steps:
58
+ - name: Deploy to GitHub Pages
59
+ id: deployment
60
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,27 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ environment: pypi
12
+ permissions:
13
+ id-token: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Install uv
18
+ uses: astral-sh/setup-uv@v4
19
+
20
+ - name: Set up Python 3.13
21
+ run: uv python install 3.13
22
+
23
+ - name: Build package
24
+ run: uv build
25
+
26
+ - name: Publish to PyPI
27
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,153 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
98
+ __pypackages__/
99
+
100
+ # Celery stuff
101
+ celerybeat-schedule
102
+ celerybeat.pid
103
+
104
+ # SageMath parsed files
105
+ *.sage.py
106
+
107
+ # Environments
108
+ .env
109
+ .venv
110
+ env/
111
+ venv/
112
+ ENV/
113
+ env.bak/
114
+ venv.bak/
115
+
116
+ # Spyder project settings
117
+ .spyderproject
118
+ .spyproject
119
+
120
+ # Rope project settings
121
+ .ropeproject
122
+
123
+ # mkdocs documentation
124
+ /site
125
+
126
+ # mypy
127
+ .mypy_cache/
128
+ .dmypy.json
129
+ dmypy.json
130
+
131
+ # Pyre type checker
132
+ .pyre/
133
+
134
+ # pytype static type analyzer
135
+ .pytype/
136
+
137
+ # Cython debug symbols
138
+ cython_debug/
139
+
140
+ # PyCharm
141
+ .idea/
142
+ *.iml
143
+
144
+ # VisualStudioCode
145
+ .vscode/* # Maybe .vscode/**/* instead - see comments
146
+ !.vscode/settings.json
147
+ !.vscode/tasks.json
148
+ !.vscode/launch.json
149
+ !.vscode/extensions.json
150
+
151
+ # VisualStudioCode Patch
152
+ # Ignore all local history of files
153
+ **/.history
@@ -0,0 +1,46 @@
1
+ # Pre-commit hook configuration
2
+ # LOCAL: Runs on changed files only (via 'files' patterns) for fast feedback
3
+ # CI: Runs on all files with --all-files flag to ensure master quality
4
+
5
+ default_stages: [pre-commit]
6
+
7
+ repos:
8
+
9
+ - repo: https://github.com/commitizen-tools/commitizen
10
+ rev: v4.4.1
11
+ hooks:
12
+ - id: commitizen
13
+ stages: [commit-msg]
14
+
15
+ - repo: https://github.com/pre-commit/mirrors-mypy
16
+ rev: v1.15.0
17
+ hooks:
18
+ - id: mypy
19
+ files: ^src/.*\.py$
20
+
21
+ - repo: https://github.com/asottile/pyupgrade
22
+ rev: v3.19.1
23
+ hooks:
24
+ - id: pyupgrade
25
+ args: [--py313-plus]
26
+
27
+ - repo: https://github.com/astral-sh/ruff-pre-commit
28
+ rev: v0.11.12
29
+ hooks:
30
+ - id: ruff
31
+ args: [ --fix ]
32
+ files: ^src/.*\.py$
33
+ - id: ruff-format
34
+ files: ^src/.*\.py$
35
+
36
+ - repo: https://github.com/pre-commit/pre-commit-hooks
37
+ rev: v5.0.0
38
+ hooks:
39
+ - id: check-toml
40
+ - id: check-yaml
41
+ - id: check-json
42
+ - id: end-of-file-fixer
43
+ - id: trailing-whitespace
44
+ - id: check-merge-conflict
45
+ - id: check-case-conflict
46
+ - id: check-added-large-files
@@ -0,0 +1 @@
1
+ 3.13
@@ -0,0 +1,79 @@
1
+ # Contributing to eytelwein
2
+
3
+ ## Prerequisites
4
+
5
+ - Python 3.13+
6
+ - [uv](https://docs.astral.sh/uv/) for dependency management
7
+ - Git
8
+
9
+ ## Setup
10
+
11
+ ```powershell
12
+ git clone <repo-url>
13
+ cd eytelwein
14
+ uv sync
15
+ ```
16
+
17
+ ## Development Workflow
18
+
19
+ 1. Create a feature branch:
20
+ ```powershell
21
+ git checkout -b feat/your-feature
22
+ ```
23
+
24
+ 2. Install pre-commit hooks:
25
+ ```powershell
26
+ uv run pre-commit install
27
+ ```
28
+
29
+ 3. Run tests:
30
+ ```powershell
31
+ uv run pytest
32
+ ```
33
+
34
+ 4. Run linting and formatting:
35
+ ```powershell
36
+ uv run ruff check --fix src/ tests/
37
+ uv run ruff format src/ tests/
38
+ ```
39
+
40
+ 5. Run type checking:
41
+ ```powershell
42
+ uv run mypy src/
43
+ ```
44
+
45
+ 6. Commit using [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/):
46
+ ```powershell
47
+ git commit -m "feat: add new calculation for X"
48
+ ```
49
+
50
+ ## Code Conventions
51
+
52
+ - **Quantity-only API**: public functions accept and return `pint.Quantity`, never bare floats
53
+ - **Private/public pattern**: `_foo.py` contains bare math, `foo.py` wraps it with unit handling
54
+ - **No early rounding**: preserve precision through calculation chains
55
+ - **Type hints**: required on all function signatures
56
+ - **PEP 8**: enforced via ruff
57
+
58
+ ## Commit Message Types
59
+
60
+ | Type | Description | Version Bump |
61
+ |------|-------------|--------------|
62
+ | `fix:` | Bug fix | PATCH |
63
+ | `feat:` | New feature | MINOR |
64
+ | `feat!:` / `BREAKING CHANGE:` | Breaking change | MAJOR |
65
+ | `docs:` | Documentation | No bump |
66
+ | `refactor:` | Refactoring | PATCH |
67
+ | `test:` | Tests | PATCH |
68
+ | `ci:` | CI changes | PATCH |
69
+ | `chore:` | Maintenance | PATCH |
70
+
71
+ ## Error: Python or dependency not installed
72
+ There may be a mixup of legacy python versions, system's python versions or virtual environments. However, UV is able to fix this automatically:
73
+ - Delete the ".venv" folder.
74
+ - Run:
75
+ ```powershell
76
+ uv run MYAPP.py
77
+ ```
78
+ UV will then create a new ".venv"-folder with a new virtual enviroment and will install all dependencies according to the "pyproject.toml" configuration file of your application.
79
+ Once installed, UV will go on running your app. Afterwards, you can repeat the above command to re-run the app.
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2025 Voith Group
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
eytelwein-0.1.0/NOTICE ADDED
@@ -0,0 +1,5 @@
1
+ Eytelwein
2
+ Copyright 2025 Voith Group (J.M. Voith SE & Co. KG)
3
+
4
+ This product includes software developed at Voith Group.
5
+ https://voith.com