Module returning Czech postal codes/cities based on input.
# 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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size postalCodeCz-0.3.1.zip (25.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|