codeupipe 0.1.0__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.
- codeupipe/__init__.py +39 -0
- codeupipe/cli.py +1502 -0
- codeupipe/converter/__init__.py +9 -0
- codeupipe/converter/config.py +119 -0
- codeupipe/converter/filters/__init__.py +21 -0
- codeupipe/converter/filters/analyze.py +60 -0
- codeupipe/converter/filters/classify.py +52 -0
- codeupipe/converter/filters/classify_files.py +61 -0
- codeupipe/converter/filters/generate_export.py +187 -0
- codeupipe/converter/filters/generate_import.py +229 -0
- codeupipe/converter/filters/parse_config.py +26 -0
- codeupipe/converter/filters/scan_project.py +52 -0
- codeupipe/converter/pipelines/__init__.py +8 -0
- codeupipe/converter/pipelines/export_pipeline.py +40 -0
- codeupipe/converter/pipelines/import_pipeline.py +40 -0
- codeupipe/converter/taps/__init__.py +7 -0
- codeupipe/converter/taps/conversion_log.py +46 -0
- codeupipe/core/__init__.py +20 -0
- codeupipe/core/filter.py +27 -0
- codeupipe/core/hook.py +34 -0
- codeupipe/core/payload.py +94 -0
- codeupipe/core/pipeline.py +231 -0
- codeupipe/core/state.py +78 -0
- codeupipe/core/stream_filter.py +33 -0
- codeupipe/core/tap.py +27 -0
- codeupipe/core/valve.py +52 -0
- codeupipe/linter/__init__.py +57 -0
- codeupipe/linter/assemble_doc_report.py +97 -0
- codeupipe/linter/assemble_report.py +140 -0
- codeupipe/linter/check_bundle.py +47 -0
- codeupipe/linter/check_index.py +88 -0
- codeupipe/linter/check_naming.py +47 -0
- codeupipe/linter/check_protocols.py +73 -0
- codeupipe/linter/check_structure.py +41 -0
- codeupipe/linter/check_symbols.py +116 -0
- codeupipe/linter/check_tests.py +48 -0
- codeupipe/linter/coverage_pipeline.py +39 -0
- codeupipe/linter/detect_drift.py +44 -0
- codeupipe/linter/detect_orphans.py +106 -0
- codeupipe/linter/doc_check_pipeline.py +28 -0
- codeupipe/linter/git_history.py +130 -0
- codeupipe/linter/lint_pipeline.py +51 -0
- codeupipe/linter/map_coverage.py +84 -0
- codeupipe/linter/report_gaps.py +68 -0
- codeupipe/linter/report_pipeline.py +49 -0
- codeupipe/linter/resolve_refs.py +48 -0
- codeupipe/linter/scan_components.py +95 -0
- codeupipe/linter/scan_directory.py +123 -0
- codeupipe/linter/scan_docs.py +62 -0
- codeupipe/linter/scan_tests.py +104 -0
- codeupipe/py.typed +1 -0
- codeupipe/testing.py +344 -0
- codeupipe/utils/__init__.py +10 -0
- codeupipe/utils/error_handling.py +68 -0
- codeupipe-0.1.0.dist-info/METADATA +216 -0
- codeupipe-0.1.0.dist-info/RECORD +60 -0
- codeupipe-0.1.0.dist-info/WHEEL +5 -0
- codeupipe-0.1.0.dist-info/entry_points.txt +2 -0
- codeupipe-0.1.0.dist-info/licenses/LICENSE +190 -0
- codeupipe-0.1.0.dist-info/top_level.txt +1 -0
codeupipe/__init__.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"""
|
|
2
|
+
codeupipe: Pipeline framework for Python
|
|
3
|
+
|
|
4
|
+
Composable Payload-Filter-Pipeline pattern with Valves, Taps, Hooks, and Streaming.
|
|
5
|
+
Filters and Taps can be sync or async. Zero external dependencies.
|
|
6
|
+
|
|
7
|
+
Core concepts:
|
|
8
|
+
- Payload: Immutable data container flowing through the pipeline
|
|
9
|
+
- MutablePayload: Mutable sibling for performance-critical bulk edits
|
|
10
|
+
- Filter: Processing unit that transforms payloads (sync or async)
|
|
11
|
+
- StreamFilter: Streaming unit — yields 0, 1, or N output chunks per input
|
|
12
|
+
- Pipeline: Orchestrator — .run() for batch, .stream() for streaming
|
|
13
|
+
- Valve: Conditional flow control — gates a filter with a predicate
|
|
14
|
+
- Tap: Non-modifying observation point (sync or async)
|
|
15
|
+
- State: Pipeline execution metadata — tracks executed, skipped, errors, chunk counts
|
|
16
|
+
- Hook: Lifecycle hooks — before / after / on_error (sync or async)
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from .core import Payload, MutablePayload, Filter, StreamFilter, Pipeline, Valve, Tap, State, Hook
|
|
20
|
+
from .utils import ErrorHandlingMixin, RetryFilter
|
|
21
|
+
from .converter import load_config, DEFAULT_CONFIG, PATTERN_DEFAULTS
|
|
22
|
+
from .converter.pipelines import build_export_pipeline, build_import_pipeline
|
|
23
|
+
|
|
24
|
+
from importlib.metadata import version as _pkg_version, PackageNotFoundError
|
|
25
|
+
try:
|
|
26
|
+
__version__ = _pkg_version("codeupipe")
|
|
27
|
+
except PackageNotFoundError:
|
|
28
|
+
__version__ = "0.1.0" # fallback for editable / non-installed usage
|
|
29
|
+
__all__ = [
|
|
30
|
+
# Core
|
|
31
|
+
"Payload", "MutablePayload",
|
|
32
|
+
"Filter", "StreamFilter", "Pipeline", "Valve", "Tap",
|
|
33
|
+
"State", "Hook",
|
|
34
|
+
# Utils
|
|
35
|
+
"ErrorHandlingMixin", "RetryFilter",
|
|
36
|
+
# Converter
|
|
37
|
+
"load_config", "DEFAULT_CONFIG", "PATTERN_DEFAULTS",
|
|
38
|
+
"build_export_pipeline", "build_import_pipeline",
|
|
39
|
+
]
|