Skip to content

PLZ-to-NUTS is a Python package and CLI tool that converts German postal codes (PLZ) into NUTS IDs.

Notifications You must be signed in to change notification settings

NOWUM/plz-to-nuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plz-To-NUTS

This is a tool to convert a German Postleitzahl (zip code) to the coresponding NUTS IDs. It takes 1-5 digits of the zip code as an input.

Installation

To install the tool, use the following command:

pip install plz2nuts

Usage

To use the tool, follow these steps:

  1. Command Line Interface (CLI): You can use the tool from the command line by running:

    plz2nuts --help

    This will display the available options and how to use them.

  2. Basic Usage: To convert a Postleitzahl to a NUTS ID, use:

    plz2nuts <postleitzahl>

    Replace <postleitzahl> with the actual Postleitzahl you want to convert.

  3. Import in Python: You can also import the tool in your Python code to get a NUTS ID for a plz:

    from plz_to_nuts import convert_plz_to_nuts
    convert_plz_to_nuts('10')

License

This project is licensed under the AGPL-3.0-or-later license. See LICENSES/AGPL-3.0-or-later.txt for details.

About

PLZ-to-NUTS is a Python package and CLI tool that converts German postal codes (PLZ) into NUTS IDs.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages