artemis_framework 0.1.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.
- artemis_framework-0.1.1/LICENSE +22 -0
- artemis_framework-0.1.1/PKG-INFO +40 -0
- artemis_framework-0.1.1/README.md +25 -0
- artemis_framework-0.1.1/artemis_framework/__init__.py +5 -0
- artemis_framework-0.1.1/artemis_framework/__main__.py +0 -0
- artemis_framework-0.1.1/artemis_framework/asphodel/__init__.py +6 -0
- artemis_framework-0.1.1/artemis_framework/asphodel/core/__init__.py +0 -0
- artemis_framework-0.1.1/artemis_framework/asphodel/core/gpg_context.py +80 -0
- artemis_framework-0.1.1/artemis_framework/elysium/__ini +0 -0
- artemis_framework-0.1.1/artemis_framework/elysium/__init__.py +0 -0
- artemis_framework-0.1.1/artemis_framework/tartarus/__init__.py +0 -0
- artemis_framework-0.1.1/pyproject.toml +15 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, Dylan Garrett
|
|
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
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: artemis_framework
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: A package for doing great things!
|
|
5
|
+
License: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Author: Dylan Garrett
|
|
8
|
+
Requires-Python: >=3.13,<4.0
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# artemis_framework
|
|
16
|
+
|
|
17
|
+
A package for doing great things!
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
$ pip install artemis_framework
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
- TODO
|
|
28
|
+
|
|
29
|
+
## Contributing
|
|
30
|
+
|
|
31
|
+
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
`artemis_framework` was created by Dylan Garrett. It is licensed under the terms of the MIT license.
|
|
36
|
+
|
|
37
|
+
## Credits
|
|
38
|
+
|
|
39
|
+
`artemis_framework` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
|
|
40
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# artemis_framework
|
|
2
|
+
|
|
3
|
+
A package for doing great things!
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
$ pip install artemis_framework
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
- TODO
|
|
14
|
+
|
|
15
|
+
## Contributing
|
|
16
|
+
|
|
17
|
+
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
|
|
18
|
+
|
|
19
|
+
## License
|
|
20
|
+
|
|
21
|
+
`artemis_framework` was created by Dylan Garrett. It is licensed under the terms of the MIT license.
|
|
22
|
+
|
|
23
|
+
## Credits
|
|
24
|
+
|
|
25
|
+
`artemis_framework` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
import gnupg
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
DEFAULT_GNUPGHOME = Path(__file__).parent / "test_keyring"
|
|
11
|
+
|
|
12
|
+
GPG_BINARY = "gpg"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def build_gpg(
|
|
16
|
+
gnupghome: Path | str | None = None,
|
|
17
|
+
binary: str = GPG_BINARY,
|
|
18
|
+
*,
|
|
19
|
+
verbose: bool = False,
|
|
20
|
+
use_agent: bool = False,
|
|
21
|
+
options: list[str] | None = None
|
|
22
|
+
) -> gnupg.GPG:
|
|
23
|
+
home = Path(gnupghome) if gnupghome else DEFAULT_GNUPGHOME
|
|
24
|
+
|
|
25
|
+
try:
|
|
26
|
+
home.mkdir(mode=0o700, parents=True, exist_ok=True)
|
|
27
|
+
except OSError as exc:
|
|
28
|
+
raise RuntimeError(f"Cannot create GNUPGHOME at {home}: {exc}") from exc
|
|
29
|
+
|
|
30
|
+
try:
|
|
31
|
+
gpg = gnupg.GPG(
|
|
32
|
+
gnupghome=str(home),
|
|
33
|
+
gpgbinary=binary,
|
|
34
|
+
verbose=verbose,
|
|
35
|
+
use_agent=use_agent,
|
|
36
|
+
options=options or []
|
|
37
|
+
)
|
|
38
|
+
except ValueError as exc:
|
|
39
|
+
raise RuntimeError(
|
|
40
|
+
f"Failed to initialize GPG (binary='{binary}'): {exc}\n"
|
|
41
|
+
"Is GPG installed and findable on your PATH?"
|
|
42
|
+
) from exc
|
|
43
|
+
|
|
44
|
+
return gpg
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def check_result(result, *, label: str = "operation") -> bool:
|
|
48
|
+
ok_attr = getattr(result, "ok", None)
|
|
49
|
+
status = getattr(result, "status", "")
|
|
50
|
+
stderr = getattr(result, "stderr", "")
|
|
51
|
+
fingerprint = getattr(result, "fingerprint", None)
|
|
52
|
+
fingerprints = getattr(result, "fingerprints", None)
|
|
53
|
+
|
|
54
|
+
success = bool(ok_attr) if ok_attr is not None else (status not in ("", None))
|
|
55
|
+
|
|
56
|
+
if success:
|
|
57
|
+
print(f"[OK] {label}")
|
|
58
|
+
else:
|
|
59
|
+
print(f"[ERR] {label}")
|
|
60
|
+
|
|
61
|
+
if fingerprint:
|
|
62
|
+
print(f" fingerprint : {fingerprint}")
|
|
63
|
+
if fingerprints:
|
|
64
|
+
print(f" fingerprints : {fingerprints}")
|
|
65
|
+
if status:
|
|
66
|
+
print(f" status : {status}")
|
|
67
|
+
if stderr:
|
|
68
|
+
lines = [ln for ln in stderr.strip().splitlines() if ln]
|
|
69
|
+
tail = lines[-5:] if len(lines) > 5 else lines
|
|
70
|
+
for ln in tail:
|
|
71
|
+
print(f" stderr {ln}")
|
|
72
|
+
|
|
73
|
+
return success
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def inspect_gpg_version(gpg: gnupg.GPG) -> None:
|
|
77
|
+
version = gpg.version
|
|
78
|
+
print(f"GPG binary version : {version}")
|
|
79
|
+
print(f"GNUPGHOME : {gpg.gnupghome}")
|
|
80
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "artemis_framework"
|
|
3
|
+
version = "0.1.1"
|
|
4
|
+
description = "A package for doing great things!"
|
|
5
|
+
authors = ["Dylan Garrett"]
|
|
6
|
+
license = "MIT"
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
|
|
9
|
+
[tool.poetry.dependencies]
|
|
10
|
+
python = "^3.13"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
[build-system]
|
|
14
|
+
requires = ["poetry-core>=1.0.0"]
|
|
15
|
+
build-backend = "poetry.core.masonry.api"
|