Serbia zip codes
Easy access to Serbia zip codes. You can search zip code by city, or city by zip code.
Installation
pip install serbia-zip-codes
Usage
import serbia_zip_codes
Search city by city:
>>> result = serbia_zip_codes.find_by_city("Loznica")
>>> print(result)
[{'city': 'Loznica', 'zip_code': '15300'}]
>>> print(result[0]['zip_code'])
15300
Search city by zip code:
>>> result = serbia_zip_codes.find_by_zip("15300")
>>> print(result)
[{'city': 'Loznica', 'zip_code': '15300'}]
>>> print(result[0]['city'])
Loznica
Multiple results example:
>>> from pprint import pprint
>>> import serbia_zip_codes
>>> result = serbia_zip_codes.find_by_city("beograd")
>>> pprint(result)
[{'city': 'Beograd', 'zip_code': '11000'},
{'city': 'Beograd Voždovac', 'zip_code': '11010'},
{'city': 'Beograd Čukarica', 'zip_code': '11030'},
{'city': 'Beograd Zvezdara', 'zip_code': '11050'},
{'city': 'Beograd Palilula', 'zip_code': '11060'},
{'city': 'Beograd Zemun', 'zip_code': '11080'},
{'city': 'Beograd Rakovica', 'zip_code': '11090'}]
Get all:
>>> result = serbia_zip_codes.get_all()
>>> pprint(result)
[{'city': 'Beograd', 'zip_code': '11000'},
{'city': 'Beograd Voždovac', 'zip_code': '11010'},
{'city': 'Beograd Čukarica', 'zip_code': '11030'},
{'city': 'Beograd Zvezdara', 'zip_code': '11050'},
{'city': 'Beograd Palilula', 'zip_code': '11060'},
{'city': 'Novi Beograd', 'zip_code': '11070'},
{'city': 'Beograd Zemun', 'zip_code': '11080'},
{'city': 'Beograd Rakovica', 'zip_code': '11090'},
{'city': 'Kaluđerica', 'zip_code': '11130'},
{'city': 'Rušanj', 'zip_code': '11194'},
{'city': 'Borča', 'zip_code': '11211'},
{'city': 'Ovča', 'zip_code': '11212'},
{'city': 'Padinska Skela', 'zip_code': '11213'},
{'city': 'Beli Potok', 'zip_code': '11223'},
{'city': 'Vrčin', 'zip_code': '11224'},
{'city': 'Zuce', 'zip_code': '11225'},
{'city': 'Pinosava', 'zip_code': '11226'},
{'city': 'Ripanj', 'zip_code': '11232'},
{'city': 'Ralja', 'zip_code': '11233'},
{'city': 'Mali Požarevac', 'zip_code': '11235'},
{'city': 'Ostružnica', 'zip_code': '11251'},
{'city': 'Sremčica', 'zip_code': '11253'},
{'city': 'Umka', 'zip_code': '11260'},
{'city': 'Mala Moštanica', 'zip_code': '11261'},
{'city': 'Velika Mostanica', 'zip_code': '11262'},
{'city': 'Surčin', 'zip_code': '11271'},
{'city': 'Dobanovci', 'zip_code': '11272'},
...
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Metadata
Release files for serbia-zip-codes 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| serbia_zip_codes-1.0.0.tar.gz | 16.5 kB | Without provenance | Details for serbia_zip_codes-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serbia_zip_codes-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for serbia_zip_codes-1.0.0-py3-none-any.whl |
Total release size: 30.2 kB
Release files / serbia_zip_codes-1.0.0.tar.gz
| Download URL | serbia_zip_codes-1.0.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
993a45068b5e8a754924f564be8eb621845888128fe16580b6f1b0f9aac0b83e
|
|
BLAKE2b-256 checksum How to use checksums |
96265e2da743923c81a445b10abd89e29c3bd7aecfe91b6d5236cb4c70e4d8a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Release files / serbia_zip_codes-1.0.0-py3-none-any.whl
| Download URL | serbia_zip_codes-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9fba184a63d562c427cc0de48393c7a756942a3cf41c54a33fec025487857ab
|
|
BLAKE2b-256 checksum How to use checksums |
02bc2bfc974745f16daa43c2a9406802a5d58da673d3dab734eae8c2462bf20b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Security for serbia-zip-codes 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.