feat(project): initialize ZUGFeRD service with pyproject.toml and directory structure
This commit is contained in:
3
src/__init__.py
Normal file
3
src/__init__.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""ZUGFeRD Service Package."""
|
||||
|
||||
__version__ = "1.0.0"
|
||||
3
src/extractor.py
Normal file
3
src/extractor.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""ZUGFeRD extraction module."""
|
||||
|
||||
pass
|
||||
20
src/main.py
Normal file
20
src/main.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""FastAPI application for ZUGFeRD invoice processing."""
|
||||
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI(
|
||||
title="ZUGFeRD Service",
|
||||
version="1.0.0",
|
||||
description="REST API for ZUGFeRD invoice extraction and validation",
|
||||
)
|
||||
|
||||
|
||||
def run(host: str = "0.0.0.0", port: int = 5000) -> None:
|
||||
"""Run the FastAPI application.
|
||||
|
||||
Args:
|
||||
host: Host to bind to.
|
||||
port: Port to listen on.
|
||||
"""
|
||||
uvicorn.run(app, host=host, port=port)
|
||||
3
src/models.py
Normal file
3
src/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""Pydantic models for ZUGFeRD service."""
|
||||
|
||||
pass
|
||||
3
src/pdf_parser.py
Normal file
3
src/pdf_parser.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""PDF text parsing module."""
|
||||
|
||||
pass
|
||||
3
src/utils.py
Normal file
3
src/utils.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""Utility functions for ZUGFeRD service."""
|
||||
|
||||
pass
|
||||
3
src/validator.py
Normal file
3
src/validator.py
Normal file
@@ -0,0 +1,3 @@
|
||||
"""Validation module for ZUGFeRD invoices."""
|
||||
|
||||
pass
|
||||
Reference in New Issue
Block a user