feat(project): initialize ZUGFeRD service with pyproject.toml and directory structure

This commit is contained in:
m3tm3re
2026-02-04 19:19:44 +01:00
parent 48ad42aa19
commit 0db2482bf2
19 changed files with 2114 additions and 0 deletions

3
src/__init__.py Normal file
View File

@@ -0,0 +1,3 @@
"""ZUGFeRD Service Package."""
__version__ = "1.0.0"

3
src/extractor.py Normal file
View File

@@ -0,0 +1,3 @@
"""ZUGFeRD extraction module."""
pass

20
src/main.py Normal file
View 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
View File

@@ -0,0 +1,3 @@
"""Pydantic models for ZUGFeRD service."""
pass

3
src/pdf_parser.py Normal file
View File

@@ -0,0 +1,3 @@
"""PDF text parsing module."""
pass

3
src/utils.py Normal file
View File

@@ -0,0 +1,3 @@
"""Utility functions for ZUGFeRD service."""
pass

3
src/validator.py Normal file
View File

@@ -0,0 +1,3 @@
"""Validation module for ZUGFeRD invoices."""
pass