trainite 0.0.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.
trainite-0.0.0/LICENSE ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2018-present, PyTorch-Ignite team
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ * Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ * Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ * Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.4
2
+ Name: trainite
3
+ Version: 0.0.0
4
+ Summary: Model training toolkit with PyTorch-Ignite.
5
+ Project-URL: Homepage, https://pytorch-ignite.ai
6
+ Project-URL: Repository, https://github.com/pytorch-ignite/trainite
7
+ Author-email: PyTorch-Ignite Team <contact@pytorch-ignite.ai>
8
+ License-Expression: BSD-3-Clause
9
+ License-File: LICENSE
10
+ Classifier: Programming Language :: Python :: 3
11
+ Requires-Python: <=3.14,>=3.10
12
+ Requires-Dist: pytorch-ignite<1,>=0.5.3
13
+ Description-Content-Type: text/markdown
14
+
15
+ # Trainite
@@ -0,0 +1 @@
1
+ # Trainite
@@ -0,0 +1,150 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.24.2"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "trainite"
7
+ authors = [
8
+ {name = "PyTorch-Ignite Team", email = "contact@pytorch-ignite.ai"},
9
+ ]
10
+ description = "Model training toolkit with PyTorch-Ignite."
11
+ readme = "README.md"
12
+ license = "BSD-3-Clause"
13
+ license-files = ["LICENSE"]
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ ]
17
+ requires-python = ">=3.10,<=3.14"
18
+ dependencies = [
19
+ "pytorch-ignite>=0.5.3,<1",
20
+ ]
21
+ dynamic = ["version"]
22
+
23
+ [project.urls]
24
+ Homepage = "https://pytorch-ignite.ai"
25
+ Repository = "https://github.com/pytorch-ignite/trainite"
26
+
27
+ [tool.hatch.version]
28
+ path = "trainite/__init__.py"
29
+
30
+ [tool.hatch.build.targets.wheel]
31
+ packages = ["trainite"]
32
+ only-include = ["trainite"]
33
+ artifacts = [
34
+ "*.typed",
35
+ ]
36
+
37
+ [tool.ruff]
38
+ src = ["trainite", "examples", "tests"]
39
+
40
+ # Exclude a variety of commonly ignored directories.
41
+ exclude = [
42
+ ".bzr",
43
+ ".direnv",
44
+ ".eggs",
45
+ ".git",
46
+ ".git-rewrite",
47
+ ".hg",
48
+ ".ipynb_checkpoints",
49
+ ".mypy_cache",
50
+ ".nox",
51
+ ".pants.d",
52
+ ".pyenv",
53
+ ".pytest_cache",
54
+ ".pytype",
55
+ ".ruff_cache",
56
+ ".svn",
57
+ ".tox",
58
+ ".venv",
59
+ ".vscode",
60
+ "__pypackages__",
61
+ "_build",
62
+ "buck-out",
63
+ "build",
64
+ "dist",
65
+ "node_modules",
66
+ "site-packages",
67
+ "venv",
68
+ "assets",
69
+ ]
70
+
71
+ # Same as Black.
72
+ line-length = 120
73
+ indent-width = 4
74
+
75
+ # Assume Python 3.11
76
+ target-version = "py311"
77
+
78
+ [tool.ruff.lint]
79
+ # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
80
+ # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
81
+ # McCabe complexity (`C901`) by default.
82
+ select = ["E4", "E7", "E9", "F"]
83
+ ignore = ["E402", "E713", "E721", "E722", "E203", "E231", "F403", "F841"] # "W503",
84
+
85
+ # Allow fix for all enabled rules (when `--fix`) is provided.
86
+ fixable = ["ALL"]
87
+ unfixable = []
88
+
89
+ # Allow unused variables when underscore-prefixed.
90
+ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
91
+
92
+ [tool.ruff.lint.isort]
93
+ known-third-party = ["clearml", "dill", "matplotlib", "numpy", "pkg_resources", "pytest", "requests", "setuptools", "skimage", "sklearn", "torch", "torchvision"]
94
+
95
+ [tool.ruff.lint.per-file-ignores]
96
+ "__init__.py" = ["F401", ]
97
+
98
+ [tool.ruff.format]
99
+ # Like Black, use double quotes for strings.
100
+ quote-style = "double"
101
+
102
+ # Like Black, indent with spaces, rather than tabs.
103
+ indent-style = "space"
104
+
105
+ # Like Black, respect magic trailing commas.
106
+ skip-magic-trailing-comma = false
107
+
108
+ # Like Black, automatically detect the appropriate line ending.
109
+ line-ending = "auto"
110
+
111
+ # Enable auto-formatting of code examples in docstrings. Markdown,
112
+ # reStructuredText code/literal blocks and doctests are all supported.
113
+ #
114
+ # This is currently disabled by default, but it is planned for this
115
+ # to be opt-out in the future.
116
+ docstring-code-format = false
117
+
118
+ # Set the line length limit used when formatting code snippets in
119
+ # docstrings.
120
+ #
121
+ # This only has an effect when the `docstring-code-format` setting is
122
+ # enabled.
123
+ docstring-code-line-length = "dynamic"
124
+
125
+ [tool.black]
126
+ line-length = 120
127
+ target-version = ['py311', 'py313']
128
+ include = '\.pyi?$'
129
+ exclude = '''
130
+
131
+ (
132
+ /(
133
+ \.eggs # exclude a few common directories in the
134
+ | \.git # root of the project
135
+ | \.hg
136
+ | \.mypy_cache
137
+ | \.tox
138
+ | \.venv
139
+ | _build
140
+ | buck-out
141
+ | build
142
+ | dist
143
+ | assets
144
+ )/
145
+ | foo.py # also separately exclude a file named foo.py in
146
+ # the root of the project
147
+ )
148
+ '''
149
+
150
+ addopts = "--color=yes"
@@ -0,0 +1 @@
1
+ __version__ = "0.0.0"