Skip to main content

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

  1. virtualenv .venv -p /usr/bin/python3.8 # provide virtualenv path to 3.8 interpreter
  2. source .venv/bin/activate # activate .venv virtual environment
  3. pip install -r requirements.txt # install dependencies
  4. python setup.py develop # provide a link to dev version of hocron
  5. python test/run.py

Project details


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

Hashes for papermerge-meta-plugin-lidl-receipts-de-0.3.0.tar.gz
Algorithm Hash digest
SHA256 eaad6d616869a9b9949116859971a594465f32eca1a358f374be4425bf41a44c
MD5 12ba08f229a6f0b5d1a1635b148ae303
BLAKE2b-256 3f465f196812c650d50d86e3f0c5280ebcb63b3295644040cfb40d909443eccc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page