Skip to main content

Financial Statement Parser

Financial Statement Parser is a Python package for processing financial statement data. It parses structured financial data, performs calculations, and generates rolled-up financial reports.

Features

  • Parse financial statement data from text files
  • Calculate rolled-up totals for financial categories
  • Generate formatted financial reports
  • Command-line interface for easy processing

Installation

Using pip

pip install financial-statements-parser

Using poetry

poetry add financial-statements-parser

Using Docker

docker build -t fs-parser .

Usage

As a Python package

from financial_statement_parser import process_file
process_file('input_financial_data.txt', 'output_report.txt')

Command-line interface

fs-parser input_financial_data.txt -o output_report.txt

Using Docker

docker run -v /path/to/your/local/directory:/path/to/your/container/directory fs-parser:latest examples/input/example_balance_sheet.txt -o /path/to/your/container/directory/output.txt

This command mounts your local directory to a defined directory in the container. Adjust the paths as necessary.

For example:

docker run -v $HOME/Dropbox:/root/Dropbox fs-parser:latest examples/input/example_balance_sheet.txt -o /root/Dropbox/test/output.txt

To run the help message

docker run zaxier/fs-parser:latest --help

Development

To set up the development environment:

  1. Clone the repository:
git clone https://github.com/zaxier/financial-statement-parser.git
cd financial-parser
  1. Install dependencies:
poetry install
  1. Run tests:
poetry run pytest

References

Metadata

Release files for financial-statement-parser 0.1.4

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

Source distribution (sdist)

Source distribution for financial-statement-parser 0.1.4
File Size Uploaded Provenance Actions
financial_statement_parser-0.1.4.tar.gz 4.4 kB Without provenance Details for financial_statement_parser-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for financial-statement-parser 0.1.4
File Interpreter ABI Platform Actions
financial_statement_parser-0.1.4-py3-none-any.whl Python 3 none any Details for financial_statement_parser-0.1.4-py3-none-any.whl

Total release size: 10.2 kB

Release files / financial_statement_parser-0.1.4.tar.gz

Download URL financial_statement_parser-0.1.4.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ea2f5fb7c8ff6248ac839055aee1bb45590a8d95cdbd23b7733e5ca7e8ae0f2a
BLAKE2b-256 checksum
How to use checksums
2c9f9233e2a9db48ea503bb0fa06812c071a50f5d8656dc53bb2dbbe2dbcd08c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1022-azure

Release files / financial_statement_parser-0.1.4-py3-none-any.whl

Download URL financial_statement_parser-0.1.4-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3aad499d8ec034bed34ff793caedac0a169ba2f515a72ed7c4b76d0f070a74d
BLAKE2b-256 checksum
How to use checksums
962194590497c96754388b3e3fb9557de831d76bd2e290a01bc8a4038a919335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1022-azure

Security for financial-statement-parser 0.1.4

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.

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