pdf-importer is a PDF parser for credit card statements. It accepts statement from the following issuers:
- Cembra & Cumulus MasterCard
- SwissCard Cashback (AMEX / VISA / MasterCard)
The data can be saved to a CSV file for use with your own spreadsheet or other accounting tool.
- Python 3.6 and pip 10.0.
- camelot-py and opencv-python for PDF parsing.
- python-dateutil for date format management.
- pandas for CSV export.
First install Python and pip if not already done. In Ubuntu based Linux all other dependencies (camelot-py, opencv-python, python-dateuil and pandas) should be included but you can double check if you encounter errors.
TO BE UPDATED (not yet in pip, new name to be define)
You can install the package by cloning the GitHub repository or directly using pip:
python -m pip install pdf-importer
You can parse a PDF statement simply with
python3 -m pdf_importer [filename] [type] [-o csv_file]
where
- filename is the full path to the PDF file
- type is either cembra or cashback
- csv_file is the full path to the CSV file where the data is saved.
TO BE UPDATED: plan to add auto-detection of type based on the input file name and auto-naming of output to reduce complexity of usage.
- Carlos Vigo - Initial work - GitHub
Forked by:
Please read our contributing policy for details on our code of conduct, and the process for submitting pull requests to us.
We use Git for versioning. For the versions available, see the tags on this repository.
This project is licensed under the GNU GPLv3 License
- PyCharm Professional 2020 - The IDE used