Initieret

This commit is contained in:
2026-03-06 17:03:47 +01:00
commit 71f70b3d75
40 changed files with 130 additions and 0 deletions

0
.env.example Normal file
View File

13
.gitignore vendored Normal file
View File

@@ -0,0 +1,13 @@
__pycache__/
*.pyc
*.pyo
*.pyd
.venv/
venv/
build/
dist/
*.spec
.pytest_cache/
.mypy_cache/
.ruff_cache/
.env

21
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,21 @@
{
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.analysis.extraPaths": [
"${workspaceFolder}/src"
],
"python.analysis.typeCheckingMode": "basic",
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
}
},
"ruff.nativeServer": "on",
"files.exclude": {
"**/__pycache__": true,
".pytest_cache": true,
".ruff_cache": true
}
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# JsonXMLUdpakker
Moderne Python-projekt til JSON/XML-udpakning, YAML-konfiguration, DDL-generering og SQL move scripts.

30
pyproject.toml Normal file
View File

@@ -0,0 +1,30 @@
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "jsonxmludpakker"
version = "0.1.0"
description = "JSON/XML udpakker med DDL og SQL generator"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"PyYAML>=6.0",
"python-dotenv>=1.0"
]
[project.scripts]
jsonxml-extract = "jsonxmludpakker.cli_extract:main"
jsonxml-ddl = "jsonxmludpakker.cli_ddl:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I"]

View File

@@ -0,0 +1,12 @@
Metadata-Version: 2.4
Name: jsonxmludpakker
Version: 0.1.0
Summary: JSON/XML udpakker med DDL og SQL generator
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: PyYAML>=6.0
Requires-Dist: python-dotenv>=1.0
# JsonXMLUdpakker
Moderne Python-projekt til JSON/XML-udpakning, YAML-konfiguration, DDL-generering og SQL move scripts.

View File

@@ -0,0 +1,36 @@
README.md
pyproject.toml
src/jsonxmludpakker/__init__.py
src/jsonxmludpakker/__main__.py
src/jsonxmludpakker/cli_ddl.py
src/jsonxmludpakker/cli_extract.py
src/jsonxmludpakker/config.py
src/jsonxmludpakker/logging_config.py
src/jsonxmludpakker.egg-info/PKG-INFO
src/jsonxmludpakker.egg-info/SOURCES.txt
src/jsonxmludpakker.egg-info/dependency_links.txt
src/jsonxmludpakker.egg-info/entry_points.txt
src/jsonxmludpakker.egg-info/requires.txt
src/jsonxmludpakker.egg-info/top_level.txt
src/jsonxmludpakker/analyzers/__init__.py
src/jsonxmludpakker/analyzers/relation_detector.py
src/jsonxmludpakker/analyzers/schema_builder.py
src/jsonxmludpakker/analyzers/type_inference.py
src/jsonxmludpakker/generators/__init__.py
src/jsonxmludpakker/generators/ddl_generator.py
src/jsonxmludpakker/generators/move_sql_generator.py
src/jsonxmludpakker/generators/yaml_generator.py
src/jsonxmludpakker/models/__init__.py
src/jsonxmludpakker/models/config_models.py
src/jsonxmludpakker/models/schema.py
src/jsonxmludpakker/readers/__init__.py
src/jsonxmludpakker/readers/json_reader.py
src/jsonxmludpakker/readers/xml_reader.py
src/jsonxmludpakker/services/__init__.py
src/jsonxmludpakker/services/ddl_pipeline.py
src/jsonxmludpakker/services/extract_pipeline.py
src/jsonxmludpakker/utils/__init__.py
src/jsonxmludpakker/utils/file_utils.py
src/jsonxmludpakker/utils/text_utils.py
tests/test_ddl_generator.py
tests/test_schema_builder.py

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,3 @@
[console_scripts]
jsonxml-ddl = jsonxmludpakker.cli_ddl:main
jsonxml-extract = jsonxmludpakker.cli_extract:main

View File

@@ -0,0 +1,2 @@
PyYAML>=6.0
python-dotenv>=1.0

View File

@@ -0,0 +1 @@
jsonxmludpakker

View File

View File

@@ -0,0 +1,4 @@
from jsonxmludpakker.cli_extract import main
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,2 @@
def main():
print("ddl generator starter")

View File

@@ -0,0 +1,2 @@
def main():
print("json/xml extract starter")

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
tests/__init__.py Normal file
View File

View File

View File