Skip to main content

Fix postal codes notation in spreadsheet documents

Project description

Postleid Excel

Skript zum Korrigieren von Postleitzahlen in Excel

Voraussetzungen

Python 3

Installation der benötigten Module (openpyxl, pandas, xlrd und PyYAML) in einem aktiven Python Virtual Environment:

pip install -r requirements.txt

Aufruf

ebenfalls im aktiven Virtual Environment

python pl_wrapper.py EXCELDATEI

– wobei EXCELDATEI für den Pfad zu einer Exceldatei steht –

Ausgabe von python pl_wrapper.py -h als Orientierung:

Rufe den Befehl 'python -m postleid -h' auf …
Aufruf: postleid [-h] [--version] [-v | -q] [-g] [-l] [-o AUSGABEDATEI]
                 EXCELDATEI

Postleitzahlen in Excel-Dateien korrigieren

Positionsparameter:
  EXCELDATEI            die Original-Exceldatei

Optionen:
  -h, --help            diese Meldung anzeigen und beenden
  --version             Version ausgeben und beenden
  -g, --guess-1000s     Postleitzahlen unter 1000 mit 1000 multiplizieren
                        (Achtung, für PLZs aus Bahrain liefert diese Option
                        falsche Ergebnisse!)
  -l, --list-supported-countries
                        Unterstützte Länder anzeigen (der Dateiname muss in
                        diesem Fall zwar auch angegeben werden, wird jedoch
                        ignoriert)
  -o AUSGABEDATEI, --output-file AUSGABEDATEI
                        die Ausgabedatei (Standardwert: Name der Original-
                        Exceldatei mit vorangestelltem 'fixed-')

Logging-Optionen:
  steuern die Meldungsausgaben (Standard-Loglevel: INFO)

  -v, --verbose         alle Meldungen ausgeben (Loglevel DEBUG)
  -q, --quiet           nur Warnungen und Fehler ausgeben (Loglevel WARNING)

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

postleid-0.6.2.tar.gz (21.5 kB view hashes)

Uploaded Source

Built Distribution

postleid-0.6.2-py3-none-any.whl (21.9 kB view hashes)

Uploaded Python 3

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