Sign inSign up

ovski/account-statement-parser

By ovski

•Updated about 1 month ago

Image
0

1.2K

ovski/account-statement-parser repository overview

⁠Account statement parsers

Build Status Coverage Status

This repo provides modules used to extract transactions from account statement pdf files.

Currently support :

  • Crédit Mutuel account statement files
  • Caisse d'Épargne account statement files
  • N26 account statement files

⁠Usage

The run_api.py script runs a simple http server that will return transactions as JSON.

docker-compose run --service-ports api

curl -H "Accept: application/json" -X GET 127.0.0.1/credit-mutuel?statement=/path/to/statement.pdf

⁠Tests

docker-compose run tests

⁠Debug with vscode

Create the vscode debugger configuration:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Remote debugging",
            "type": "python",
            "request": "attach",
            "pathMappings": [
                {
                    "localRoot": "${workspaceRoot}",
                    "remoteRoot": "/usr/src/app"
                }
            ],
            "port": 3000,
            "host": "localhost"
        }
    ]
}

Run the tests

docker-compose run -e DEBUG=true --service-ports tests

And only after that, run the debugger in vscode

Tag summary

Content type

Image

Digest

sha256:d246cda6f…

Size

352.3 MB

Last updated

almost 4 years ago

docker pull ovski/account-statement-parser