Skip to main content

Logo for transformation of trade republic reports to json

trepublic2json

This is a library for parsing reports and invoices from Trade Republic to JSON. The library provides the command line tool: trepublic2json. It only takes the path to the folder of pdf files as an argument and returns a single json with information from all pdf files.

An example output with a folder containing a single pdf file.

[
    {
        "account_num": "AB01234567890123456",
        "date": "2001-01-01",
        "depot_num": "0123456789",
        "depot_owner": "John Doe",
        "filename": "/path/to/pdfs/ab012345678901234567890123456789.pdf",
        "isin": "GB0123456789",
        "name": "A Company that Manufactures Everything (ACME)",
        "order_id": "c829-8f27",
        "order_type": "buy",
        "share_price": 0.07,
        "shares": 900.0,
        "total_check_amount": -64.0,
        "total_share_price": 63.0,
        "total_share_price_calc": 63.00000000000001,
        "transaction_id": "o832-a928"
    }
]

Install

You can install trepublic2json using either pypi:

pip install trepublic2json

Or from source using rye:

git clone git@github.com:ucyo/trepublic2json.git && cd trepublic2json && rye install .

Usage

Once the package is installed you can use the command-line tool trepublic2json:

> trepublic2json --help
usage: trepublic2json [-h] path

positional arguments:
  path        Path of the pdf files to parse.

options:
  -h, --help  show this help message and exit

Metadata

Release files for trepublic2json 0.3.7

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

Source distribution (sdist)

Source distribution for trepublic2json 0.3.7
File Size Uploaded
trepublic2json-0.3.7.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trepublic2json 0.3.7
File Interpreter ABI Platform
trepublic2json-0.3.7-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / trepublic2json-0.3.7.tar.gz

Download URL trepublic2json-0.3.7.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7a695f3861532971fb063445a15537467636b6566d8f07c527906021dfa70910
BLAKE2b-256 checksum
How to use checksums
fee83298f2cb2cd859c5b1edd0171466729e5d5ed5295f8fc431cc946f57f54c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / trepublic2json-0.3.7-py3-none-any.whl

Download URL trepublic2json-0.3.7-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5ce63259c44020c98299062ad4cdd0733c0103a04340e88f79c0293878b5b34
BLAKE2b-256 checksum
How to use checksums
a96eb506470eb413920afd10e2091385cdc0044b87b37c3a680cd6aa49f01ba3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.3.7 This release

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

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