Skip to main content

🔧 Pure Financial Document ETL Pipeline

A data engineering focused ETL pipeline that extracts from unstructured financial document data (pdf, spreadsheet, doc) without making analytical assumptions or classifications.

🎯 Pure ETL Philosophy

This pipeline follows separation of concerns principles:

  • ETL Layer: Extract → Structure → Export (no analysis)
  • Analysis Layer: Separate downstream processing for ML/NLP

📦 Installation

From PyPI

pip install boe-etl

From Source

git clone https://github.com/daleparr/boe-etl.git
cd boe-etl
pip install -e .

With Optional Dependencies

# For web frontend
pip install boe-etl[frontend]

# For development
pip install boe-etl[dev]

# All dependencies
pip install boe-etl[all]

🚀 Quick Start

Installation

pip install boe-etl

Launch Web Interface

boe-etl frontend

Access Application

Open your browser to: http://localhost:8501

📊 What This ETL Does

✅ Raw Data Extraction

  • PDF Documents: Text extraction from earnings reports
  • Excel Files: Multi-sheet data extraction
  • Text Files: Direct text processing
  • Sentence Segmentation: Clean, structured sentences

✅ Raw Feature Extraction

  • all_financial_terms: Financial vocabulary found (no classification)
  • financial_figures: Numbers and amounts extracted (no interpretation)
  • temporal_indicators: Time-related language (no actual/projection labels)
  • speaker_raw: Speaker patterns identified (no role classification)

✅ Factual Boolean Flags

  • has_financial_terms: Terms present or not
  • has_financial_figures: Figures present or not
  • has_temporal_language: Temporal words present or not
  • has_speaker_identified: Speaker pattern found or not

🚫 What This ETL Does NOT Do

❌ No Analytical Assumptions

  • No topic classification (Revenue & Growth, Risk Management, etc.)
  • No actual vs projection classification
  • No financial content relevance scoring
  • No speaker role interpretation (CEO, CFO, Analyst)

❌ No Machine Learning

  • No topic modeling
  • No sentiment analysis
  • No content classification
  • No predictive features

📈 Output Schema

Core Fields

source_file,institution,quarter,sentence_id,speaker_raw,text,source_type

Raw Extraction Fields

all_financial_terms,financial_figures,financial_figures_text,temporal_indicators

Factual Flags

has_financial_terms,has_financial_figures,has_temporal_language,has_speaker_identified

Metadata

word_count,char_count,processing_date,extraction_timestamp

🔄 Example Processing

Input Document

"We reported revenue of $2.5 billion this quarter, up 15% from last year."

Pure ETL Output

all_financial_terms: "revenue"
financial_figures: "$2.5 billion|15%"
temporal_indicators: "reported|this quarter|last year"
has_financial_terms: True
has_financial_figures: True
has_temporal_language: True

No Analysis Applied

  • ❌ No classification as "actual" vs "projection"
  • ❌ No topic assignment like "Revenue & Growth"
  • ❌ No sentiment or relevance scoring

🏗️ Architecture

Pure ETL Pipeline

Documents → Extract Text → Segment Sentences → Extract Raw Features → Export CSV

Downstream Analysis (Separate)

Raw CSV → Topic Modeling → Classification → Feature Engineering → ML Models

🛠️ Technical Features

✅ Missing Value Handling

  • No null values in output
  • Consistent defaults for all fields
  • NLP-ready datasets

✅ Multi-Format Support

  • PDF processing with PyPDF2
  • Excel processing with openpyxl
  • Text file processing
  • Graceful error handling

✅ Web Interface

  • Drag-and-drop file upload
  • Multi-institution processing
  • Progress tracking
  • Processing history
  • CSV download

📚 Use Cases

Financial Institutions

  • Earnings call transcript processing
  • Financial report data extraction
  • Regulatory document structuring
  • Multi-quarter analysis preparation

Research & Analytics

  • Academic financial research
  • Market analysis preparation
  • NLP model training data
  • Time series analysis datasets

Compliance & Audit

  • Document processing audit trails
  • Structured data for compliance
  • Historical document analysis
  • Regulatory reporting preparation

🔧 Development

Project Structure

boe-etl/
├── boe_etl/
│   ├── core.py                # Main ETL pipeline
│   ├── parsers/              # Document parsers
│   ├── schema.py             # Data standardization
│   └── frontend.py           # Web interface
├── setup.py                  # Package configuration
├── requirements.txt          # Dependencies
└── README.md                 # This file

Dependencies

  • streamlit: Web interface framework
  • pandas: Data manipulation
  • PyPDF2: PDF text extraction
  • openpyxl: Excel file processing

🏷️ Naming Convention

Output files follow the standardized format:

{Institution}_{Quarter}_{Year}_PureETL_{User}_{Timestamp}

Example: JPMorgan_Q1_2025_PureETL_JohnSmith_20250526_143022.csv

📄 License

MIT License - see LICENSE file for details.

🤝 Contributing

This is a pure ETL pipeline focused on data engineering principles. Contributions should maintain the separation between extraction and analysis.

Guidelines

  • Keep ETL layer free of analytical assumptions
  • Maintain raw data extraction focus
  • Preserve downstream analysis flexibility
  • Follow data engineering best practices

🆘 Support

🎯 Philosophy: Extract, Don't Analyze

This pipeline embodies the principle that ETL should extract and structure data, not make analytical decisions. Analysis belongs in separate, specialized pipelines that can evolve independently.

Pure ETL = Maximum Flexibility for Downstream Analysis 🔧


Version: 1.0.0
Author: Bank of England ETL Team
Repository: https://github.com/daleparr/boe-etl

Metadata

Release files for boe-etl 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for boe-etl 1.0.0
File Size Uploaded Provenance Actions
boe_etl-1.0.0.tar.gz 74.2 kB Without provenance Details for boe_etl-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for boe-etl 1.0.0
File Interpreter ABI Platform Actions
boe_etl-1.0.0-py3-none-any.whl Python 3 none any Details for boe_etl-1.0.0-py3-none-any.whl

Total release size: 163.9 kB

Release files / boe_etl-1.0.0.tar.gz

Download URL boe_etl-1.0.0.tar.gz
Size 74.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e7e49fb370fb0589310e2eaa59b1ab43140400e6cc0f28f8d58868e7e15f7f6c
BLAKE2b-256 checksum
How to use checksums
98a7375f07511b4f10eafded931c73e3dda724c500ec75e4903cf4058e8494d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / boe_etl-1.0.0-py3-none-any.whl

Download URL boe_etl-1.0.0-py3-none-any.whl
Size 89.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3e31c7c99cd3572206e942cd2a67712ef5d54d4c165b022c824df282e1ed82df
BLAKE2b-256 checksum
How to use checksums
4e4303e8a637a54f0d214f9451161f82219b9819b9436cde5c6ce1155a9ffe1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for boe-etl 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page