odkn 0.5.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.
Files changed (75) hide show
  1. odkn-0.5.0/.gitignore +242 -0
  2. odkn-0.5.0/API_REFERENCE.md +530 -0
  3. odkn-0.5.0/PKG-INFO +98 -0
  4. odkn-0.5.0/README.md +61 -0
  5. odkn-0.5.0/pyproject.toml +113 -0
  6. odkn-0.5.0/src/odkn/README.md +42 -0
  7. odkn-0.5.0/src/odkn/__init__.py +195 -0
  8. odkn-0.5.0/src/odkn/__main__.py +8 -0
  9. odkn-0.5.0/src/odkn/_schemas/__init__.py +1 -0
  10. odkn-0.5.0/src/odkn/_schemas/odkn-access-descriptor.schema.json +323 -0
  11. odkn-0.5.0/src/odkn/_schemas/odkn-attestation.schema.json +89 -0
  12. odkn-0.5.0/src/odkn/_schemas/odkn-drift.schema.json +269 -0
  13. odkn-0.5.0/src/odkn/_schemas/odkn-frontmatter.schema.json +561 -0
  14. odkn-0.5.0/src/odkn/_schemas/odkn-governance-hint.schema.json +99 -0
  15. odkn-0.5.0/src/odkn/_schemas/odkn-manifest.schema.json +100 -0
  16. odkn-0.5.0/src/odkn/_schemas/odkn-origin.schema.json +36 -0
  17. odkn-0.5.0/src/odkn/_schemas/odkn-policy-lock.schema.json +48 -0
  18. odkn-0.5.0/src/odkn/_schemas/odkn-provider-cid.schema.json +140 -0
  19. odkn-0.5.0/src/odkn/_schemas/odkn-verify-result.schema.json +107 -0
  20. odkn-0.5.0/src/odkn/_wiring.py +633 -0
  21. odkn-0.5.0/src/odkn/adapters/README.md +25 -0
  22. odkn-0.5.0/src/odkn/adapters/__init__.py +82 -0
  23. odkn-0.5.0/src/odkn/adapters/contract_adapters.py +419 -0
  24. odkn-0.5.0/src/odkn/adapters/crypto_ed25519.py +169 -0
  25. odkn-0.5.0/src/odkn/adapters/csv_profiler.py +148 -0
  26. odkn-0.5.0/src/odkn/adapters/fs_bundle.py +358 -0
  27. odkn-0.5.0/src/odkn/adapters/git_probe.py +79 -0
  28. odkn-0.5.0/src/odkn/adapters/jsonschema_validator.py +94 -0
  29. odkn-0.5.0/src/odkn/adapters/provider_registry.py +91 -0
  30. odkn-0.5.0/src/odkn/adapters/snapshot_state.py +170 -0
  31. odkn-0.5.0/src/odkn/adapters/yaml_parser.py +243 -0
  32. odkn-0.5.0/src/odkn/application/README.md +24 -0
  33. odkn-0.5.0/src/odkn/application/__init__.py +64 -0
  34. odkn-0.5.0/src/odkn/application/bundle_verifier.py +636 -0
  35. odkn-0.5.0/src/odkn/application/crosswalk_service.py +578 -0
  36. odkn-0.5.0/src/odkn/application/manifest_service.py +99 -0
  37. odkn-0.5.0/src/odkn/application/profile_bundle.py +354 -0
  38. odkn-0.5.0/src/odkn/application/schema_index_service.py +393 -0
  39. odkn-0.5.0/src/odkn/application/sign_bundle.py +355 -0
  40. odkn-0.5.0/src/odkn/application/validate_bundle.py +1436 -0
  41. odkn-0.5.0/src/odkn/application/verify_bundle.py +979 -0
  42. odkn-0.5.0/src/odkn/attestation.py +48 -0
  43. odkn-0.5.0/src/odkn/cli.py +34 -0
  44. odkn-0.5.0/src/odkn/client.py +8 -0
  45. odkn-0.5.0/src/odkn/contracts.py +59 -0
  46. odkn-0.5.0/src/odkn/crosswalk.py +28 -0
  47. odkn-0.5.0/src/odkn/domain/README.md +25 -0
  48. odkn-0.5.0/src/odkn/domain/__init__.py +146 -0
  49. odkn-0.5.0/src/odkn/domain/crosswalk_rules.py +201 -0
  50. odkn-0.5.0/src/odkn/domain/drift_rules.py +108 -0
  51. odkn-0.5.0/src/odkn/domain/memory_bundle.py +158 -0
  52. odkn-0.5.0/src/odkn/domain/models.py +424 -0
  53. odkn-0.5.0/src/odkn/domain/okf_rules.py +192 -0
  54. odkn-0.5.0/src/odkn/domain/ports.py +245 -0
  55. odkn-0.5.0/src/odkn/domain/schema_markdown.py +226 -0
  56. odkn-0.5.0/src/odkn/domain/security.py +71 -0
  57. odkn-0.5.0/src/odkn/domain/tlp.py +88 -0
  58. odkn-0.5.0/src/odkn/domain/trust_policy.py +197 -0
  59. odkn-0.5.0/src/odkn/domain/value_objects.py +195 -0
  60. odkn-0.5.0/src/odkn/entrypoints/README.md +24 -0
  61. odkn-0.5.0/src/odkn/entrypoints/__init__.py +21 -0
  62. odkn-0.5.0/src/odkn/entrypoints/cli.py +647 -0
  63. odkn-0.5.0/src/odkn/entrypoints/client.py +113 -0
  64. odkn-0.5.0/src/odkn/entrypoints/mcp_stdio.py +306 -0
  65. odkn-0.5.0/src/odkn/mcp_server.py +20 -0
  66. odkn-0.5.0/src/odkn/models.py +52 -0
  67. odkn-0.5.0/src/odkn/okf.py +30 -0
  68. odkn-0.5.0/src/odkn/packager.py +14 -0
  69. odkn-0.5.0/src/odkn/profiler.py +23 -0
  70. odkn-0.5.0/src/odkn/providers.py +25 -0
  71. odkn-0.5.0/src/odkn/py.typed +0 -0
  72. odkn-0.5.0/src/odkn/schemas.py +20 -0
  73. odkn-0.5.0/src/odkn/tlp.py +30 -0
  74. odkn-0.5.0/src/odkn/validator.py +49 -0
  75. odkn-0.5.0/src/odkn/verifier.py +23 -0
odkn-0.5.0/.gitignore ADDED
@@ -0,0 +1,242 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.pyc
4
+ *.pyo
5
+ .pytest_cache/
6
+ .mypy_cache/
7
+ *.egg-info/
8
+ build/
9
+ dist/
10
+ .DS_Store
11
+ .env
12
+ .claude/
13
+
14
+ # Byte-compiled / optimized / DLL files
15
+ __pycache__/
16
+ *.py[codz]
17
+ *$py.class
18
+
19
+ # C extensions
20
+ *.so
21
+
22
+ # Distribution / packaging
23
+ .Python
24
+ build/
25
+ develop-eggs/
26
+ dist/
27
+ downloads/
28
+ eggs/
29
+ .eggs/
30
+ lib/
31
+ lib64/
32
+ parts/
33
+ sdist/
34
+ var/
35
+ wheels/
36
+ share/python-wheels/
37
+ *.egg-info/
38
+ .installed.cfg
39
+ *.egg
40
+ MANIFEST
41
+
42
+ # PyInstaller
43
+ # Usually these files are written by a python script from a template
44
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
45
+ *.manifest
46
+ *.spec
47
+
48
+ # Installer logs
49
+ pip-log.txt
50
+ pip-delete-this-directory.txt
51
+
52
+ # Unit test / coverage reports
53
+ htmlcov/
54
+ .tox/
55
+ .nox/
56
+ .coverage
57
+ .coverage.*
58
+ .cache
59
+ nosetests.xml
60
+ coverage.xml
61
+ *.cover
62
+ *.py.cover
63
+ *.lcov
64
+ .hypothesis/
65
+ .pytest_cache/
66
+ cover/
67
+
68
+ # Translations
69
+ *.mo
70
+ *.pot
71
+
72
+ # Django stuff:
73
+ *.log
74
+ local_settings.py
75
+ db.sqlite3
76
+ db.sqlite3-journal
77
+ db.sqlite3-wal
78
+ db.sqlite3-shm
79
+
80
+ # Flask stuff:
81
+ instance/
82
+ .webassets-cache
83
+
84
+ # Scrapy stuff:
85
+ .scrapy
86
+
87
+ # Sphinx documentation
88
+ docs/_build/
89
+
90
+ # PyBuilder
91
+ .pybuilder/
92
+ target/
93
+
94
+ # Jupyter Notebook
95
+ .ipynb_checkpoints
96
+
97
+ # IPython
98
+ profile_default/
99
+ ipython_config.py
100
+
101
+ # pyenv
102
+ # For a library or package, you might want to ignore these files since the code is
103
+ # intended to run in multiple environments; otherwise, check them in:
104
+ # .python-version
105
+
106
+ # pipenv
107
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
108
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
109
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
110
+ # install all needed dependencies.
111
+ # Pipfile.lock
112
+
113
+ # uv
114
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
115
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
116
+ # commonly ignored for libraries.
117
+ # uv.lock
118
+
119
+ # poetry
120
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
121
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
122
+ # commonly ignored for libraries.
123
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
124
+ # poetry.lock
125
+ # poetry.toml
126
+
127
+ # pdm
128
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
129
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
130
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
131
+ # pdm.lock
132
+ # pdm.toml
133
+ .pdm-python
134
+ .pdm-build/
135
+
136
+ # pixi
137
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
138
+ # pixi.lock
139
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
140
+ # in the .venv directory. It is recommended not to include this directory in version control.
141
+ .pixi/*
142
+ !.pixi/config.toml
143
+
144
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
145
+ __pypackages__/
146
+
147
+ # Celery stuff
148
+ celerybeat-schedule*
149
+ celerybeat.pid
150
+
151
+ # Redis
152
+ *.rdb
153
+ *.aof
154
+ *.pid
155
+
156
+ # RabbitMQ
157
+ mnesia/
158
+ rabbitmq/
159
+ rabbitmq-data/
160
+
161
+ # ActiveMQ
162
+ activemq-data/
163
+
164
+ # SageMath parsed files
165
+ *.sage.py
166
+
167
+ # Environments
168
+ .env
169
+ .envrc
170
+ .venv
171
+ env/
172
+ venv/
173
+ ENV/
174
+ env.bak/
175
+ venv.bak/
176
+
177
+ # Conda environments
178
+ conda-meta/
179
+
180
+ # Spyder project settings
181
+ .spyderproject
182
+ .spyproject
183
+
184
+ # Rope project settings
185
+ .ropeproject
186
+
187
+ # mkdocs/Zensical documentation
188
+ /site
189
+
190
+ # mypy
191
+ .mypy_cache/
192
+ .dmypy.json
193
+ dmypy.json
194
+
195
+ # Pyre type checker
196
+ .pyre/
197
+
198
+ # pytype static type analyzer
199
+ .pytype/
200
+
201
+ # Cython debug symbols
202
+ cython_debug/
203
+
204
+ # PyCharm
205
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
206
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
207
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
208
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
209
+ # .idea/
210
+
211
+ # Abstra
212
+ # Abstra is an AI-powered process automation framework.
213
+ # Ignore directories containing user credentials, local state, and settings.
214
+ # Learn more at https://abstra.io/docs
215
+ .abstra/
216
+
217
+ # Visual Studio Code
218
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
219
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
220
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
221
+ # could uncomment the following to ignore the entire vscode folder
222
+ # .vscode/
223
+ # Temporary file for partial code execution
224
+ tempCodeRunnerFile.py
225
+
226
+ # Ruff stuff:
227
+ .ruff_cache/
228
+
229
+ # PyPI configuration file
230
+ .pypirc
231
+
232
+ # Marimo
233
+ marimo/_static/
234
+ marimo/_lsp/
235
+ __marimo__/
236
+
237
+ # Streamlit
238
+ .streamlit/secrets.toml
239
+
240
+ # Coverage & Multi-Agent Git Worktrees
241
+ .coverage
242
+ .worktrees/