Spaces:
Runtime error
Runtime error
Download utils/__init__.py from SherlockRamos/docling-processor: direct link, hf CLI and curl.
- Browser
- Download file 831 Bytes
-
https://huggingface.co/spaces/SherlockRamos/docling-processor/resolve/main/utils/__init__.py
- Command line
-
hf download hf://spaces/SherlockRamos/docling-processor/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/SherlockRamos/docling-processor/resolve/main/utils/__init__.py
831 Bytes
| """ | |
| Módulo de utilitários para o Docling Document Processor. | |
| Este pacote contém funções auxiliares para validação, manipulação | |
| de arquivos e logging. | |
| """ | |
| from utils.validators import ( | |
| validate_file_count, | |
| validate_file_size, | |
| validate_mime_type, | |
| sanitize_filename, | |
| ValidationError, | |
| ) | |
| from utils.file_handler import ( | |
| create_temp_directory, | |
| cleanup_old_files, | |
| create_zip_output, | |
| get_temp_file_path, | |
| ) | |
| from utils.logger import setup_logger, get_logger | |
| __all__ = [ | |
| # Validators | |
| "validate_file_count", | |
| "validate_file_size", | |
| "validate_mime_type", | |
| "sanitize_filename", | |
| "ValidationError", | |
| # File handler | |
| "create_temp_directory", | |
| "cleanup_old_files", | |
| "create_zip_output", | |
| "get_temp_file_path", | |
| # Logger | |
| "setup_logger", | |
| "get_logger", | |
| ] | |