osp-uio-integrations 0.1.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.
- osp_uio_integrations-0.1.0/.githooks/commit-msg +5 -0
- osp_uio_integrations-0.1.0/.github/workflows/ci.yml +25 -0
- osp_uio_integrations-0.1.0/.github/workflows/release-artifacts.yml +32 -0
- osp_uio_integrations-0.1.0/.gitignore +227 -0
- osp_uio_integrations-0.1.0/.pre-commit-config.yaml +19 -0
- osp_uio_integrations-0.1.0/.python-version +1 -0
- osp_uio_integrations-0.1.0/LICENSE +21 -0
- osp_uio_integrations-0.1.0/PKG-INFO +88 -0
- osp_uio_integrations-0.1.0/README.md +63 -0
- osp_uio_integrations-0.1.0/docs/mreg-host-library-plan.md +792 -0
- osp_uio_integrations-0.1.0/docs/release-notes-0.1.0.md +29 -0
- osp_uio_integrations-0.1.0/docs/release.md +83 -0
- osp_uio_integrations-0.1.0/pyproject.toml +98 -0
- osp_uio_integrations-0.1.0/scripts/check_commit_message.py +32 -0
- osp_uio_integrations-0.1.0/scripts/install-git-hooks.sh +9 -0
- osp_uio_integrations-0.1.0/scripts/publish.sh +87 -0
- osp_uio_integrations-0.1.0/scripts/tag-release.sh +56 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/__init__.py +17 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/README.md +131 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/__init__.py +60 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/auth/README.md +199 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/auth/__init__.py +14 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/auth/interactive.py +66 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/auth/login.py +118 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/auth/tokens.py +75 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/client.py +1088 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/enums.py +51 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/exceptions.py +148 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/README.md +311 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/__init__.py +24 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/_network.py +12 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/_shared.py +44 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/addressing.py +1061 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/api.py +53 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/cnames.py +366 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/contacts.py +258 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/history.py +280 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/lifecycle.py +386 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/models.py +181 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/queries.py +285 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/README.md +299 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/__init__.py +39 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/_shared.py +46 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/api.py +47 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/hinfo.py +238 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/loc.py +230 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/models.py +263 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/mx.py +268 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/naptr.py +429 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/ptr.py +564 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/srv.py +389 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/sshfp.py +314 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/ttl.py +365 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/hosts/records/txt.py +240 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/networks/__init__.py +22 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/networks/api.py +536 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/mreg/networks/models.py +78 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/nivlheim/README.md +12 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/nivlheim/__init__.py +37 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/nivlheim/client.py +722 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/nivlheim/exceptions.py +58 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/nivlheim/models.py +57 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/py.typed +1 -0
- osp_uio_integrations-0.1.0/src/osp_uio_integrations/version.py +3 -0
- osp_uio_integrations-0.1.0/tests/architecture/test_mreg_architecture.py +188 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/records/test_naptr.py +568 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/records/test_srv_ptr_ttl.py +631 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/records/test_sshfp.py +315 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/records/test_txt_mx_hinfo.py +276 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/test_addressing.py +725 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/test_cnames.py +234 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/test_contacts.py +507 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/test_history.py +219 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/test_lifecycle.py +327 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/test_loc.py +123 -0
- osp_uio_integrations-0.1.0/tests/integration/hosts/test_ptr.py +195 -0
- osp_uio_integrations-0.1.0/tests/integration/test_mreg_client.py +522 -0
- osp_uio_integrations-0.1.0/tests/integration/test_mreg_networks.py +237 -0
- osp_uio_integrations-0.1.0/tests/integration/test_nivlheim_client.py +366 -0
- osp_uio_integrations-0.1.0/tests/unit/test_public_imports.py +53 -0
- osp_uio_integrations-0.1.0/tests/unit/test_version.py +7 -0
- osp_uio_integrations-0.1.0/uv.lock +900 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: astral-sh/setup-uv@v6
|
|
14
|
+
- name: Sync dev dependencies
|
|
15
|
+
run: uv sync --extra dev
|
|
16
|
+
- name: Ruff
|
|
17
|
+
run: uv run ruff check .
|
|
18
|
+
- name: Ty
|
|
19
|
+
run: uv run ty check src tests
|
|
20
|
+
- name: Pytest
|
|
21
|
+
run: uv run pytest
|
|
22
|
+
- name: Build artifacts
|
|
23
|
+
run: uv run python -m build
|
|
24
|
+
- name: Validate artifacts
|
|
25
|
+
run: uv run twine check dist/*
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Release Artifacts
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-and-attach:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: astral-sh/setup-uv@v6
|
|
17
|
+
- name: Sync dev dependencies
|
|
18
|
+
run: uv sync --extra dev
|
|
19
|
+
- name: Verify quality gates
|
|
20
|
+
run: |
|
|
21
|
+
uv run ruff check .
|
|
22
|
+
uv run ty check src tests
|
|
23
|
+
uv run pytest
|
|
24
|
+
- name: Build artifacts
|
|
25
|
+
run: uv run python -m build
|
|
26
|
+
- name: Validate artifacts
|
|
27
|
+
run: uv run twine check dist/*
|
|
28
|
+
- name: Create GitHub release and upload artifacts
|
|
29
|
+
uses: softprops/action-gh-release@v2
|
|
30
|
+
with:
|
|
31
|
+
files: dist/*
|
|
32
|
+
generate_release_notes: true
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
dist_previous/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
parts/
|
|
21
|
+
sdist/
|
|
22
|
+
var/
|
|
23
|
+
wheels/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py.cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
# Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# UV
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# uv.lock
|
|
103
|
+
|
|
104
|
+
# poetry
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
106
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
107
|
+
# commonly ignored for libraries.
|
|
108
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
109
|
+
# poetry.lock
|
|
110
|
+
# poetry.toml
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
115
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
116
|
+
# pdm.lock
|
|
117
|
+
# pdm.toml
|
|
118
|
+
.pdm-python
|
|
119
|
+
.pdm-build/
|
|
120
|
+
|
|
121
|
+
# pixi
|
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
123
|
+
# pixi.lock
|
|
124
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
125
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
126
|
+
.pixi
|
|
127
|
+
|
|
128
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
129
|
+
__pypackages__/
|
|
130
|
+
|
|
131
|
+
# Celery stuff
|
|
132
|
+
celerybeat-schedule
|
|
133
|
+
celerybeat.pid
|
|
134
|
+
|
|
135
|
+
# Redis
|
|
136
|
+
*.rdb
|
|
137
|
+
*.aof
|
|
138
|
+
*.pid
|
|
139
|
+
|
|
140
|
+
# RabbitMQ
|
|
141
|
+
mnesia/
|
|
142
|
+
rabbitmq/
|
|
143
|
+
rabbitmq-data/
|
|
144
|
+
|
|
145
|
+
# ActiveMQ
|
|
146
|
+
activemq-data/
|
|
147
|
+
|
|
148
|
+
# SageMath parsed files
|
|
149
|
+
*.sage.py
|
|
150
|
+
|
|
151
|
+
# Environments
|
|
152
|
+
.env
|
|
153
|
+
.envrc
|
|
154
|
+
.env*
|
|
155
|
+
!.env*.sample
|
|
156
|
+
.venv
|
|
157
|
+
.venv/
|
|
158
|
+
env/
|
|
159
|
+
venv/
|
|
160
|
+
ENV/
|
|
161
|
+
env.bak/
|
|
162
|
+
venv.bak/
|
|
163
|
+
.*.dev
|
|
164
|
+
|
|
165
|
+
# Spyder project settings
|
|
166
|
+
.spyderproject
|
|
167
|
+
.spyproject
|
|
168
|
+
|
|
169
|
+
# Rope project settings
|
|
170
|
+
.ropeproject
|
|
171
|
+
|
|
172
|
+
# mkdocs documentation
|
|
173
|
+
/site
|
|
174
|
+
|
|
175
|
+
# mypy
|
|
176
|
+
.mypy_cache/
|
|
177
|
+
.dmypy.json
|
|
178
|
+
dmypy.json
|
|
179
|
+
|
|
180
|
+
# Pyre type checker
|
|
181
|
+
.pyre/
|
|
182
|
+
|
|
183
|
+
# pytype static type analyzer
|
|
184
|
+
.pytype/
|
|
185
|
+
|
|
186
|
+
# Cython debug symbols
|
|
187
|
+
cython_debug/
|
|
188
|
+
|
|
189
|
+
# PyCharm
|
|
190
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
191
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
192
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
193
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
194
|
+
# .idea/
|
|
195
|
+
|
|
196
|
+
# Abstra
|
|
197
|
+
# Abstra is an AI-powered process automation framework.
|
|
198
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
199
|
+
# Learn more at https://abstra.io/docs
|
|
200
|
+
.abstra/
|
|
201
|
+
|
|
202
|
+
# Visual Studio Code
|
|
203
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
204
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
205
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
206
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
207
|
+
# .vscode/
|
|
208
|
+
# Temporary file for partial code execution
|
|
209
|
+
tempCodeRunnerFile.py
|
|
210
|
+
|
|
211
|
+
# Ruff stuff:
|
|
212
|
+
.ruff_cache/
|
|
213
|
+
|
|
214
|
+
# PyPI configuration file
|
|
215
|
+
.pypirc
|
|
216
|
+
|
|
217
|
+
# Marimo
|
|
218
|
+
marimo/_static/
|
|
219
|
+
marimo/_lsp/
|
|
220
|
+
__marimo__/
|
|
221
|
+
|
|
222
|
+
# Streamlit
|
|
223
|
+
.streamlit/secrets.toml
|
|
224
|
+
|
|
225
|
+
# Repo-specific local files
|
|
226
|
+
.tmp_key_path
|
|
227
|
+
docs/plans/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: local
|
|
3
|
+
hooks:
|
|
4
|
+
- id: ruff-check
|
|
5
|
+
name: ruff check (autofix)
|
|
6
|
+
entry: hatch run ruff check --fix --exit-non-zero-on-fix
|
|
7
|
+
language: system
|
|
8
|
+
types_or: [python, pyi]
|
|
9
|
+
- id: ruff-format
|
|
10
|
+
name: ruff format
|
|
11
|
+
entry: hatch run ruff format
|
|
12
|
+
language: system
|
|
13
|
+
types_or: [python, pyi]
|
|
14
|
+
- id: ty
|
|
15
|
+
name: ty (src)
|
|
16
|
+
entry: hatch run dev:typecheck
|
|
17
|
+
language: system
|
|
18
|
+
pass_filenames: false
|
|
19
|
+
types_or: [python, pyi]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 IT-OPS
|
|
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.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: osp-uio-integrations
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Shared Python integrations for UiO infrastructure services.
|
|
5
|
+
Project-URL: Repository, https://github.uio.no/IT-OPS/osp-uio-integrations
|
|
6
|
+
Author: OSP Team
|
|
7
|
+
License: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Typing :: Typed
|
|
15
|
+
Requires-Python: >=3.13
|
|
16
|
+
Requires-Dist: httpx<1,>=0.28
|
|
17
|
+
Provides-Extra: dev
|
|
18
|
+
Requires-Dist: build<2,>=1.2; extra == 'dev'
|
|
19
|
+
Requires-Dist: hatch<2,>=1.14; extra == 'dev'
|
|
20
|
+
Requires-Dist: pytest<9,>=8.3; extra == 'dev'
|
|
21
|
+
Requires-Dist: ruff>=0.15; extra == 'dev'
|
|
22
|
+
Requires-Dist: twine<7,>=6; extra == 'dev'
|
|
23
|
+
Requires-Dist: ty>=0.0.18; extra == 'dev'
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# osp-uio-integrations
|
|
27
|
+
|
|
28
|
+
Shared Python integration package for UiO-specific infrastructure systems such
|
|
29
|
+
as MREG and Nivlheim.
|
|
30
|
+
|
|
31
|
+
This repository is the concrete API-glue layer for external UiO systems. It is
|
|
32
|
+
meant to keep authentication, request/response handling, error mapping, and
|
|
33
|
+
small normalization helpers in one place so providers and transitional
|
|
34
|
+
orchestrator code do not duplicate that plumbing.
|
|
35
|
+
|
|
36
|
+
For maintainer-facing internals and invariants, see `src/README.md`.
|
|
37
|
+
|
|
38
|
+
## Scope
|
|
39
|
+
|
|
40
|
+
- Reusable Python clients for UiO infrastructure services
|
|
41
|
+
- Shared transport/auth/session glue
|
|
42
|
+
- API-specific response parsing and error translation
|
|
43
|
+
- Small stable normalized helper types where duplication would otherwise grow
|
|
44
|
+
|
|
45
|
+
## Current focus
|
|
46
|
+
|
|
47
|
+
The first concrete integration is a small sync MREG library with:
|
|
48
|
+
|
|
49
|
+
- explicit transport and auth handling
|
|
50
|
+
- optional interactive login for token bootstrap
|
|
51
|
+
- request metadata headers such as `User-Agent` and `X-Correlation-ID`
|
|
52
|
+
- a host-focused surface covering queries, lifecycle, history, addressing,
|
|
53
|
+
contacts, CNAMEs, and explicit DNS record modules
|
|
54
|
+
- room to grow into further MREG areas without flattening everything into
|
|
55
|
+
one module
|
|
56
|
+
|
|
57
|
+
## Non-goals
|
|
58
|
+
|
|
59
|
+
- Provider workflow or execution logic
|
|
60
|
+
- Ownership, approval, or placement policy
|
|
61
|
+
- Orchestrator/provider wire contracts
|
|
62
|
+
- Provider-specific planning decisions
|
|
63
|
+
|
|
64
|
+
## Install
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pip install osp-uio-integrations
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Development
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
env -u VIRTUAL_ENV uv sync --extra dev
|
|
74
|
+
hatch shell
|
|
75
|
+
hatch run dev:check
|
|
76
|
+
hatch run dev:build
|
|
77
|
+
hatch run dev:verify
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Release
|
|
81
|
+
|
|
82
|
+
See `docs/release.md` for the manual tag and publish flow.
|
|
83
|
+
|
|
84
|
+
Create and push the annotated release tag from the checked-in release notes:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
hatch run dev:tag-push
|
|
88
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# osp-uio-integrations
|
|
2
|
+
|
|
3
|
+
Shared Python integration package for UiO-specific infrastructure systems such
|
|
4
|
+
as MREG and Nivlheim.
|
|
5
|
+
|
|
6
|
+
This repository is the concrete API-glue layer for external UiO systems. It is
|
|
7
|
+
meant to keep authentication, request/response handling, error mapping, and
|
|
8
|
+
small normalization helpers in one place so providers and transitional
|
|
9
|
+
orchestrator code do not duplicate that plumbing.
|
|
10
|
+
|
|
11
|
+
For maintainer-facing internals and invariants, see `src/README.md`.
|
|
12
|
+
|
|
13
|
+
## Scope
|
|
14
|
+
|
|
15
|
+
- Reusable Python clients for UiO infrastructure services
|
|
16
|
+
- Shared transport/auth/session glue
|
|
17
|
+
- API-specific response parsing and error translation
|
|
18
|
+
- Small stable normalized helper types where duplication would otherwise grow
|
|
19
|
+
|
|
20
|
+
## Current focus
|
|
21
|
+
|
|
22
|
+
The first concrete integration is a small sync MREG library with:
|
|
23
|
+
|
|
24
|
+
- explicit transport and auth handling
|
|
25
|
+
- optional interactive login for token bootstrap
|
|
26
|
+
- request metadata headers such as `User-Agent` and `X-Correlation-ID`
|
|
27
|
+
- a host-focused surface covering queries, lifecycle, history, addressing,
|
|
28
|
+
contacts, CNAMEs, and explicit DNS record modules
|
|
29
|
+
- room to grow into further MREG areas without flattening everything into
|
|
30
|
+
one module
|
|
31
|
+
|
|
32
|
+
## Non-goals
|
|
33
|
+
|
|
34
|
+
- Provider workflow or execution logic
|
|
35
|
+
- Ownership, approval, or placement policy
|
|
36
|
+
- Orchestrator/provider wire contracts
|
|
37
|
+
- Provider-specific planning decisions
|
|
38
|
+
|
|
39
|
+
## Install
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install osp-uio-integrations
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Development
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
env -u VIRTUAL_ENV uv sync --extra dev
|
|
49
|
+
hatch shell
|
|
50
|
+
hatch run dev:check
|
|
51
|
+
hatch run dev:build
|
|
52
|
+
hatch run dev:verify
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Release
|
|
56
|
+
|
|
57
|
+
See `docs/release.md` for the manual tag and publish flow.
|
|
58
|
+
|
|
59
|
+
Create and push the annotated release tag from the checked-in release notes:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
hatch run dev:tag-push
|
|
63
|
+
```
|