Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Module returning Czech postal codes/cities based on input.

Project description

# PostalCodeCz This module works offline with Czech postal code system. Its library was updated on 7th november 2018 and contains 2674 registered towns/units and their postal codes. ### def returnCode(‘Name_of_a_city’) expects one input and returns one output, postal code of your input if it exists in the database. Input allows typos, they are corrected by difflib library’s get_close_match. This feature can be turn of by typing def returnCode(‘Name_of_a_city’, closestMatch=False). When you input for example ‘Praha’ (Prague), it gets closest match to Praha 1. Unless you specify the number and the city has more districts named by numbers, it will always asign 1. ### def returnCity(36301) expects input of 5 digits between 10000 to 80000, keep in mind that there are only 2674 registered positions. Starting number refers to one of Czech region or more, when they share the same starting number. It returns name of the city with postal code you ianput.

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for postalCodeCz, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size (25.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page