From a160083ac2e1fc0a32bb3619a2a04177fc496f59 Mon Sep 17 00:00:00 2001 From: Gabriel Gazola Milan Date: Fri, 24 Nov 2023 14:10:11 -0300 Subject: [PATCH] chore: move stuff around --- .vscode/settings.json | 3 +++ .flake8 => lib/.flake8 | 0 .gitignore => lib/.gitignore | 0 README.md => lib/README.md | 0 {fhir_utils => lib/fhir_utils}/__init__.py | 0 {fhir_utils => lib/fhir_utils}/conf.py | 0 {fhir_utils => lib/fhir_utils}/healthcare_api.py | 0 {fhir_utils => lib/fhir_utils}/utils.py | 5 +++-- {fhir_utils => lib/fhir_utils}/version.py | 0 poetry.lock => lib/poetry.lock | 0 pyproject.toml => lib/pyproject.toml | 0 pytest.ini => lib/pytest.ini | 0 {scripts => lib/scripts}/__init__.py | 0 {scripts => lib/scripts}/docs.py | 0 {scripts => lib/scripts}/lint.py | 0 {scripts => lib/scripts}/test.py | 0 {tests => lib/tests}/__init__.py | 0 {tests => lib/tests}/test_sanity.py | 0 18 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json rename .flake8 => lib/.flake8 (100%) rename .gitignore => lib/.gitignore (100%) rename README.md => lib/README.md (100%) rename {fhir_utils => lib/fhir_utils}/__init__.py (100%) rename {fhir_utils => lib/fhir_utils}/conf.py (100%) rename {fhir_utils => lib/fhir_utils}/healthcare_api.py (100%) rename {fhir_utils => lib/fhir_utils}/utils.py (97%) rename {fhir_utils => lib/fhir_utils}/version.py (100%) rename poetry.lock => lib/poetry.lock (100%) rename pyproject.toml => lib/pyproject.toml (100%) rename pytest.ini => lib/pytest.ini (100%) rename {scripts => lib/scripts}/__init__.py (100%) rename {scripts => lib/scripts}/docs.py (100%) rename {scripts => lib/scripts}/lint.py (100%) rename {scripts => lib/scripts}/test.py (100%) rename {tests => lib/tests}/__init__.py (100%) rename {tests => lib/tests}/test_sanity.py (100%) diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..b7368ca --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.formatting.provider": "black" +} diff --git a/.flake8 b/lib/.flake8 similarity index 100% rename from .flake8 rename to lib/.flake8 diff --git a/.gitignore b/lib/.gitignore similarity index 100% rename from .gitignore rename to lib/.gitignore diff --git a/README.md b/lib/README.md similarity index 100% rename from README.md rename to lib/README.md diff --git a/fhir_utils/__init__.py b/lib/fhir_utils/__init__.py similarity index 100% rename from fhir_utils/__init__.py rename to lib/fhir_utils/__init__.py diff --git a/fhir_utils/conf.py b/lib/fhir_utils/conf.py similarity index 100% rename from fhir_utils/conf.py rename to lib/fhir_utils/conf.py diff --git a/fhir_utils/healthcare_api.py b/lib/fhir_utils/healthcare_api.py similarity index 100% rename from fhir_utils/healthcare_api.py rename to lib/fhir_utils/healthcare_api.py diff --git a/fhir_utils/utils.py b/lib/fhir_utils/utils.py similarity index 97% rename from fhir_utils/utils.py rename to lib/fhir_utils/utils.py index de53398..661943c 100644 --- a/fhir_utils/utils.py +++ b/lib/fhir_utils/utils.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- import json import xmltodict @@ -25,8 +26,8 @@ def xml_to_dict(xml_file_path): except Exception as e: print(f"Error: Unable to parse XML file. Reason: {str(e)}") return None - - + + def save_to_json(dict, json_path,): with open(json_path, "w") as file: json.dump(dict, file) \ No newline at end of file diff --git a/fhir_utils/version.py b/lib/fhir_utils/version.py similarity index 100% rename from fhir_utils/version.py rename to lib/fhir_utils/version.py diff --git a/poetry.lock b/lib/poetry.lock similarity index 100% rename from poetry.lock rename to lib/poetry.lock diff --git a/pyproject.toml b/lib/pyproject.toml similarity index 100% rename from pyproject.toml rename to lib/pyproject.toml diff --git a/pytest.ini b/lib/pytest.ini similarity index 100% rename from pytest.ini rename to lib/pytest.ini diff --git a/scripts/__init__.py b/lib/scripts/__init__.py similarity index 100% rename from scripts/__init__.py rename to lib/scripts/__init__.py diff --git a/scripts/docs.py b/lib/scripts/docs.py similarity index 100% rename from scripts/docs.py rename to lib/scripts/docs.py diff --git a/scripts/lint.py b/lib/scripts/lint.py similarity index 100% rename from scripts/lint.py rename to lib/scripts/lint.py diff --git a/scripts/test.py b/lib/scripts/test.py similarity index 100% rename from scripts/test.py rename to lib/scripts/test.py diff --git a/tests/__init__.py b/lib/tests/__init__.py similarity index 100% rename from tests/__init__.py rename to lib/tests/__init__.py diff --git a/tests/test_sanity.py b/lib/tests/test_sanity.py similarity index 100% rename from tests/test_sanity.py rename to lib/tests/test_sanity.py