torch-batteries 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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Michał Szczygieł, Arkadiusz Paterak, Antoni Zięciak
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: torch-batteries
3
+ Version: 0.1.0
4
+ Summary: A lightweight Python package that supplies batteries-included abstractions for PyTorch workflows
5
+ Author: Michal Szczygiel, Arkadiusz Paterak, Antoni Zięciak
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/michalszc/torch-batteries
8
+ Project-URL: Repository, https://github.com/michalszc/torch-batteries
9
+ Project-URL: Issues, https://github.com/michalszc/torch-batteries/issues
10
+ Keywords: pytorch,machine learning,deep learning,training,evaluation
11
+ Classifier: Development Status :: 1 - Planning
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Requires-Python: >=3.12
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: torch>=2.9.0
22
+ Dynamic: license-file
23
+
24
+ # torch-batteries
25
+
26
+ <p align="center">
27
+ <a href="https://pypi.org/project/torch-batteries/"><img src="https://img.shields.io/pypi/v/torch-batteries" alt="PyPI version"></a>
28
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
29
+ </p>
30
+
31
+ <p align="center">
32
+ <img src="assets/logo.png" alt="torch-batteries" style="max-height:512px; height:auto;" />
33
+ <br/>
34
+ <em>Image generated by AI</em>
35
+ </p>
36
+
37
+ A lightweight Python package that supplies batteries-included abstractions for:
38
+ - Data loading pipelines
39
+ - Model training loops
40
+ - Evaluation workflows
41
+ - Metrics computation
42
+ - Seamless Weights & Biases tracking
43
+
44
+ Designed to reduce boilerplate and standardize experiment code.
45
+
46
+ ## Installation
47
+
48
+ ```bash
49
+ pip install torch-batteries
50
+ ```
@@ -0,0 +1,27 @@
1
+ # torch-batteries
2
+
3
+ <p align="center">
4
+ <a href="https://pypi.org/project/torch-batteries/"><img src="https://img.shields.io/pypi/v/torch-batteries" alt="PyPI version"></a>
5
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
6
+ </p>
7
+
8
+ <p align="center">
9
+ <img src="assets/logo.png" alt="torch-batteries" style="max-height:512px; height:auto;" />
10
+ <br/>
11
+ <em>Image generated by AI</em>
12
+ </p>
13
+
14
+ A lightweight Python package that supplies batteries-included abstractions for:
15
+ - Data loading pipelines
16
+ - Model training loops
17
+ - Evaluation workflows
18
+ - Metrics computation
19
+ - Seamless Weights & Biases tracking
20
+
21
+ Designed to reduce boilerplate and standardize experiment code.
22
+
23
+ ## Installation
24
+
25
+ ```bash
26
+ pip install torch-batteries
27
+ ```
@@ -0,0 +1,127 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "torch-batteries"
7
+ version = "0.1.0"
8
+ description = "A lightweight Python package that supplies batteries-included abstractions for PyTorch workflows"
9
+ readme = "README.md"
10
+ requires-python = ">=3.12"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [
14
+ {name = "Michal Szczygiel"},
15
+ {name = "Arkadiusz Paterak"},
16
+ {name = "Antoni Zięciak"}
17
+ ]
18
+ keywords = ["pytorch", "machine learning", "deep learning", "training", "evaluation"]
19
+ classifiers = [
20
+ "Development Status :: 1 - Planning",
21
+ "Intended Audience :: Developers",
22
+ "Intended Audience :: Science/Research",
23
+ "Programming Language :: Python :: 3",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
26
+ "Topic :: Software Development :: Libraries :: Python Modules",
27
+ ]
28
+
29
+ dependencies = [
30
+ "torch>=2.9.0",
31
+ ]
32
+
33
+ [dependency-groups]
34
+ test = [
35
+ "pytest>=7.0.0",
36
+ "pytest-cov>=4.0.0",
37
+ "pytest-mock>=3.10.0",
38
+ ]
39
+ lint = [
40
+ "ruff>=0.1.0",
41
+ "mypy>=1.0.0",
42
+ "pre-commit>=3.0.0",
43
+ ]
44
+ build = [
45
+ "build>=1.0.0",
46
+ "twine>=4.0.0",
47
+ ]
48
+ dev = [
49
+ {include-group = "test"},
50
+ {include-group = "lint"},
51
+ {include-group = "build"},
52
+ ]
53
+
54
+ [project.urls]
55
+ Homepage = "https://github.com/michalszc/torch-batteries"
56
+ Repository = "https://github.com/michalszc/torch-batteries"
57
+ Issues = "https://github.com/michalszc/torch-batteries/issues"
58
+
59
+ [tool.setuptools.packages.find]
60
+ where = ["src"]
61
+
62
+ [tool.setuptools.package-dir]
63
+ "" = "src"
64
+
65
+ [tool.ruff]
66
+ line-length = 88
67
+ target-version = "py312"
68
+
69
+ [tool.ruff.lint]
70
+ # Enable pycodestyle (E, W), Pyflakes (F), isort (I), and other useful rules
71
+ select = ["E", "W", "F", "I", "N", "UP", "YTT", "BLE", "FBT", "B", "A", "COM", "C4", "DTZ", "T10", "EM", "EXE", "ISC", "ICN", "G", "INP", "PIE", "T20", "PYI", "PT", "Q", "RSE", "RET", "SLF", "SIM", "TID", "TCH", "ARG", "PTH", "ERA", "PD", "PGH", "PL", "TRY", "NPY", "RUF"]
72
+ ignore = [
73
+ # Allow assert statements (needed for tests)
74
+ "S101",
75
+ # Allow magic values in comparisons (common in tests)
76
+ "PLR2004",
77
+ # Avoid conflicts with formatter
78
+ "COM812",
79
+ ]
80
+
81
+ # Allow autofix for all enabled rules
82
+ fixable = ["ALL"]
83
+ unfixable = []
84
+
85
+ # Per-file ignores for test files
86
+ [tool.ruff.lint.per-file-ignores]
87
+ "tests/*" = ["S101", "PLR2004", "ARG"] # Allow asserts, magic values, and unused args in tests
88
+
89
+ [tool.ruff.format]
90
+ # Use double quotes for strings
91
+ quote-style = "double"
92
+ # Indent with spaces
93
+ indent-style = "space"
94
+ # Respect magic trailing commas
95
+ skip-magic-trailing-comma = false
96
+ # Automatically detect line ending
97
+ line-ending = "auto"
98
+
99
+ [tool.mypy]
100
+ python_version = "3.12"
101
+ warn_return_any = true
102
+ warn_unused_configs = true
103
+ disallow_untyped_defs = true
104
+ disallow_incomplete_defs = true
105
+ check_untyped_defs = true
106
+ disallow_untyped_decorators = true
107
+ no_implicit_optional = true
108
+ warn_redundant_casts = true
109
+ warn_unused_ignores = true
110
+ warn_no_return = true
111
+ warn_unreachable = true
112
+ strict_equality = true
113
+
114
+ [tool.pytest.ini_options]
115
+ minversion = "7.0"
116
+ addopts = "-ra -q --strict-markers --strict-config"
117
+ testpaths = ["tests"]
118
+ python_files = ["test_*.py", "*_test.py"]
119
+ python_classes = ["Test*"]
120
+ python_functions = ["test_*"]
121
+
122
+ [tool.coverage.run]
123
+ source = ["src/torch_batteries"]
124
+ omit = [
125
+ "*/tests/*",
126
+ "*/__pycache__/*",
127
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,6 @@
1
+ """
2
+ torch-batteries: A lightweight Python package for PyTorch workflow abstractions.
3
+ """
4
+
5
+ __version__ = "0.1.0"
6
+ __author__ = ["Michal Szczygiel", "Arkadiusz Paterak", "Antoni Zięciak"]
@@ -0,0 +1,50 @@
1
+ Metadata-Version: 2.4
2
+ Name: torch-batteries
3
+ Version: 0.1.0
4
+ Summary: A lightweight Python package that supplies batteries-included abstractions for PyTorch workflows
5
+ Author: Michal Szczygiel, Arkadiusz Paterak, Antoni Zięciak
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/michalszc/torch-batteries
8
+ Project-URL: Repository, https://github.com/michalszc/torch-batteries
9
+ Project-URL: Issues, https://github.com/michalszc/torch-batteries/issues
10
+ Keywords: pytorch,machine learning,deep learning,training,evaluation
11
+ Classifier: Development Status :: 1 - Planning
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Requires-Python: >=3.12
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: torch>=2.9.0
22
+ Dynamic: license-file
23
+
24
+ # torch-batteries
25
+
26
+ <p align="center">
27
+ <a href="https://pypi.org/project/torch-batteries/"><img src="https://img.shields.io/pypi/v/torch-batteries" alt="PyPI version"></a>
28
+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="License: MIT"></a>
29
+ </p>
30
+
31
+ <p align="center">
32
+ <img src="assets/logo.png" alt="torch-batteries" style="max-height:512px; height:auto;" />
33
+ <br/>
34
+ <em>Image generated by AI</em>
35
+ </p>
36
+
37
+ A lightweight Python package that supplies batteries-included abstractions for:
38
+ - Data loading pipelines
39
+ - Model training loops
40
+ - Evaluation workflows
41
+ - Metrics computation
42
+ - Seamless Weights & Biases tracking
43
+
44
+ Designed to reduce boilerplate and standardize experiment code.
45
+
46
+ ## Installation
47
+
48
+ ```bash
49
+ pip install torch-batteries
50
+ ```
@@ -0,0 +1,10 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/torch_batteries/__init__.py
5
+ src/torch_batteries.egg-info/PKG-INFO
6
+ src/torch_batteries.egg-info/SOURCES.txt
7
+ src/torch_batteries.egg-info/dependency_links.txt
8
+ src/torch_batteries.egg-info/requires.txt
9
+ src/torch_batteries.egg-info/top_level.txt
10
+ tests/test_package.py
@@ -0,0 +1 @@
1
+ torch_batteries
@@ -0,0 +1,18 @@
1
+ """
2
+ Dummy tests for torch_batteries package.
3
+ """
4
+
5
+
6
+ def test_dummy_pass() -> None:
7
+ """Dummy test that always passes."""
8
+ assert True
9
+
10
+
11
+ def test_dummy_math() -> None:
12
+ """Dummy test with simple math."""
13
+ assert 1 + 1 == 2
14
+
15
+
16
+ def test_dummy_string() -> None:
17
+ """Dummy test with string operations."""
18
+ assert "hello".upper() == "HELLO"