pycharter 0.0.24__py3-none-any.whl → 0.0.26__py3-none-any.whl
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.
- pycharter/__init__.py +6 -0
- pycharter/api/README.md +340 -0
- {api → pycharter/api}/__init__.py +1 -1
- {api → pycharter/api}/dependencies/__init__.py +2 -2
- pycharter/api/dependencies/auth.py +158 -0
- {api → pycharter/api}/main.py +32 -4
- {api → pycharter/api}/models/__init__.py +4 -4
- pycharter/api/models/etl.py +66 -0
- {api → pycharter/api}/routes/v1/__init__.py +5 -1
- pycharter/api/routes/v1/auth.py +97 -0
- {api → pycharter/api}/routes/v1/contracts.py +14 -12
- {api → pycharter/api}/routes/v1/docs.py +2 -2
- pycharter/api/routes/v1/etl.py +131 -0
- {api → pycharter/api}/routes/v1/evolution.py +2 -2
- {api → pycharter/api}/routes/v1/metadata.py +5 -5
- {api → pycharter/api}/routes/v1/quality.py +3 -3
- {api → pycharter/api}/routes/v1/schemas.py +1 -1
- {api → pycharter/api}/routes/v1/settings.py +1 -1
- {api → pycharter/api}/routes/v1/tracking.py +1 -1
- {api → pycharter/api}/routes/v1/validation.py +2 -2
- {api → pycharter/api}/routes/v1/validation_jobs.py +3 -3
- pycharter/cli.py +9 -11
- pycharter/config.py +69 -0
- pycharter/contract_builder/builder.py +32 -37
- pycharter/data/seed/compliance_frameworks.yaml +22 -0
- pycharter/data/seed/contracts.yaml +130 -0
- pycharter/data/seed/data_feeds.yaml +22 -0
- pycharter/data/seed/domains.yaml +13 -0
- pycharter/data/seed/environments.yaml +19 -0
- pycharter/data/seed/owners.yaml +21 -0
- pycharter/data/seed/systems.yaml +13 -0
- pycharter/data/seed/tags.yaml +25 -0
- pycharter/data/templates/contract/README.md +161 -0
- pycharter/data/templates/contract/template_contract.yaml +37 -0
- pycharter/data/templates/etl/README.md +1 -1
- pycharter/data/templates/etl/extract_with_validation.yaml +86 -0
- pycharter/data/templates/etl/load_with_validation.yaml +111 -0
- pycharter/data/templates/etl/settings.yaml +55 -0
- pycharter/db/README.md +179 -0
- pycharter/db/cli.py +126 -4
- pycharter/db/migrations/versions/20260122000000_change_artifact_unique_constraints_to_title_version.py +2 -2
- pycharter/db/schemas/README.md +96 -0
- pycharter/etl_generator/ASYNC_AND_EXECUTION.md +91 -0
- pycharter/etl_generator/INTERFACES.md +142 -0
- pycharter/etl_generator/README.md +271 -0
- pycharter/etl_generator/TRANSFORMATION_GUIDE.md +452 -0
- pycharter/etl_generator/__init__.py +47 -11
- pycharter/etl_generator/config_models.py +673 -0
- pycharter/etl_generator/config_validator.py +133 -157
- pycharter/etl_generator/context.py +3 -0
- pycharter/etl_generator/database.py +5 -1
- pycharter/etl_generator/extractors/__init__.py +4 -2
- pycharter/etl_generator/extractors/cloud_storage.py +9 -9
- pycharter/etl_generator/extractors/database.py +2 -2
- pycharter/etl_generator/extractors/factory.py +15 -33
- pycharter/etl_generator/extractors/file.py +2 -2
- pycharter/etl_generator/extractors/http.py +2 -2
- pycharter/etl_generator/extractors/mongodb.py +393 -0
- pycharter/etl_generator/extractors/streaming.py +2 -2
- pycharter/etl_generator/loaders/__init__.py +15 -9
- pycharter/etl_generator/loaders/{cloud_storage_loader.py → cloud_storage.py} +95 -2
- pycharter/etl_generator/loaders/factory.py +16 -29
- pycharter/etl_generator/loaders/file.py +135 -1
- pycharter/etl_generator/loaders/mongodb.py +416 -0
- pycharter/etl_generator/pipeline.py +283 -164
- pycharter/etl_generator/result.py +16 -0
- pycharter/etl_generator/schemas/__init__.py +71 -42
- pycharter/etl_generator/transformers/config.py +3 -2
- pycharter/etl_generator/transformers/simple_operations.py +57 -4
- pycharter/etl_generator/validation.py +551 -0
- pycharter/metadata_store/README.md +229 -0
- pycharter/quality/README.md +235 -0
- pycharter/runtime_validator/__init__.py +7 -0
- pycharter/runtime_validator/utils.py +33 -0
- pycharter/runtime_validator/validator.py +13 -10
- pycharter/ui/.eslintrc.json +4 -0
- pycharter/ui/README.md +186 -0
- {ui → pycharter/ui}/__init__.py +3 -3
- pycharter/ui/components.json +17 -0
- pycharter/ui/package-lock.json +6617 -0
- pycharter/ui/package.json +37 -0
- {ui → pycharter/ui}/server.py +7 -8
- pycharter/ui/static/404/index.html +1 -0
- pycharter/ui/static/404.html +1 -0
- pycharter/ui/static/__next.__PAGE__.txt +10 -0
- pycharter/ui/static/__next._full.txt +30 -0
- pycharter/ui/static/__next._head.txt +7 -0
- pycharter/ui/static/__next._index.txt +9 -0
- pycharter/ui/static/__next._tree.txt +2 -0
- pycharter/ui/static/_next/static/YCnlK66gA7FV5vvcixspB/_clientMiddlewareManifest.json +1 -0
- pycharter/ui/static/_next/static/chunks/0fc1f70b787b8845.js +1 -0
- pycharter/ui/static/_next/static/chunks/17bb8075d7b75663.css +1 -0
- pycharter/ui/static/_next/static/chunks/381932864dcbfdb8.js +1 -0
- pycharter/ui/static/_next/static/chunks/4c951b8e4507e2b3.js +1 -0
- pycharter/ui/static/_next/static/chunks/68b87a6f65abd3ed.js +1 -0
- pycharter/ui/static/_next/static/chunks/78572617b8fae189.js +1 -0
- pycharter/ui/static/_next/static/chunks/8b7be2803e3fe184.js +1 -0
- pycharter/ui/static/_next/static/chunks/a8e529fd1e67f121.js +1 -0
- pycharter/ui/static/_next/static/chunks/c35d998f80be3ff5.js +1 -0
- pycharter/ui/static/_next/static/chunks/e453aa5d01c32c17.js +1 -0
- pycharter/ui/static/_next/static/chunks/f2d240eb057f898a.js +970 -0
- pycharter/ui/static/_next/static/chunks/f7722448f6040846.js +1 -0
- pycharter/ui/static/_not-found/__next._full.txt +17 -0
- pycharter/ui/static/_not-found/__next._head.txt +7 -0
- pycharter/ui/static/_not-found/__next._index.txt +9 -0
- pycharter/ui/static/_not-found/__next._not-found.__PAGE__.txt +5 -0
- pycharter/ui/static/_not-found/__next._not-found.txt +4 -0
- pycharter/ui/static/_not-found/__next._tree.txt +2 -0
- pycharter/ui/static/_not-found/index.html +1 -0
- pycharter/ui/static/_not-found/index.txt +17 -0
- pycharter/ui/static/contracts/__next._full.txt +21 -0
- pycharter/ui/static/contracts/__next._head.txt +7 -0
- pycharter/ui/static/contracts/__next._index.txt +9 -0
- pycharter/ui/static/contracts/__next._tree.txt +2 -0
- pycharter/ui/static/contracts/__next.contracts.__PAGE__.txt +9 -0
- pycharter/ui/static/contracts/__next.contracts.txt +4 -0
- pycharter/ui/static/contracts/index.html +1 -0
- pycharter/ui/static/contracts/index.txt +21 -0
- pycharter/ui/static/documentation/__next._full.txt +21 -0
- pycharter/ui/static/documentation/__next._head.txt +7 -0
- pycharter/ui/static/documentation/__next._index.txt +9 -0
- pycharter/ui/static/documentation/__next._tree.txt +2 -0
- pycharter/ui/static/documentation/__next.documentation.__PAGE__.txt +9 -0
- pycharter/ui/static/documentation/__next.documentation.txt +4 -0
- pycharter/ui/static/documentation/index.html +93 -0
- pycharter/ui/static/documentation/index.txt +21 -0
- pycharter/ui/static/etl/__next._full.txt +21 -0
- pycharter/ui/static/etl/__next._head.txt +7 -0
- pycharter/ui/static/etl/__next._index.txt +9 -0
- pycharter/ui/static/etl/__next._tree.txt +2 -0
- pycharter/ui/static/etl/__next.etl.__PAGE__.txt +9 -0
- pycharter/ui/static/etl/__next.etl.txt +4 -0
- pycharter/ui/static/etl/index.html +2 -0
- pycharter/ui/static/etl/index.txt +21 -0
- pycharter/ui/static/index.html +1 -0
- pycharter/ui/static/index.txt +30 -0
- pycharter/ui/static/metadata/__next._full.txt +21 -0
- pycharter/ui/static/metadata/__next._head.txt +7 -0
- pycharter/ui/static/metadata/__next._index.txt +9 -0
- pycharter/ui/static/metadata/__next._tree.txt +2 -0
- pycharter/ui/static/metadata/__next.metadata.__PAGE__.txt +9 -0
- pycharter/ui/static/metadata/__next.metadata.txt +4 -0
- pycharter/ui/static/metadata/index.html +1 -0
- pycharter/ui/static/metadata/index.txt +21 -0
- pycharter/ui/static/quality/__next._full.txt +21 -0
- pycharter/ui/static/quality/__next._head.txt +7 -0
- pycharter/ui/static/quality/__next._index.txt +9 -0
- pycharter/ui/static/quality/__next._tree.txt +2 -0
- pycharter/ui/static/quality/__next.quality.__PAGE__.txt +9 -0
- pycharter/ui/static/quality/__next.quality.txt +4 -0
- pycharter/ui/static/quality/index.html +2 -0
- pycharter/ui/static/quality/index.txt +21 -0
- pycharter/ui/static/rules/__next._full.txt +21 -0
- pycharter/ui/static/rules/__next._head.txt +7 -0
- pycharter/ui/static/rules/__next._index.txt +9 -0
- pycharter/ui/static/rules/__next._tree.txt +2 -0
- pycharter/ui/static/rules/__next.rules.__PAGE__.txt +9 -0
- pycharter/ui/static/rules/__next.rules.txt +4 -0
- pycharter/ui/static/rules/index.html +1 -0
- pycharter/ui/static/rules/index.txt +21 -0
- pycharter/ui/static/schemas/__next._full.txt +21 -0
- pycharter/ui/static/schemas/__next._head.txt +7 -0
- pycharter/ui/static/schemas/__next._index.txt +9 -0
- pycharter/ui/static/schemas/__next._tree.txt +2 -0
- pycharter/ui/static/schemas/__next.schemas.__PAGE__.txt +9 -0
- pycharter/ui/static/schemas/__next.schemas.txt +4 -0
- pycharter/ui/static/schemas/index.html +1 -0
- pycharter/ui/static/schemas/index.txt +21 -0
- pycharter/ui/static/settings/__next._full.txt +21 -0
- pycharter/ui/static/settings/__next._head.txt +7 -0
- pycharter/ui/static/settings/__next._index.txt +9 -0
- pycharter/ui/static/settings/__next._tree.txt +2 -0
- pycharter/ui/static/settings/__next.settings.__PAGE__.txt +9 -0
- pycharter/ui/static/settings/__next.settings.txt +4 -0
- pycharter/ui/static/settings/index.html +1 -0
- pycharter/ui/static/settings/index.txt +21 -0
- pycharter/ui/static/static/_next/static/2gKjNv6YvE6BcIdFthBLs/_clientMiddlewareManifest.json +1 -0
- pycharter/ui/static/static/static/_next/static/0rYA78L88aUyD2Uh38hhX/_clientMiddlewareManifest.json +1 -0
- pycharter/ui/static/static/static/_next/static/chunks/f7d1a90dd75d2572.js +1 -0
- pycharter/ui/static/static/static/static/.gitkeep +0 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/222442f6da32302a.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/247eb132b7f7b574.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/297d55555b71baba.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/414e77373f8ff61c.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/652ad0aa26265c47.js +2 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/9c23f44fff36548a.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/a6dad97d9634a72d.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/b32a0963684b9933.js +4 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/db913959c675cea6.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/f2e7afeab1178138.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/ff1a16fafef87110.js +1 -0
- pycharter/ui/static/static/static/static/_next/static/chunks/turbopack-ffcb7ab6794027ef.js +3 -0
- pycharter/ui/static/static/static/static/_next/static/tNTkVW6puVXC4bAm4WrHl/_buildManifest.js +11 -0
- pycharter/ui/static/static/static/static/_next/static/tNTkVW6puVXC4bAm4WrHl/_clientMiddlewareManifest.json +1 -0
- pycharter/ui/static/static/static/static/_next/static/tNTkVW6puVXC4bAm4WrHl/_ssgManifest.js +1 -0
- pycharter/ui/static/validation/__next._full.txt +21 -0
- pycharter/ui/static/validation/__next._head.txt +7 -0
- pycharter/ui/static/validation/__next._index.txt +9 -0
- pycharter/ui/static/validation/__next._tree.txt +2 -0
- pycharter/ui/static/validation/__next.validation.__PAGE__.txt +9 -0
- pycharter/ui/static/validation/__next.validation.txt +4 -0
- pycharter/ui/static/validation/index.html +1 -0
- pycharter/ui/static/validation/index.txt +21 -0
- pycharter/ui/tsconfig.json +42 -0
- pycharter/worker/README.md +187 -0
- pycharter/worker/backends/__init__.py +8 -0
- pycharter/worker/backends/base.py +46 -0
- pycharter/worker/backends/spark.py +233 -0
- {worker → pycharter/worker}/cli.py +1 -1
- {worker → pycharter/worker}/processor.py +2 -2
- pycharter/worker/queue/__init__.py +8 -0
- pycharter/worker/queue/redis_queue.py +147 -0
- {pycharter-0.0.24.dist-info → pycharter-0.0.26.dist-info}/METADATA +57 -26
- pycharter-0.0.26.dist-info/RECORD +702 -0
- pycharter-0.0.26.dist-info/top_level.txt +1 -0
- pycharter/etl_generator/config_loader.py +0 -394
- pycharter/etl_generator/loaders/cloud.py +0 -87
- pycharter/etl_generator/loaders/file_loader.py +0 -130
- pycharter-0.0.24.dist-info/RECORD +0 -543
- pycharter-0.0.24.dist-info/top_level.txt +0 -4
- {api → pycharter/api}/dependencies/database.py +0 -0
- {api → pycharter/api}/dependencies/store.py +0 -0
- {api → pycharter/api}/models/contracts.py +0 -0
- {api → pycharter/api}/models/docs.py +0 -0
- {api → pycharter/api}/models/evolution.py +0 -0
- {api → pycharter/api}/models/metadata.py +0 -0
- {api → pycharter/api}/models/metadata_entities.py +0 -0
- {api → pycharter/api}/models/quality.py +0 -0
- {api → pycharter/api}/models/schemas.py +0 -0
- {api → pycharter/api}/models/tracking.py +0 -0
- {api → pycharter/api}/models/validation.py +0 -0
- {api → pycharter/api}/routes/__init__.py +0 -0
- {api → pycharter/api}/routes/v1/templates.py +0 -0
- {api → pycharter/api}/utils.py +0 -0
- {ui → pycharter/ui}/build.py +0 -0
- {ui → pycharter/ui}/dev.py +0 -0
- {ui → pycharter/ui}/static/.gitkeep +0 -0
- {ui/static/_next/static/2gKjNv6YvE6BcIdFthBLs → pycharter/ui/static/_next/static/YCnlK66gA7FV5vvcixspB}/_buildManifest.js +0 -0
- {ui/static/_next/static/2gKjNv6YvE6BcIdFthBLs → pycharter/ui/static/_next/static/YCnlK66gA7FV5vvcixspB}/_ssgManifest.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/222442f6da32302a.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/247eb132b7f7b574.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/297d55555b71baba.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/414e77373f8ff61c.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/652ad0aa26265c47.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/9c23f44fff36548a.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/a6dad97d9634a72d.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/b32a0963684b9933.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/db913959c675cea6.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/f2e7afeab1178138.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/f7d1a90dd75d2572.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/ff1a16fafef87110.js +0 -0
- {ui → pycharter/ui}/static/_next/static/chunks/turbopack-ffcb7ab6794027ef.js +0 -0
- {ui → pycharter/ui}/static/static/.gitkeep +0 -0
- {ui → pycharter/ui/static}/static/404/index.html +0 -0
- {ui → pycharter/ui/static}/static/404.html +0 -0
- {ui → pycharter/ui/static}/static/__next.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/__next._tree.txt +0 -0
- {ui/static/static/_next/static/0rYA78L88aUyD2Uh38hhX → pycharter/ui/static/static/_next/static/2gKjNv6YvE6BcIdFthBLs}/_buildManifest.js +0 -0
- {ui/static/static/_next/static/0rYA78L88aUyD2Uh38hhX → pycharter/ui/static/static/_next/static/2gKjNv6YvE6BcIdFthBLs}/_ssgManifest.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/13d4a0fbd74c1ee4.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/222442f6da32302a.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/247eb132b7f7b574.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/26dfc590f7714c03.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/297d55555b71baba.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/2ab439ce003cd691.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/2edb43b48432ac04.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/34d289e6db2ef551.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/414e77373f8ff61c.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/49ca65abd26ae49e.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/652ad0aa26265c47.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/9667e7a3d359eb39.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/99508d9d5869cc27.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/9c23f44fff36548a.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/a6dad97d9634a72d.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/b313c35a6ba76574.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/b32a0963684b9933.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/c69f6cba366bd988.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/d2363397e1b2bcab.css +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/db913959c675cea6.js +0 -0
- {ui → pycharter/ui/static}/static/_next/static/chunks/f061a4be97bfc3b3.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/f2e7afeab1178138.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/f7d1a90dd75d2572.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/ff1a16fafef87110.js +0 -0
- {ui → pycharter/ui}/static/static/_next/static/chunks/turbopack-ffcb7ab6794027ef.js +0 -0
- {ui → pycharter/ui/static}/static/_not-found/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/_not-found/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/_not-found/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/_not-found/__next._not-found.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/_not-found/__next._not-found.txt +0 -0
- {ui → pycharter/ui/static}/static/_not-found/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/_not-found/index.html +0 -0
- {ui → pycharter/ui/static}/static/_not-found/index.txt +0 -0
- {ui → pycharter/ui/static}/static/contracts/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/contracts/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/contracts/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/contracts/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/contracts/__next.contracts.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/contracts/__next.contracts.txt +0 -0
- {ui → pycharter/ui/static}/static/contracts/index.html +0 -0
- {ui → pycharter/ui/static}/static/contracts/index.txt +0 -0
- {ui → pycharter/ui/static}/static/documentation/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/documentation/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/documentation/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/documentation/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/documentation/__next.documentation.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/documentation/__next.documentation.txt +0 -0
- {ui → pycharter/ui/static}/static/documentation/index.html +0 -0
- {ui → pycharter/ui/static}/static/documentation/index.txt +0 -0
- {ui → pycharter/ui/static}/static/index.html +0 -0
- {ui → pycharter/ui/static}/static/index.txt +0 -0
- {ui → pycharter/ui/static}/static/metadata/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/metadata/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/metadata/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/metadata/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/metadata/__next.metadata.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/metadata/__next.metadata.txt +0 -0
- {ui → pycharter/ui/static}/static/metadata/index.html +0 -0
- {ui → pycharter/ui/static}/static/metadata/index.txt +0 -0
- {ui → pycharter/ui/static}/static/quality/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/quality/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/quality/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/quality/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/quality/__next.quality.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/quality/__next.quality.txt +0 -0
- {ui → pycharter/ui/static}/static/quality/index.html +0 -0
- {ui → pycharter/ui/static}/static/quality/index.txt +0 -0
- {ui → pycharter/ui/static}/static/rules/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/rules/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/rules/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/rules/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/rules/__next.rules.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/rules/__next.rules.txt +0 -0
- {ui → pycharter/ui/static}/static/rules/index.html +0 -0
- {ui → pycharter/ui/static}/static/rules/index.txt +0 -0
- {ui → pycharter/ui/static}/static/schemas/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/schemas/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/schemas/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/schemas/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/schemas/__next.schemas.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/schemas/__next.schemas.txt +0 -0
- {ui → pycharter/ui/static}/static/schemas/index.html +0 -0
- {ui → pycharter/ui/static}/static/schemas/index.txt +0 -0
- {ui → pycharter/ui/static}/static/settings/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/settings/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/settings/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/settings/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/settings/__next.settings.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/settings/__next.settings.txt +0 -0
- {ui → pycharter/ui/static}/static/settings/index.html +0 -0
- {ui → pycharter/ui/static}/static/settings/index.txt +0 -0
- {ui → pycharter/ui}/static/static/static/.gitkeep +0 -0
- {ui → pycharter/ui/static}/static/static/404/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/404.html +0 -0
- {ui → pycharter/ui/static}/static/static/__next.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/__next._tree.txt +0 -0
- {ui/static/static/static/_next/static/tNTkVW6puVXC4bAm4WrHl → pycharter/ui/static/static/static/_next/static/0rYA78L88aUyD2Uh38hhX}/_buildManifest.js +0 -0
- {ui/static/static/static/_next/static/tNTkVW6puVXC4bAm4WrHl → pycharter/ui/static/static/static/_next/static/0rYA78L88aUyD2Uh38hhX}/_ssgManifest.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/13d4a0fbd74c1ee4.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/222442f6da32302a.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/247eb132b7f7b574.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/297d55555b71baba.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/2ab439ce003cd691.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/2edb43b48432ac04.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/414e77373f8ff61c.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/49ca65abd26ae49e.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/5e04d10c4a7b58a3.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/652ad0aa26265c47.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/75d88a058d8ffaa6.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/8c89634cf6bad76f.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/9667e7a3d359eb39.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/9c23f44fff36548a.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/a6dad97d9634a72d.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/b32a0963684b9933.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/c4fa4f4114b7c352.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/c69f6cba366bd988.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/d2363397e1b2bcab.css +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/db913959c675cea6.js +0 -0
- {ui → pycharter/ui/static}/static/static/_next/static/chunks/f061a4be97bfc3b3.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/f2e7afeab1178138.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/ff1a16fafef87110.js +0 -0
- {ui → pycharter/ui}/static/static/static/_next/static/chunks/turbopack-ffcb7ab6794027ef.js +0 -0
- {ui → pycharter/ui/static}/static/static/_not-found/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/_not-found/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/_not-found/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/_not-found/__next._not-found.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/_not-found/__next._not-found.txt +0 -0
- {ui → pycharter/ui/static}/static/static/_not-found/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/_not-found/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/_not-found/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/contracts/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/contracts/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/contracts/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/contracts/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/contracts/__next.contracts.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/contracts/__next.contracts.txt +0 -0
- {ui → pycharter/ui/static}/static/static/contracts/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/contracts/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/documentation/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/documentation/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/documentation/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/documentation/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/documentation/__next.documentation.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/documentation/__next.documentation.txt +0 -0
- {ui → pycharter/ui/static}/static/static/documentation/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/documentation/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/metadata/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/metadata/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/metadata/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/metadata/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/metadata/__next.metadata.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/metadata/__next.metadata.txt +0 -0
- {ui → pycharter/ui/static}/static/static/metadata/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/metadata/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/quality/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/quality/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/quality/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/quality/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/quality/__next.quality.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/quality/__next.quality.txt +0 -0
- {ui → pycharter/ui/static}/static/static/quality/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/quality/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/rules/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/rules/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/rules/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/rules/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/rules/__next.rules.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/rules/__next.rules.txt +0 -0
- {ui → pycharter/ui/static}/static/static/rules/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/rules/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/schemas/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/schemas/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/schemas/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/schemas/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/schemas/__next.schemas.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/schemas/__next.schemas.txt +0 -0
- {ui → pycharter/ui/static}/static/static/schemas/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/schemas/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/settings/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/settings/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/settings/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/settings/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/settings/__next.settings.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/settings/__next.settings.txt +0 -0
- {ui → pycharter/ui/static}/static/static/settings/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/settings/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/404/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/404.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/__next.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/2ab439ce003cd691.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/49ca65abd26ae49e.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/4e310fe5005770a3.css +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/5e04d10c4a7b58a3.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/5fc14c00a2779dc5.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/75d88a058d8ffaa6.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/8c89634cf6bad76f.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/9667e7a3d359eb39.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/b584574fdc8ab13e.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/c69f6cba366bd988.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/d5989c94d3614b3a.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_next/static/chunks/f061a4be97bfc3b3.js +0 -0
- {ui → pycharter/ui/static}/static/static/static/_not-found/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/_not-found/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/_not-found/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/_not-found/__next._not-found.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/_not-found/__next._not-found.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/_not-found/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/_not-found/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/_not-found/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/contracts/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/contracts/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/contracts/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/contracts/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/contracts/__next.contracts.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/contracts/__next.contracts.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/contracts/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/contracts/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/documentation/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/documentation/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/documentation/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/documentation/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/documentation/__next.documentation.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/documentation/__next.documentation.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/documentation/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/documentation/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/metadata/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/metadata/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/metadata/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/metadata/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/metadata/__next.metadata.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/metadata/__next.metadata.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/metadata/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/metadata/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/quality/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/quality/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/quality/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/quality/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/quality/__next.quality.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/quality/__next.quality.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/quality/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/quality/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/rules/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/rules/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/rules/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/rules/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/rules/__next.rules.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/rules/__next.rules.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/rules/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/rules/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/schemas/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/schemas/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/schemas/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/schemas/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/schemas/__next.schemas.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/schemas/__next.schemas.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/schemas/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/schemas/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/settings/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/settings/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/settings/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/settings/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/settings/__next.settings.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/settings/__next.settings.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/settings/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/settings/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/validation/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/validation/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/validation/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/validation/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/validation/__next.validation.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/validation/__next.validation.txt +0 -0
- {ui → pycharter/ui/static}/static/static/static/validation/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/static/validation/index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/validation/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/static/validation/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/static/validation/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/static/validation/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/static/validation/__next.validation.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/static/validation/__next.validation.txt +0 -0
- {ui → pycharter/ui/static}/static/static/validation/index.html +0 -0
- {ui → pycharter/ui/static}/static/static/validation/index.txt +0 -0
- {ui → pycharter/ui/static}/static/validation/__next._full.txt +0 -0
- {ui → pycharter/ui/static}/static/validation/__next._head.txt +0 -0
- {ui → pycharter/ui/static}/static/validation/__next._index.txt +0 -0
- {ui → pycharter/ui/static}/static/validation/__next._tree.txt +0 -0
- {ui → pycharter/ui/static}/static/validation/__next.validation.__PAGE__.txt +0 -0
- {ui → pycharter/ui/static}/static/validation/__next.validation.txt +0 -0
- {ui → pycharter/ui/static}/static/validation/index.html +0 -0
- {ui → pycharter/ui/static}/static/validation/index.txt +0 -0
- {worker → pycharter/worker}/__init__.py +0 -0
- {worker → pycharter/worker}/models.py +0 -0
- {pycharter-0.0.24.dist-info → pycharter-0.0.26.dist-info}/WHEEL +0 -0
- {pycharter-0.0.24.dist-info → pycharter-0.0.26.dist-info}/entry_points.txt +0 -0
- {pycharter-0.0.24.dist-info → pycharter-0.0.26.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
# ETL Transformation Guide
|
|
2
|
+
|
|
3
|
+
The ETL orchestrator supports three levels of transformation complexity, applied in order:
|
|
4
|
+
|
|
5
|
+
1. **Simple Operations** (declarative, easy to use)
|
|
6
|
+
2. **JSONata** (powerful query language for complex transformations)
|
|
7
|
+
3. **Custom Functions** (Python functions for advanced logic)
|
|
8
|
+
|
|
9
|
+
## Transformation Pipeline Order
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Raw Data → Simple Operations → JSONata → Custom Functions → Transformed Data
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Each step is optional and can be used independently or together.
|
|
16
|
+
|
|
17
|
+
## 1. Simple Operations (Recommended for Most Use Cases)
|
|
18
|
+
|
|
19
|
+
Simple, declarative operations that handle 90% of transformation needs.
|
|
20
|
+
|
|
21
|
+
### Configuration Format
|
|
22
|
+
|
|
23
|
+
You can use either the **new format** (grouped under `transform:`) or **legacy format** (top-level keys):
|
|
24
|
+
|
|
25
|
+
**New Format (Recommended):**
|
|
26
|
+
```yaml
|
|
27
|
+
transform:
|
|
28
|
+
rename:
|
|
29
|
+
oldName: new_name
|
|
30
|
+
camelCase: snake_case
|
|
31
|
+
convert:
|
|
32
|
+
price: float
|
|
33
|
+
quantity: integer
|
|
34
|
+
defaults:
|
|
35
|
+
status: "pending"
|
|
36
|
+
add:
|
|
37
|
+
full_name: "${first_name} ${last_name}"
|
|
38
|
+
created_at: "now()"
|
|
39
|
+
select:
|
|
40
|
+
- field1
|
|
41
|
+
- field2
|
|
42
|
+
drop:
|
|
43
|
+
- internal_id
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Legacy Format (Backward Compatible):**
|
|
47
|
+
```yaml
|
|
48
|
+
rename:
|
|
49
|
+
oldName: new_name
|
|
50
|
+
convert:
|
|
51
|
+
price: float
|
|
52
|
+
defaults:
|
|
53
|
+
status: "pending"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Available Operations
|
|
57
|
+
|
|
58
|
+
#### 1. `rename` - Rename Fields
|
|
59
|
+
|
|
60
|
+
Maps old field names to new field names.
|
|
61
|
+
|
|
62
|
+
```yaml
|
|
63
|
+
rename:
|
|
64
|
+
oldName: new_name
|
|
65
|
+
camelCase: snake_case
|
|
66
|
+
userId: user_id
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Example:**
|
|
70
|
+
```python
|
|
71
|
+
# Input
|
|
72
|
+
[{"oldName": "test", "camelCase": "value"}]
|
|
73
|
+
|
|
74
|
+
# Output
|
|
75
|
+
[{"new_name": "test", "snake_case": "value"}]
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### 2. `convert` - Type Conversion
|
|
79
|
+
|
|
80
|
+
Converts field types automatically.
|
|
81
|
+
|
|
82
|
+
**Supported types:**
|
|
83
|
+
- `string` / `str`
|
|
84
|
+
- `integer` / `int`
|
|
85
|
+
- `float` / `number` / `numeric`
|
|
86
|
+
- `boolean` / `bool`
|
|
87
|
+
- `datetime`
|
|
88
|
+
- `date`
|
|
89
|
+
|
|
90
|
+
```yaml
|
|
91
|
+
convert:
|
|
92
|
+
price: float
|
|
93
|
+
quantity: integer
|
|
94
|
+
active: boolean
|
|
95
|
+
created_at: datetime
|
|
96
|
+
birth_date: date
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Example:**
|
|
100
|
+
```python
|
|
101
|
+
# Input
|
|
102
|
+
[{"price": "10.5", "quantity": "5", "active": "true"}]
|
|
103
|
+
|
|
104
|
+
# Output
|
|
105
|
+
[{"price": 10.5, "quantity": 5, "active": True}]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### 3. `defaults` - Default Values
|
|
109
|
+
|
|
110
|
+
Sets default values for missing or null fields.
|
|
111
|
+
|
|
112
|
+
```yaml
|
|
113
|
+
defaults:
|
|
114
|
+
status: "pending"
|
|
115
|
+
priority: 0
|
|
116
|
+
category: "uncategorized"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
**Example:**
|
|
120
|
+
```python
|
|
121
|
+
# Input
|
|
122
|
+
[{"name": "test"}, {"name": "test2", "status": "active"}]
|
|
123
|
+
|
|
124
|
+
# Output
|
|
125
|
+
[{"name": "test", "status": "pending"}, {"name": "test2", "status": "active"}]
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
#### 4. `add` - Add Computed Fields
|
|
129
|
+
|
|
130
|
+
Adds new fields with computed values.
|
|
131
|
+
|
|
132
|
+
**Supported expressions:**
|
|
133
|
+
- Field references: `"${field_name}"`
|
|
134
|
+
- String concatenation: `"${first_name} ${last_name}"`
|
|
135
|
+
- Functions: `"now()"`, `"uuid()"`
|
|
136
|
+
- Literal values: `"static_value"`
|
|
137
|
+
|
|
138
|
+
```yaml
|
|
139
|
+
add:
|
|
140
|
+
full_name: "${first_name} ${last_name}"
|
|
141
|
+
created_at: "now()"
|
|
142
|
+
record_id: "uuid()"
|
|
143
|
+
source: "api"
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Example:**
|
|
147
|
+
```python
|
|
148
|
+
# Input
|
|
149
|
+
[{"first_name": "John", "last_name": "Doe"}]
|
|
150
|
+
|
|
151
|
+
# Output
|
|
152
|
+
[{
|
|
153
|
+
"first_name": "John",
|
|
154
|
+
"last_name": "Doe",
|
|
155
|
+
"full_name": "John Doe",
|
|
156
|
+
"created_at": "2024-01-01T12:00:00",
|
|
157
|
+
"record_id": "123e4567-e89b-12d3-a456-426614174000",
|
|
158
|
+
"source": "api"
|
|
159
|
+
}]
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
#### 5. `select` - Keep Only Specified Fields
|
|
163
|
+
|
|
164
|
+
Keeps only the specified fields (removes all others).
|
|
165
|
+
|
|
166
|
+
```yaml
|
|
167
|
+
select:
|
|
168
|
+
- field1
|
|
169
|
+
- field2
|
|
170
|
+
- field3
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Example:**
|
|
174
|
+
```python
|
|
175
|
+
# Input
|
|
176
|
+
[{"field1": "a", "field2": "b", "field3": "c", "unwanted": "x"}]
|
|
177
|
+
|
|
178
|
+
# Output
|
|
179
|
+
[{"field1": "a", "field2": "b", "field3": "c"}]
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
#### 6. `drop` - Remove Specified Fields
|
|
183
|
+
|
|
184
|
+
Removes specified fields (keeps all others).
|
|
185
|
+
|
|
186
|
+
```yaml
|
|
187
|
+
drop:
|
|
188
|
+
- internal_id
|
|
189
|
+
- debug_info
|
|
190
|
+
- temp_field
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Example:**
|
|
194
|
+
```python
|
|
195
|
+
# Input
|
|
196
|
+
[{"name": "test", "internal_id": "123", "debug_info": "x"}]
|
|
197
|
+
|
|
198
|
+
# Output
|
|
199
|
+
[{"name": "test"}]
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Operation Order
|
|
203
|
+
|
|
204
|
+
Operations are applied in this order:
|
|
205
|
+
1. `rename`
|
|
206
|
+
2. `convert`
|
|
207
|
+
3. `defaults`
|
|
208
|
+
4. `add`
|
|
209
|
+
5. `select`
|
|
210
|
+
6. `drop`
|
|
211
|
+
|
|
212
|
+
### Complete Example
|
|
213
|
+
|
|
214
|
+
```yaml
|
|
215
|
+
# transform.yaml
|
|
216
|
+
transform:
|
|
217
|
+
rename:
|
|
218
|
+
userId: user_id
|
|
219
|
+
firstName: first_name
|
|
220
|
+
lastName: last_name
|
|
221
|
+
convert:
|
|
222
|
+
age: integer
|
|
223
|
+
price: float
|
|
224
|
+
active: boolean
|
|
225
|
+
defaults:
|
|
226
|
+
status: "pending"
|
|
227
|
+
priority: 0
|
|
228
|
+
add:
|
|
229
|
+
full_name: "${first_name} ${last_name}"
|
|
230
|
+
created_at: "now()"
|
|
231
|
+
record_id: "uuid()"
|
|
232
|
+
drop:
|
|
233
|
+
- internal_id
|
|
234
|
+
- debug_info
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
## 2. JSONata (Advanced Transformations)
|
|
238
|
+
|
|
239
|
+
JSONata is a powerful query and transformation language for JSON data. Use it when simple operations aren't sufficient.
|
|
240
|
+
|
|
241
|
+
### Configuration
|
|
242
|
+
|
|
243
|
+
```yaml
|
|
244
|
+
jsonata:
|
|
245
|
+
expression: |
|
|
246
|
+
$.{
|
|
247
|
+
"ticker": symbol,
|
|
248
|
+
"avg_price": $average(prices),
|
|
249
|
+
"total_volume": $sum(volumes),
|
|
250
|
+
"price_change": price - previousClose
|
|
251
|
+
}
|
|
252
|
+
mode: "batch" # or "record"
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Mode Options
|
|
256
|
+
|
|
257
|
+
- **`batch`**: Apply expression to entire dataset
|
|
258
|
+
- **`record`**: Apply expression to each record individually
|
|
259
|
+
|
|
260
|
+
### JSONata Examples
|
|
261
|
+
|
|
262
|
+
**Simple rename and calculation:**
|
|
263
|
+
```yaml
|
|
264
|
+
jsonata:
|
|
265
|
+
expression: |
|
|
266
|
+
$.{
|
|
267
|
+
"ticker": symbol,
|
|
268
|
+
"price_change": price - previousClose,
|
|
269
|
+
"price_change_pct": ((price - previousClose) / previousClose) * 100
|
|
270
|
+
}
|
|
271
|
+
mode: "record"
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
**Aggregation:**
|
|
275
|
+
```yaml
|
|
276
|
+
jsonata:
|
|
277
|
+
expression: |
|
|
278
|
+
{
|
|
279
|
+
"total_records": $count($),
|
|
280
|
+
"avg_price": $average($.price),
|
|
281
|
+
"max_price": $max($.price),
|
|
282
|
+
"min_price": $min($.price)
|
|
283
|
+
}
|
|
284
|
+
mode: "batch"
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
**Filtering:**
|
|
288
|
+
```yaml
|
|
289
|
+
jsonata:
|
|
290
|
+
expression: |
|
|
291
|
+
$[price > 100]
|
|
292
|
+
mode: "record"
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
**Nested transformations:**
|
|
296
|
+
```yaml
|
|
297
|
+
jsonata:
|
|
298
|
+
expression: |
|
|
299
|
+
$.{
|
|
300
|
+
"user": {
|
|
301
|
+
"id": userId,
|
|
302
|
+
"name": userName
|
|
303
|
+
},
|
|
304
|
+
"metadata": {
|
|
305
|
+
"created": created_at,
|
|
306
|
+
"updated": updated_at
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
mode: "record"
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
### JSONata Resources
|
|
313
|
+
|
|
314
|
+
- [JSONata Documentation](https://docs.jsonata.org/)
|
|
315
|
+
- [JSONata Playground](https://try.jsonata.org/)
|
|
316
|
+
|
|
317
|
+
## 3. Custom Functions (Python Code)
|
|
318
|
+
|
|
319
|
+
For complex business logic that can't be expressed declaratively, use custom Python functions.
|
|
320
|
+
|
|
321
|
+
### Configuration
|
|
322
|
+
|
|
323
|
+
```yaml
|
|
324
|
+
custom_function:
|
|
325
|
+
module: "myproject.transforms"
|
|
326
|
+
function: "optimize_data"
|
|
327
|
+
mode: "batch" # or "record"
|
|
328
|
+
kwargs:
|
|
329
|
+
method: "min_volatility"
|
|
330
|
+
solver: "ipopt"
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
**Alternative format (using callable path):**
|
|
334
|
+
```yaml
|
|
335
|
+
custom_function:
|
|
336
|
+
callable: "myproject.transforms.optimize_portfolio"
|
|
337
|
+
mode: "batch"
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Function Signature
|
|
341
|
+
|
|
342
|
+
**Batch mode:**
|
|
343
|
+
```python
|
|
344
|
+
def my_transform(data: List[Dict[str, Any]], **kwargs) -> List[Dict[str, Any]]:
|
|
345
|
+
# Process entire dataset
|
|
346
|
+
return transformed_data
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
**Record mode:**
|
|
350
|
+
```python
|
|
351
|
+
def my_transform(record: Dict[str, Any], **kwargs) -> Optional[Dict[str, Any]]:
|
|
352
|
+
# Process single record
|
|
353
|
+
return transformed_record # or None to skip
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Example Custom Function
|
|
357
|
+
|
|
358
|
+
```python
|
|
359
|
+
# myproject/transforms.py
|
|
360
|
+
def calculate_metrics(data: List[Dict[str, Any]], **kwargs) -> List[Dict[str, Any]]:
|
|
361
|
+
"""Calculate additional metrics for each record."""
|
|
362
|
+
result = []
|
|
363
|
+
for record in data:
|
|
364
|
+
record['total_value'] = record.get('price', 0) * record.get('quantity', 0)
|
|
365
|
+
record['discount_applied'] = record.get('price', 0) < record.get('original_price', 0)
|
|
366
|
+
result.append(record)
|
|
367
|
+
return result
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
**Usage in transform.yaml:**
|
|
371
|
+
```yaml
|
|
372
|
+
custom_function:
|
|
373
|
+
module: "myproject.transforms"
|
|
374
|
+
function: "calculate_metrics"
|
|
375
|
+
mode: "batch"
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
### Class-Based Functions
|
|
379
|
+
|
|
380
|
+
If your function is a class, PyCharter will automatically detect and use:
|
|
381
|
+
- `optimize()` method
|
|
382
|
+
- `run()` method
|
|
383
|
+
- `__call__()` method
|
|
384
|
+
|
|
385
|
+
```python
|
|
386
|
+
# myproject/transforms.py
|
|
387
|
+
class PortfolioOptimizer:
|
|
388
|
+
def optimize(self, data: List[Dict[str, Any]], **kwargs) -> List[Dict[str, Any]]:
|
|
389
|
+
# Optimization logic
|
|
390
|
+
return optimized_data
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
**Usage:**
|
|
394
|
+
```yaml
|
|
395
|
+
custom_function:
|
|
396
|
+
module: "myproject.transforms"
|
|
397
|
+
function: "PortfolioOptimizer"
|
|
398
|
+
mode: "batch"
|
|
399
|
+
kwargs:
|
|
400
|
+
method: "min_volatility"
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
## Combining All Three
|
|
404
|
+
|
|
405
|
+
You can use simple operations, JSONata, and custom functions together:
|
|
406
|
+
|
|
407
|
+
```yaml
|
|
408
|
+
# transform.yaml
|
|
409
|
+
|
|
410
|
+
# Step 1: Simple operations
|
|
411
|
+
transform:
|
|
412
|
+
rename:
|
|
413
|
+
oldName: new_name
|
|
414
|
+
convert:
|
|
415
|
+
price: float
|
|
416
|
+
defaults:
|
|
417
|
+
status: "pending"
|
|
418
|
+
|
|
419
|
+
# Step 2: JSONata (applied after simple operations)
|
|
420
|
+
jsonata:
|
|
421
|
+
expression: |
|
|
422
|
+
$.{
|
|
423
|
+
"calculated_field": price * quantity,
|
|
424
|
+
"formatted_date": $fromMillis(timestamp)
|
|
425
|
+
}
|
|
426
|
+
mode: "record"
|
|
427
|
+
|
|
428
|
+
# Step 3: Custom function (applied last)
|
|
429
|
+
custom_function:
|
|
430
|
+
module: "myproject.transforms"
|
|
431
|
+
function: "final_validation"
|
|
432
|
+
mode: "batch"
|
|
433
|
+
```
|
|
434
|
+
|
|
435
|
+
## Best Practices
|
|
436
|
+
|
|
437
|
+
1. **Start Simple**: Use simple operations for basic transformations
|
|
438
|
+
2. **Use JSONata for Complex Logic**: When you need aggregations, filtering, or complex calculations
|
|
439
|
+
3. **Use Custom Functions Sparingly**: Only for business logic that can't be expressed declaratively
|
|
440
|
+
4. **Test Incrementally**: Test each transformation step separately
|
|
441
|
+
5. **Document Complex Expressions**: Add comments explaining complex JSONata expressions
|
|
442
|
+
|
|
443
|
+
## Error Handling
|
|
444
|
+
|
|
445
|
+
- **Missing Fields**: Warnings are logged, transformation continues
|
|
446
|
+
- **Type Conversion Failures**: Original value is kept, warning is logged
|
|
447
|
+
- **JSONata Errors**: Transformation fails with clear error message
|
|
448
|
+
- **Custom Function Errors**: Transformation fails with function error details
|
|
449
|
+
|
|
450
|
+
## Examples
|
|
451
|
+
|
|
452
|
+
See `data/stock_examples/` for real-world examples of transformation configurations.
|
|
@@ -70,19 +70,39 @@ from pycharter.etl_generator.context import PipelineContext
|
|
|
70
70
|
from pycharter.etl_generator.result import PipelineResult, BatchResult, LoadResult
|
|
71
71
|
from pycharter.etl_generator.protocols import Extractor, Transformer, Loader
|
|
72
72
|
|
|
73
|
-
# Config
|
|
74
|
-
from pycharter.
|
|
75
|
-
ConfigLoader,
|
|
76
|
-
PipelineConfig,
|
|
77
|
-
load_pipeline_config,
|
|
78
|
-
ConfigLoadError,
|
|
79
|
-
)
|
|
73
|
+
# Config validation and errors
|
|
74
|
+
from pycharter.shared.errors import ConfigLoadError
|
|
80
75
|
from pycharter.etl_generator.config_validator import (
|
|
81
76
|
ConfigValidator,
|
|
82
77
|
ConfigValidationError,
|
|
83
78
|
validate_config,
|
|
84
79
|
)
|
|
85
80
|
|
|
81
|
+
# Config models (Pydantic)
|
|
82
|
+
from pycharter.etl_generator.config_models import (
|
|
83
|
+
ExtractConfig,
|
|
84
|
+
LoadConfig,
|
|
85
|
+
TransformConfig,
|
|
86
|
+
SettingsConfig,
|
|
87
|
+
ExtractValidationConfig,
|
|
88
|
+
LoadValidationConfig,
|
|
89
|
+
DLQConfig,
|
|
90
|
+
parse_extract_config,
|
|
91
|
+
parse_load_config,
|
|
92
|
+
parse_transform_config,
|
|
93
|
+
parse_settings_config,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
# ETL Validation
|
|
97
|
+
from pycharter.etl_generator.validation import (
|
|
98
|
+
ETLValidator,
|
|
99
|
+
ETLValidationError,
|
|
100
|
+
resolve_schema,
|
|
101
|
+
resolve_contract,
|
|
102
|
+
create_dlq,
|
|
103
|
+
create_etl_validator,
|
|
104
|
+
)
|
|
105
|
+
|
|
86
106
|
# Expression evaluation
|
|
87
107
|
from pycharter.etl_generator.expression import (
|
|
88
108
|
ExpressionEvaluator,
|
|
@@ -139,14 +159,30 @@ __all__ = [
|
|
|
139
159
|
"Extractor",
|
|
140
160
|
"Transformer",
|
|
141
161
|
"Loader",
|
|
142
|
-
# Config
|
|
143
|
-
"ConfigLoader",
|
|
144
|
-
"PipelineConfig",
|
|
145
|
-
"load_pipeline_config",
|
|
162
|
+
# Config validation
|
|
146
163
|
"ConfigLoadError",
|
|
147
164
|
"ConfigValidator",
|
|
148
165
|
"ConfigValidationError",
|
|
149
166
|
"validate_config",
|
|
167
|
+
# Config models
|
|
168
|
+
"ExtractConfig",
|
|
169
|
+
"LoadConfig",
|
|
170
|
+
"TransformConfig",
|
|
171
|
+
"SettingsConfig",
|
|
172
|
+
"ExtractValidationConfig",
|
|
173
|
+
"LoadValidationConfig",
|
|
174
|
+
"DLQConfig",
|
|
175
|
+
"parse_extract_config",
|
|
176
|
+
"parse_load_config",
|
|
177
|
+
"parse_transform_config",
|
|
178
|
+
"parse_settings_config",
|
|
179
|
+
# ETL Validation
|
|
180
|
+
"ETLValidator",
|
|
181
|
+
"ETLValidationError",
|
|
182
|
+
"resolve_schema",
|
|
183
|
+
"resolve_contract",
|
|
184
|
+
"create_dlq",
|
|
185
|
+
"create_etl_validator",
|
|
150
186
|
# Expressions
|
|
151
187
|
"ExpressionEvaluator",
|
|
152
188
|
"ExpressionError",
|