trepublic2json


Nametrepublic2json JSON
Version 0.3.7 PyPI version JSON
download
home_page
SummaryParse and convert Invoice PDFs from Trade republic to JSON.
upload_time2024-03-13 05:57:57
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords json parser pdf trade republic
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

<p align="center"><img src="https://github.com/ucyo/trepublic2json/raw/main/assets/logo.svg" alt="Logo for transformation of trade republic reports to json" width="200" height="100" ></p>
<h1 align="center"> trepublic2json</h1>

This is a library for parsing reports and invoices from [Trade Republic](traderepublic.com) 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.
```json
[
    {
        "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:

```bash
pip install trepublic2json
```

Or from source using [`rye`](https://rye-up.com/guide/):

```bash
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`:

```bash
> 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
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "trepublic2json",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "json,parser,pdf,trade republic",
    "author": "",
    "author_email": "ucyo <cayoglu@me.com>",
    "download_url": "https://files.pythonhosted.org/packages/fe/e8/3298f2cb2cd859c5b1edd0171466729e5d5ed5295f8fc431cc946f57f54c/trepublic2json-0.3.7.tar.gz",
    "platform": null,
    "description": "\n\n<p align=\"center\"><img src=\"https://github.com/ucyo/trepublic2json/raw/main/assets/logo.svg\" alt=\"Logo for transformation of trade republic reports to json\" width=\"200\" height=\"100\" ></p>\n<h1 align=\"center\"> trepublic2json</h1>\n\nThis is a library for parsing reports and invoices from [Trade Republic](traderepublic.com) to JSON. \nThe library provides the command line tool: `trepublic2json`.\nIt only takes the path to the folder of pdf files as an argument and returns a single json with information from all pdf files.\n \nAn example output with a folder containing a single pdf file.\n```json\n[\n    {\n        \"account_num\": \"AB01234567890123456\",\n        \"date\": \"2001-01-01\",\n        \"depot_num\": \"0123456789\",\n        \"depot_owner\": \"John Doe\",\n        \"filename\": \"/path/to/pdfs/ab012345678901234567890123456789.pdf\",\n        \"isin\": \"GB0123456789\",\n        \"name\": \"A Company that Manufactures Everything (ACME)\",\n        \"order_id\": \"c829-8f27\",\n        \"order_type\": \"buy\",\n        \"share_price\": 0.07,\n        \"shares\": 900.0,\n        \"total_check_amount\": -64.0,\n        \"total_share_price\": 63.0,\n        \"total_share_price_calc\": 63.00000000000001,\n        \"transaction_id\": \"o832-a928\"\n    }\n]\n```\n\n## Install\n\nYou can install `trepublic2json` using either pypi:\n\n```bash\npip install trepublic2json\n```\n\nOr from source using [`rye`](https://rye-up.com/guide/):\n\n```bash\ngit clone git@github.com:ucyo/trepublic2json.git && cd trepublic2json && rye install .\n```\n\n## Usage\n\nOnce the package is installed you can use the command-line tool `trepublic2json`:\n\n```bash\n> trepublic2json --help\nusage: trepublic2json [-h] path\n\npositional arguments:\n  path        Path of the pdf files to parse.\n\noptions:\n  -h, --help  show this help message and exit\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Parse and convert Invoice PDFs from Trade republic to JSON.",
    "version": "0.3.7",
    "project_urls": {
        "Source": "https://github.com/ucyo/trepublic2json"
    },
    "split_keywords": [
        "json",
        "parser",
        "pdf",
        "trade republic"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a96eb506470eb413920afd10e2091385cdc0044b87b37c3a680cd6aa49f01ba3",
                "md5": "6b15a4506ef858f345149ba1b24d3e67",
                "sha256": "a5ce63259c44020c98299062ad4cdd0733c0103a04340e88f79c0293878b5b34"
            },
            "downloads": -1,
            "filename": "trepublic2json-0.3.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6b15a4506ef858f345149ba1b24d3e67",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 4960,
            "upload_time": "2024-03-13T05:57:56",
            "upload_time_iso_8601": "2024-03-13T05:57:56.515418Z",
            "url": "https://files.pythonhosted.org/packages/a9/6e/b506470eb413920afd10e2091385cdc0044b87b37c3a680cd6aa49f01ba3/trepublic2json-0.3.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fee83298f2cb2cd859c5b1edd0171466729e5d5ed5295f8fc431cc946f57f54c",
                "md5": "a34eeee74566308daea29d86f9c859a4",
                "sha256": "7a695f3861532971fb063445a15537467636b6566d8f07c527906021dfa70910"
            },
            "downloads": -1,
            "filename": "trepublic2json-0.3.7.tar.gz",
            "has_sig": false,
            "md5_digest": "a34eeee74566308daea29d86f9c859a4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6559,
            "upload_time": "2024-03-13T05:57:57",
            "upload_time_iso_8601": "2024-03-13T05:57:57.457804Z",
            "url": "https://files.pythonhosted.org/packages/fe/e8/3298f2cb2cd859c5b1edd0171466729e5d5ed5295f8fc431cc946f57f54c/trepublic2json-0.3.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-13 05:57:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ucyo",
    "github_project": "trepublic2json",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "trepublic2json"
}
        
Elapsed time: 0.21784s