mcp_run_isolated_python 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.
- mcp_run_isolated_python-0.0.0/LICENCE +7 -0
- mcp_run_isolated_python-0.0.0/PKG-INFO +36 -0
- mcp_run_isolated_python-0.0.0/README.md +16 -0
- mcp_run_isolated_python-0.0.0/pyproject.toml +82 -0
- mcp_run_isolated_python-0.0.0/src/mcp_run_isolated_python/__init__.py +0 -0
- mcp_run_isolated_python-0.0.0/src/mcp_run_isolated_python/cli.py +13 -0
- mcp_run_isolated_python-0.0.0/src/mcp_run_isolated_python/misc/logger.py +20 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright © 2026 Daniel J
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: mcp_run_isolated_python
|
|
3
|
+
Version: 0.0.0
|
|
4
|
+
Summary: WIP and TODO :)
|
|
5
|
+
Author: Daniel J
|
|
6
|
+
License: Copyright © 2026 Daniel J
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
13
|
+
Requires-Dist: pydantic>=2.12.5
|
|
14
|
+
Requires-Dist: whenever>=0.9.5
|
|
15
|
+
Requires-Dist: rich>=14.3.2
|
|
16
|
+
Requires-Dist: typer>=0.21.1
|
|
17
|
+
Requires-Python: >=3.10
|
|
18
|
+
Project-URL: Repository, https://github.com/Kigstn/mcp-run-isolated-python
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# mcp-run-isolated-python
|
|
22
|
+
|
|
23
|
+
[//]: # (todo: name & description)
|
|
24
|
+
WIP and TODO :)
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
We are using `uv` to manage python packages and versions.
|
|
31
|
+
|
|
32
|
+
#### Steps
|
|
33
|
+
|
|
34
|
+
1. [Install `uv` however you prefer](https://docs.astral.sh/uv/getting-started/installation/)
|
|
35
|
+
2. Install packages -> `uv sync --all-extras`
|
|
36
|
+
3. Install prek (or pre-commit) -> `uv run prek install`
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# mcp-run-isolated-python
|
|
2
|
+
|
|
3
|
+
[//]: # (todo: name & description)
|
|
4
|
+
WIP and TODO :)
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
We are using `uv` to manage python packages and versions.
|
|
11
|
+
|
|
12
|
+
#### Steps
|
|
13
|
+
|
|
14
|
+
1. [Install `uv` however you prefer](https://docs.astral.sh/uv/getting-started/installation/)
|
|
15
|
+
2. Install packages -> `uv sync --all-extras`
|
|
16
|
+
3. Install prek (or pre-commit) -> `uv run prek install`
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "mcp_run_isolated_python"
|
|
3
|
+
version = "0.0.0"
|
|
4
|
+
description = "WIP and TODO :)" # todo: description
|
|
5
|
+
authors = [{ name = "Daniel J" }]
|
|
6
|
+
license = { file = "LICENCE" }
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
requires-python = ">=3.10"
|
|
9
|
+
|
|
10
|
+
dependencies = [
|
|
11
|
+
"pydantic>=2.12.5",
|
|
12
|
+
"whenever>=0.9.5",
|
|
13
|
+
"rich>=14.3.2",
|
|
14
|
+
"typer>=0.21.1",
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
[dependency-groups]
|
|
18
|
+
dev = [
|
|
19
|
+
# dev tools
|
|
20
|
+
"ruff>=0.11.10",
|
|
21
|
+
"prek>=0.3.1",
|
|
22
|
+
"ty>=0.0.15",
|
|
23
|
+
|
|
24
|
+
# testing
|
|
25
|
+
"pytest>=8.3.5",
|
|
26
|
+
"pytest-asyncio>=0.24.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Repository = "https://github.com/Kigstn/mcp-run-isolated-python"
|
|
31
|
+
|
|
32
|
+
[build-system]
|
|
33
|
+
requires = ["uv_build>=0.9.30,<0.10.0"]
|
|
34
|
+
build-backend = "uv_build"
|
|
35
|
+
|
|
36
|
+
[tool.ruff]
|
|
37
|
+
line-length = 120
|
|
38
|
+
fix = true
|
|
39
|
+
unsafe-fixes = true
|
|
40
|
+
|
|
41
|
+
[tool.ruff.format]
|
|
42
|
+
docstring-code-format = true
|
|
43
|
+
|
|
44
|
+
[tool.ruff.lint]
|
|
45
|
+
flake8-annotations.suppress-none-returning = true
|
|
46
|
+
extend-safe-fixes = ["E", "F401"]
|
|
47
|
+
extend-select = [
|
|
48
|
+
"I", # Imports are sorted properly -> https://docs.astral.sh/ruff/rules/#isort-i
|
|
49
|
+
"ASYNC", # Asnyc code smells -> https://docs.astral.sh/ruff/rules/#flake8-async-async
|
|
50
|
+
"N", # Verfiy var naming according to pep8 -> https://docs.astral.sh/ruff/rules/#pep8-naming-n
|
|
51
|
+
"S", # Insecure code -> https://docs.astral.sh/ruff/rules/#flake8-bandit-s
|
|
52
|
+
"B", # Buggy code -> https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
|
|
53
|
+
"A", # Buildin var shadowing -> https://docs.astral.sh/ruff/rules/#flake8-builtins-a
|
|
54
|
+
"SIM", # Code can be simplified -> https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
|
|
55
|
+
"PTH", # Use pathlib not os.path -> https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
|
|
56
|
+
"FAST", # FastApi code smells -> https://docs.astral.sh/ruff/rules/#fastapi-fast
|
|
57
|
+
"T20", # Print statements in code -> https://docs.astral.sh/ruff/rules/#flake8-print-t20
|
|
58
|
+
"RUF", # Various rules from ruff -> https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
|
|
59
|
+
"ANN001", # Missing type annotations -> https://docs.astral.sh/ruff/rules/missing-type-function-argument/
|
|
60
|
+
"ANN2", # Missing return type annotations -> https://docs.astral.sh/ruff/rules/missing-type-function-argument/
|
|
61
|
+
]
|
|
62
|
+
extend-ignore = [
|
|
63
|
+
"F403",
|
|
64
|
+
"B023",
|
|
65
|
+
"S105",
|
|
66
|
+
"B904",
|
|
67
|
+
"RET504",
|
|
68
|
+
"RUF001",
|
|
69
|
+
"RUF002",
|
|
70
|
+
"RUF003",
|
|
71
|
+
"RUF029",
|
|
72
|
+
]
|
|
73
|
+
preview = true
|
|
74
|
+
|
|
75
|
+
[tool.pytest.ini_options]
|
|
76
|
+
# https://docs.pytest.org/en/latest/explanation/goodpractices.html
|
|
77
|
+
addopts = ["--import-mode=importlib"]
|
|
78
|
+
testpaths = "tests"
|
|
79
|
+
pythonpath = "."
|
|
80
|
+
asyncio_mode = "auto"
|
|
81
|
+
asyncio_default_fixture_loop_scope = "session"
|
|
82
|
+
asyncio_default_test_loop_scope = "session"
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import typer
|
|
2
|
+
|
|
3
|
+
from mcp_run_isolated_python.misc.logger import get_logger
|
|
4
|
+
|
|
5
|
+
logger = get_logger(__name__)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def main():
|
|
9
|
+
logger.info("Hi! This package is WIP and does not have any functionality yet - just wanted to reserve pypi name :)")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
if __name__ == "__main__":
|
|
13
|
+
typer.run(main)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
|
|
3
|
+
import pydantic
|
|
4
|
+
from rich.logging import RichHandler
|
|
5
|
+
|
|
6
|
+
logging.basicConfig(
|
|
7
|
+
level="NOTSET",
|
|
8
|
+
format="%(message)s",
|
|
9
|
+
datefmt="[%X]",
|
|
10
|
+
handlers=[RichHandler(rich_tracebacks=True, tracebacks_suppress=[pydantic])],
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
_loggers = {}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def get_logger(name: str = "base_logger") -> logging.Logger:
|
|
17
|
+
if name not in _loggers:
|
|
18
|
+
_loggers[name] = logging.getLogger(name)
|
|
19
|
+
|
|
20
|
+
return _loggers[name]
|