exxec 0.0.1__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.
exxec-0.0.1/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024, Philipp Temminghoff
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.
22
+
exxec-0.0.1/PKG-INFO ADDED
@@ -0,0 +1,59 @@
1
+ Metadata-Version: 2.4
2
+ Name: exxec
3
+ Version: 0.0.1
4
+ Summary: Execution environments
5
+ Keywords:
6
+ Author: Philipp Temminghoff
7
+ Author-email: Philipp Temminghoff <philipptemminghoff@googlemail.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Framework :: Pydantic
12
+ Classifier: Framework :: Pydantic :: 2
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Documentation
21
+ Classifier: Topic :: Software Development
22
+ Classifier: Topic :: Utilities
23
+ Classifier: Typing :: Typed
24
+ Requires-Dist: pydantic
25
+ Requires-Dist: schemez
26
+ Requires-Python: >=3.13
27
+ Project-URL: Code coverage, https://app.codecov.io/gh/phil65/exxec
28
+ Project-URL: Discussions, https://github.com/phil65/exxec/discussions
29
+ Project-URL: Documentation, https://phil65.github.io/exxec/
30
+ Project-URL: Issues, https://github.com/phil65/exxec/issues
31
+ Project-URL: Source, https://github.com/phil65/exxec
32
+ Description-Content-Type: text/markdown
33
+
34
+ # Exxec
35
+
36
+ [![PyPI License](https://img.shields.io/pypi/l/exxec.svg)](https://pypi.org/project/exxec/)
37
+ [![Package status](https://img.shields.io/pypi/status/exxec.svg)](https://pypi.org/project/exxec/)
38
+ [![Monthly downloads](https://img.shields.io/pypi/dm/exxec.svg)](https://pypi.org/project/exxec/)
39
+ [![Distribution format](https://img.shields.io/pypi/format/exxec.svg)](https://pypi.org/project/exxec/)
40
+ [![Wheel availability](https://img.shields.io/pypi/wheel/exxec.svg)](https://pypi.org/project/exxec/)
41
+ [![Python version](https://img.shields.io/pypi/pyversions/exxec.svg)](https://pypi.org/project/exxec/)
42
+ [![Implementation](https://img.shields.io/pypi/implementation/exxec.svg)](https://pypi.org/project/exxec/)
43
+ [![Releases](https://img.shields.io/github/downloads/phil65/exxec/total.svg)](https://github.com/phil65/exxec/releases)
44
+ [![Github Contributors](https://img.shields.io/github/contributors/phil65/exxec)](https://github.com/phil65/exxec/graphs/contributors)
45
+ [![Github Discussions](https://img.shields.io/github/discussions/phil65/exxec)](https://github.com/phil65/exxec/discussions)
46
+ [![Github Forks](https://img.shields.io/github/forks/phil65/exxec)](https://github.com/phil65/exxec/forks)
47
+ [![Github Issues](https://img.shields.io/github/issues/phil65/exxec)](https://github.com/phil65/exxec/issues)
48
+ [![Github Issues](https://img.shields.io/github/issues-pr/phil65/exxec)](https://github.com/phil65/exxec/pulls)
49
+ [![Github Watchers](https://img.shields.io/github/watchers/phil65/exxec)](https://github.com/phil65/exxec/watchers)
50
+ [![Github Stars](https://img.shields.io/github/stars/phil65/exxec)](https://github.com/phil65/exxec/stars)
51
+ [![Github Repository size](https://img.shields.io/github/repo-size/phil65/exxec)](https://github.com/phil65/exxec)
52
+ [![Github last commit](https://img.shields.io/github/last-commit/phil65/exxec)](https://github.com/phil65/exxec/commits)
53
+ [![Github release date](https://img.shields.io/github/release-date/phil65/exxec)](https://github.com/phil65/exxec/releases)
54
+ [![Github language count](https://img.shields.io/github/languages/count/phil65/exxec)](https://github.com/phil65/exxec)
55
+ [![Github commits this month](https://img.shields.io/github/commit-activity/m/phil65/exxec)](https://github.com/phil65/exxec)
56
+ [![Package status](https://codecov.io/gh/phil65/exxec/branch/main/graph/badge.svg)](https://codecov.io/gh/phil65/exxec/)
57
+ [![PyUp](https://pyup.io/repos/github/phil65/exxec/shield.svg)](https://pyup.io/repos/github/phil65/exxec/)
58
+
59
+ [Read the documentation!](https://phil65.github.io/exxec/)
exxec-0.0.1/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Exxec
2
+
3
+ [![PyPI License](https://img.shields.io/pypi/l/exxec.svg)](https://pypi.org/project/exxec/)
4
+ [![Package status](https://img.shields.io/pypi/status/exxec.svg)](https://pypi.org/project/exxec/)
5
+ [![Monthly downloads](https://img.shields.io/pypi/dm/exxec.svg)](https://pypi.org/project/exxec/)
6
+ [![Distribution format](https://img.shields.io/pypi/format/exxec.svg)](https://pypi.org/project/exxec/)
7
+ [![Wheel availability](https://img.shields.io/pypi/wheel/exxec.svg)](https://pypi.org/project/exxec/)
8
+ [![Python version](https://img.shields.io/pypi/pyversions/exxec.svg)](https://pypi.org/project/exxec/)
9
+ [![Implementation](https://img.shields.io/pypi/implementation/exxec.svg)](https://pypi.org/project/exxec/)
10
+ [![Releases](https://img.shields.io/github/downloads/phil65/exxec/total.svg)](https://github.com/phil65/exxec/releases)
11
+ [![Github Contributors](https://img.shields.io/github/contributors/phil65/exxec)](https://github.com/phil65/exxec/graphs/contributors)
12
+ [![Github Discussions](https://img.shields.io/github/discussions/phil65/exxec)](https://github.com/phil65/exxec/discussions)
13
+ [![Github Forks](https://img.shields.io/github/forks/phil65/exxec)](https://github.com/phil65/exxec/forks)
14
+ [![Github Issues](https://img.shields.io/github/issues/phil65/exxec)](https://github.com/phil65/exxec/issues)
15
+ [![Github Issues](https://img.shields.io/github/issues-pr/phil65/exxec)](https://github.com/phil65/exxec/pulls)
16
+ [![Github Watchers](https://img.shields.io/github/watchers/phil65/exxec)](https://github.com/phil65/exxec/watchers)
17
+ [![Github Stars](https://img.shields.io/github/stars/phil65/exxec)](https://github.com/phil65/exxec/stars)
18
+ [![Github Repository size](https://img.shields.io/github/repo-size/phil65/exxec)](https://github.com/phil65/exxec)
19
+ [![Github last commit](https://img.shields.io/github/last-commit/phil65/exxec)](https://github.com/phil65/exxec/commits)
20
+ [![Github release date](https://img.shields.io/github/release-date/phil65/exxec)](https://github.com/phil65/exxec/releases)
21
+ [![Github language count](https://img.shields.io/github/languages/count/phil65/exxec)](https://github.com/phil65/exxec)
22
+ [![Github commits this month](https://img.shields.io/github/commit-activity/m/phil65/exxec)](https://github.com/phil65/exxec)
23
+ [![Package status](https://codecov.io/gh/phil65/exxec/branch/main/graph/badge.svg)](https://codecov.io/gh/phil65/exxec/)
24
+ [![PyUp](https://pyup.io/repos/github/phil65/exxec/shield.svg)](https://pyup.io/repos/github/phil65/exxec/)
25
+
26
+ [Read the documentation!](https://phil65.github.io/exxec/)
@@ -0,0 +1,270 @@
1
+ #:tombi schema.strict = false
2
+
3
+ [project]
4
+ name = "exxec"
5
+ version = "0.0.1"
6
+ description = "Execution environments"
7
+ readme = "README.md"
8
+ requires-python = ">=3.13"
9
+ license = "MIT"
10
+ license-files = ["LICENSE"]
11
+ authors = [
12
+ { name = "Philipp Temminghoff", email = "philipptemminghoff@googlemail.com" },
13
+ ]
14
+ keywords = []
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Framework :: Pydantic",
18
+ "Framework :: Pydantic :: 2",
19
+ "Intended Audience :: Developers",
20
+ "Operating System :: OS Independent",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3 :: Only",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Programming Language :: Python :: 3.13",
25
+ "Programming Language :: Python :: 3.14",
26
+ "Topic :: Documentation",
27
+ "Topic :: Software Development",
28
+ "Topic :: Utilities",
29
+ "Typing :: Typed",
30
+ ]
31
+ dependencies = [
32
+ "pydantic",
33
+ "schemez",
34
+ # Only add below (Copier)
35
+ ]
36
+
37
+ [project.urls]
38
+ "Code coverage" = "https://app.codecov.io/gh/phil65/exxec"
39
+ Discussions = "https://github.com/phil65/exxec/discussions"
40
+ Documentation = "https://phil65.github.io/exxec/"
41
+ Issues = "https://github.com/phil65/exxec/issues"
42
+ Source = "https://github.com/phil65/exxec"
43
+
44
+ [dependency-groups]
45
+ dev = [
46
+ "devtools",
47
+ "pyreadline3",
48
+ "pytest",
49
+ "pytest-cov",
50
+ # Only add below (Copier)
51
+ ]
52
+ benchmark = ["pyinstrument"]
53
+ docs = [
54
+ "mkdocs-material",
55
+ "mkdocs-mknodes",
56
+ # Only add below (Copier)
57
+ ]
58
+ lint = [
59
+ "mypy; python_version >= '3.14'",
60
+ "mypy[faster-cache]; python_version < '3.14'",
61
+ "ruff",
62
+ # Only add below (Copier)
63
+ ]
64
+
65
+ [build-system]
66
+ requires = ["uv_build>=0.8.22"]
67
+ build-backend = "uv_build"
68
+
69
+ [tool.coverage.report]
70
+ exclude_lines = [
71
+ "pragma: no cover",
72
+ "if TYPE_CHECKING:",
73
+ "@overload",
74
+ "except ImportError",
75
+ 'if __name__ == "__main__":',
76
+ ]
77
+
78
+ [tool.mknodes]
79
+ allowed-commit-types = [
80
+ "fix",
81
+ "feat",
82
+ "refactor",
83
+ "docs",
84
+ "test",
85
+ "build",
86
+ "chore",
87
+ ]
88
+ docstring-style = "google"
89
+
90
+ [tool.mypy]
91
+ python_version = "3.13"
92
+ disable_error_code = ["misc", "import"]
93
+ pretty = true
94
+ check_untyped_defs = true
95
+ exclude = ["venv/", ".venv/", "tests/"]
96
+ plugins = ["pydantic.mypy"]
97
+
98
+ [tool.pyright]
99
+ venvPath = "."
100
+ venv = ".venv"
101
+ pythonVersion = "3.13"
102
+ pythonPlatform = "All"
103
+ typeCheckingMode = "basic"
104
+ deprecateTypingAliases = true
105
+ reportMissingTypeStubs = false
106
+ reportUnusedCallResult = false
107
+ reportUnknownVariableType = false
108
+ reportAny = false
109
+ reportImplicitOverride = false
110
+ reportUnusedFunction = false
111
+ reportImplicitStringConcatenation = false
112
+ reportIgnoreCommentWithoutRule = false
113
+ reportUnannotatedClassAttribute = false
114
+ reportSelfClsParameterName = false
115
+ reportPrivateImportUsage = false
116
+
117
+ [tool.pytest]
118
+ log_cli = true
119
+ log_date_format = "%Y-%m-%d %H:%M:%S"
120
+ log_format = "%(asctime)s %(levelname)s %(message)s"
121
+ minversion = "9.0"
122
+ testpaths = ["tests/"]
123
+ asyncio_mode = "auto"
124
+
125
+ [tool.ruff]
126
+ line-length = 100
127
+ extend-exclude = ["docs"]
128
+ target-version = "py313"
129
+
130
+ [tool.ruff.lint]
131
+ future-annotations = true
132
+ select = [
133
+ "A", # Flake8-builtins
134
+ # "ANN", # Flake8-Annotations
135
+ # "ASYNC", # Flake8-Async
136
+ # "ARG", # # Flake8-Unused-Arguments
137
+ "B", # flake8-bugbear
138
+ "BLE", # Flake8-blind-except
139
+ "C",
140
+ "C4", # flake8-comprehensions
141
+ # "C90", # MCCabe
142
+ "COM", # Flake8-commas
143
+ # "CPY", # Copyright-related rules
144
+ "D", # PyDocStyle
145
+ # "DTZ", # Flake8- Datetimez
146
+ "E", # PyCodeStyle Error
147
+ "EM", # flake8-errmsg
148
+ # "ERA", # Eradicate
149
+ "EXE", # flake8-executable
150
+ "F", # PyFlakes
151
+ "FA", # flake8-future-annotations
152
+ # "FBT", # flake8-boolean-trap
153
+ # "FIX", # flake8-fixme
154
+ "FLY", # flynt
155
+ "G", # flake8-logging-format
156
+ "I", # ISort
157
+ "ICN", # Flake8-import-conventions
158
+ "INP", # flake8-no-pep420
159
+ "INT", # flake8-gettext
160
+ "ISC", # flake8-implicit-str-concat
161
+ "N", # pep8-naming
162
+ # "NPY", # numpy-specific rules
163
+ # "PD", # pandas-vet
164
+ "PERF", # perflint
165
+ # "PGH", # pygrep-hooks
166
+ "PIE", # flake8-pie
167
+ "PLE", # PyLint Error
168
+ "PLC", # PyLint convention
169
+ # "PLW", # PyLint Warning
170
+ "PLR", # PyLint refactor
171
+ "PT", # flake8-pytest-style
172
+ "PTH", # flake8-use-pathlib
173
+ "PYI", # flake8-pyi
174
+ "Q", # flake8-quotes
175
+ "RET", # flake8-return
176
+ "RSE", # flake8-raise
177
+ "RUF", # ruff-specific rules
178
+ # "S", # flake8-bandit
179
+ "SIM", # flake8-simplify
180
+ "SLF", # flake8-self
181
+ "SLOT", # flake8-slots
182
+ # "T",
183
+ # "TD", # flake8-todos
184
+ "T10", # flake8-debugger
185
+ # "T20", # flake8-print
186
+ "TC", # flake8-type-checking
187
+ "TID", # flake8-tidy-imports
188
+ "TRY", # tryceratops
189
+ "UP", # PyUpgrade
190
+ "W", # PyCodeStyle warning
191
+ "YTT", # flake8-2020
192
+ ]
193
+ ignore = [
194
+ "C408", # Unnecessary {obj_type} call (rewrite as a literal)
195
+ "B905", # zip() without an explicit strict= parameter
196
+ "C901", # {name} is too complex ({complexity} > {max_complexity})
197
+ "COM812",
198
+ # "CPY001", # Missing copyright notice at top of file
199
+ "D100", # Missing docstring in public module
200
+ "D101", # Missing docstring in public class
201
+ "D102", # Missing docstring in public method
202
+ "D103", # Missing docstring in public function
203
+ "D104", # Missing docstring in public package
204
+ "D105", # Missing docstring in magic method
205
+ "D106", # Missing docstring in public nested class
206
+ "D107", # Missing docstring in __init__
207
+ "D203", # 1 blank line required before class docstring
208
+ "D204", # 1 blank line required after class docstring
209
+ "D213", # Multi-line docstring summary should start at the second line
210
+ "D215", # Section underline is over-indented ("{name}")
211
+ "D400", # First line should end with a period
212
+ "D401", # First line of docstring should be in imperative mood: "{first_line}"
213
+ "D404", # First word of the docstring should not be "This"
214
+ "D406", # Section name should end with a newline ("{name}")
215
+ "D407", # Missing dashed underline after section ("{name}")
216
+ "D408", # Section underline should be in the line following the section's name ("{name}")
217
+ "D409", # Section underline should match the length of its name ("{name}")
218
+ "D413", # Missing blank line after last section ("{name}")
219
+ "EM101", # Exception must not use a string literal, assign to variable first
220
+ "EM102", # Exception must not use an f-string literal, assign to variable first
221
+ "ISC001",
222
+ "PLC0415",
223
+ "PLR0912", # Too many branches
224
+ "PLR0913", # Too many arguments to function call
225
+ "PLR0915", # Too many statements
226
+ # "PLR2004", # Magic values instead of named consts
227
+ "SLF001", # Private member accessed
228
+ "TRY003", # Avoid specifying long messages outside the exception class
229
+ "TC006", # runtime-cast-value
230
+ ]
231
+
232
+ [tool.ruff.lint.flake8-quotes]
233
+ docstring-quotes = "double"
234
+
235
+ [tool.ruff.lint.flake8-type-checking]
236
+ runtime-evaluated-base-classes = [
237
+ "pydantic.BaseModel",
238
+ "sqlalchemy.orm.DeclarativeBase",
239
+ "schemez.Schema",
240
+ "sqlmodel.SQLModel",
241
+ ]
242
+ runtime-evaluated-decorators = [
243
+ "pydantic.validate_call",
244
+ "fastapi.FastAPI.get",
245
+ "fastapi.FastAPI.post",
246
+ "fastmcp.FastMCP.tool",
247
+ "typer.Typer.command",
248
+ ]
249
+
250
+ [tool.ruff.lint.isort]
251
+ lines-after-imports = 2
252
+ # lines-between-types = 1
253
+ # atomic = true
254
+ force-sort-within-sections = true
255
+ combine-as-imports = true
256
+
257
+ [tool.ruff.lint.per-file-ignores]
258
+ "__init__.py" = ["E402", "I001"]
259
+ "scripts/*" = ["INP001"]
260
+ "*tests/*" = ["D100"]
261
+
262
+ [tool.ruff.format]
263
+ preview = true
264
+
265
+ [tool.ty.environment]
266
+ python-version = "3.13"
267
+ python-platform = "all"
268
+
269
+ [tool.uv]
270
+ default-groups = ["dev", "lint", "docs"]
@@ -0,0 +1,21 @@
1
+ """Exxec: main package.
2
+
3
+ Execution environments.
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ from importlib.metadata import version
9
+
10
+ __version__ = version("exxec")
11
+ __title__ = "Exxec"
12
+
13
+ __author__ = "Philipp Temminghoff"
14
+ __author_email__ = "philipptemminghoff@googlemail.com"
15
+ __copyright__ = "Copyright (c) 2025 Philipp Temminghoff"
16
+ __license__ = "MIT"
17
+ __url__ = "https://github.com/phil65/exxec"
18
+
19
+ __all__ = [
20
+ "__version__",
21
+ ]
@@ -0,0 +1,25 @@
1
+ """Logging configuration for exxec."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import logging
6
+
7
+
8
+ LogLevel = int | str
9
+
10
+
11
+ def get_logger(name: str, log_level: LogLevel | None = None) -> logging.Logger:
12
+ """Get a logger for the given name.
13
+
14
+ Args:
15
+ name: The name of the logger.
16
+ Will be prefixed with 'exxec'
17
+ log_level: The logging level to set for the logger
18
+
19
+ Returns:
20
+ A logger instance
21
+ """
22
+ logger = logging.getLogger(f"exxec.{name}")
23
+ if log_level is not None:
24
+ logger.setLevel(log_level)
25
+ return logger
File without changes