Sign inSign up

benjisho/p2ta-pdf-parser

By benjisho

Updated almost 2 years ago

An efficient tool for extracting information from ASC Standards PDF files into text files.

Image
Developer tools
Data science
0

1.1K

benjisho/p2ta-pdf-parser repository overview

P2TA PDF Parser

Repository URL: https://hub.docker.com/repository/docker/benjisho/p2ta-pdf-parser

Description:
The P2TA PDF Parser is the core engine behind the P2TA tool, processing PDF files and extracting key financial data based on selected accounting standards. This component operates in the background, handling uploads, parsing, and output generation efficiently.


Key Features:

  • Robust Parsing: Supports multiple accounting standards like ASC 606, ASC 842, IFRS 15, and more.
  • Directory Separation: Organized directories for each standard improve file management.
  • Detailed Logging: Logs generated for each parser script enhance debugging and traceability.
  • Secure Operations: Runs alongside a ClamAV container for enhanced file safety.

Getting Started:

  1. Pull the Image:

    docker pull benjisho/p2ta-pdf-parser:latest
    
  2. Run the Container:

    docker run --rm \
      -v "$(pwd)/pdf_files_to_parse:/app/pdf_files_to_parse" \
      -v "$(pwd)/output_files:/app/output_files" \
      -e PYTHONUNBUFFERED=1 \
      benjisho/p2ta-pdf-parser:latest --form_type asc606 --debug
    
  3. Pair with the Website:
    Ensure the P2TA PDF Parser Website container is running alongside this parser container for a seamless experience.


Environment Variables:

  • PYTHONUNBUFFERED=1: Ensures real-time Python logging.

Volumes:

  • /app/pdf_files_to_parse: Directory for incoming PDF files.
  • /app/output_files: Directory for parsed text outputs.
  • /app/logs: Directory for detailed logs.

Key Scripts:

  • p2ta-pdf-parser.py: Main entry point for file parsing.
  • Standard-specific parsers like asc606-pdf-parser.py, asc842-pdf-parser.py, etc.

Tag summary

Content type

Image

Digest

sha256:115ef3938

Size

67.4 MB

Last updated

almost 2 years ago

docker pull benjisho/p2ta-pdf-parser