Metadata plugin for lidl receipts (used in Germany)
Project description
Lidl Receipts (Germany)
Papermerge metadata plugin for lidl receipts used in Germany.
This plugin returns 3 metadata labels/keys named as follows:
- shop
- price
- date
On the main app you need to keep in mind that:
- shop - has free text format
- price - is of type money (as per main app), with format "dd,cc". Example: 38,95
- date - is of type date (as per main app), with format "dd.mm.yy". Example: 21.12.19 - 21st of December 2019
Installation
pip install papermerge-meta-plugin-lidl-receipts-de
Notice that for configuration you will use plugin name WITHOUT prefix (i.e. without papermerge-meta-plugin- part). Also, for importing this module you need to use name WITHOUT prefix:
import lidl_receipts_de
Usually you don't need to import plugin directly, main app does it for you.
In papermerge.conf add "lidl_receipts_de.Lidl" entry to METADATA_PLUGINS:
METADATA_PLUGINS = [
"lidl_receipts_de.Lidl", ...
]
In case you want to map returned metadata to differently named keys:
METADATA_PLUGIN_MAPS = {
"lidl_receipts_de.Lidl": {
"shop": "Firma",
"price": "Betrag",
"date": "Datum",
},
}
Prepare Development Environment & Run Tests
- virtualenv .venv -p /usr/bin/python3.8 # provide virtualenv path to 3.8 interpreter
- source .venv/bin/activate # activate .venv virtual environment
- pip install -r requirements.txt # install dependencies
- python setup.py develop # provide a link to dev version of hocron
- python test/run.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file papermerge-meta-plugin-lidl-receipts-de-0.3.0.tar.gz
.
File metadata
- Download URL: papermerge-meta-plugin-lidl-receipts-de-0.3.0.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaad6d616869a9b9949116859971a594465f32eca1a358f374be4425bf41a44c |
|
MD5 | 12ba08f229a6f0b5d1a1635b148ae303 |
|
BLAKE2b-256 | 3f465f196812c650d50d86e3f0c5280ebcb63b3295644040cfb40d909443eccc |