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.
Files changed (60) hide show
  1. codeupipe/__init__.py +39 -0
  2. codeupipe/cli.py +1502 -0
  3. codeupipe/converter/__init__.py +9 -0
  4. codeupipe/converter/config.py +119 -0
  5. codeupipe/converter/filters/__init__.py +21 -0
  6. codeupipe/converter/filters/analyze.py +60 -0
  7. codeupipe/converter/filters/classify.py +52 -0
  8. codeupipe/converter/filters/classify_files.py +61 -0
  9. codeupipe/converter/filters/generate_export.py +187 -0
  10. codeupipe/converter/filters/generate_import.py +229 -0
  11. codeupipe/converter/filters/parse_config.py +26 -0
  12. codeupipe/converter/filters/scan_project.py +52 -0
  13. codeupipe/converter/pipelines/__init__.py +8 -0
  14. codeupipe/converter/pipelines/export_pipeline.py +40 -0
  15. codeupipe/converter/pipelines/import_pipeline.py +40 -0
  16. codeupipe/converter/taps/__init__.py +7 -0
  17. codeupipe/converter/taps/conversion_log.py +46 -0
  18. codeupipe/core/__init__.py +20 -0
  19. codeupipe/core/filter.py +27 -0
  20. codeupipe/core/hook.py +34 -0
  21. codeupipe/core/payload.py +94 -0
  22. codeupipe/core/pipeline.py +231 -0
  23. codeupipe/core/state.py +78 -0
  24. codeupipe/core/stream_filter.py +33 -0
  25. codeupipe/core/tap.py +27 -0
  26. codeupipe/core/valve.py +52 -0
  27. codeupipe/linter/__init__.py +57 -0
  28. codeupipe/linter/assemble_doc_report.py +97 -0
  29. codeupipe/linter/assemble_report.py +140 -0
  30. codeupipe/linter/check_bundle.py +47 -0
  31. codeupipe/linter/check_index.py +88 -0
  32. codeupipe/linter/check_naming.py +47 -0
  33. codeupipe/linter/check_protocols.py +73 -0
  34. codeupipe/linter/check_structure.py +41 -0
  35. codeupipe/linter/check_symbols.py +116 -0
  36. codeupipe/linter/check_tests.py +48 -0
  37. codeupipe/linter/coverage_pipeline.py +39 -0
  38. codeupipe/linter/detect_drift.py +44 -0
  39. codeupipe/linter/detect_orphans.py +106 -0
  40. codeupipe/linter/doc_check_pipeline.py +28 -0
  41. codeupipe/linter/git_history.py +130 -0
  42. codeupipe/linter/lint_pipeline.py +51 -0
  43. codeupipe/linter/map_coverage.py +84 -0
  44. codeupipe/linter/report_gaps.py +68 -0
  45. codeupipe/linter/report_pipeline.py +49 -0
  46. codeupipe/linter/resolve_refs.py +48 -0
  47. codeupipe/linter/scan_components.py +95 -0
  48. codeupipe/linter/scan_directory.py +123 -0
  49. codeupipe/linter/scan_docs.py +62 -0
  50. codeupipe/linter/scan_tests.py +104 -0
  51. codeupipe/py.typed +1 -0
  52. codeupipe/testing.py +344 -0
  53. codeupipe/utils/__init__.py +10 -0
  54. codeupipe/utils/error_handling.py +68 -0
  55. codeupipe-0.1.0.dist-info/METADATA +216 -0
  56. codeupipe-0.1.0.dist-info/RECORD +60 -0
  57. codeupipe-0.1.0.dist-info/WHEEL +5 -0
  58. codeupipe-0.1.0.dist-info/entry_points.txt +2 -0
  59. codeupipe-0.1.0.dist-info/licenses/LICENSE +190 -0
  60. 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
+ ]