feat(backend): scaffold cyclone package skeleton
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*.egg-info/
|
||||||
|
.pytest_cache/
|
||||||
|
.ruff_cache/
|
||||||
|
.venv/
|
||||||
|
venv/
|
||||||
|
build/
|
||||||
|
dist/
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=68", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "cyclone"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = "Cyclone EDI suite — X12 837P/835 parser"
|
||||||
|
requires-python = ">=3.11"
|
||||||
|
dependencies = [
|
||||||
|
"pydantic>=2.6,<3",
|
||||||
|
"click>=8.1,<9",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
dev = [
|
||||||
|
"pytest>=8.0",
|
||||||
|
"pytest-cov>=4.1",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
cyclone = "cyclone.cli:main"
|
||||||
|
|
||||||
|
[tool.setuptools.packages.find]
|
||||||
|
where = ["src"]
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
testpaths = ["tests"]
|
||||||
|
addopts = "-ra --strict-markers"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
__version__ = "0.1.0"
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
from cyclone.cli import main
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
"""Public re-exports for the 837P parser."""
|
||||||
|
|
||||||
|
from cyclone.parsers.exceptions import CycloneParseError, CycloneValidationError
|
||||||
|
from cyclone.parsers.models import (
|
||||||
|
Address,
|
||||||
|
BatchSummary,
|
||||||
|
BillingProvider,
|
||||||
|
ClaimHeader,
|
||||||
|
ClaimOutput,
|
||||||
|
Diagnosis,
|
||||||
|
Envelope,
|
||||||
|
ParseResult,
|
||||||
|
Payer,
|
||||||
|
Procedure,
|
||||||
|
ServiceLine,
|
||||||
|
Subscriber,
|
||||||
|
ValidationIssue,
|
||||||
|
ValidationReport,
|
||||||
|
)
|
||||||
|
from cyclone.parsers.payer import PayerConfig
|
||||||
|
from cyclone.parsers.segments import Delimiters, tokenize
|
||||||
|
from cyclone.parsers.parse_837 import parse
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"Address",
|
||||||
|
"BatchSummary",
|
||||||
|
"BillingProvider",
|
||||||
|
"ClaimHeader",
|
||||||
|
"ClaimOutput",
|
||||||
|
"CycloneParseError",
|
||||||
|
"CycloneValidationError",
|
||||||
|
"Delimiters",
|
||||||
|
"Diagnosis",
|
||||||
|
"Envelope",
|
||||||
|
"ParseResult",
|
||||||
|
"Payer",
|
||||||
|
"PayerConfig",
|
||||||
|
"Procedure",
|
||||||
|
"ServiceLine",
|
||||||
|
"Subscriber",
|
||||||
|
"ValidationIssue",
|
||||||
|
"ValidationReport",
|
||||||
|
"parse",
|
||||||
|
"tokenize",
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user