Common data about Belgium
Project description
Common data about Belgium. Freely available and maintained in Python.
Note: we are discussing whether this package is meaningful. See http://lino-framework.org/tickets/109.html
This currently includes a list of Belgian places in multiple languages with zip codes.
DISCLAIMER: This comes with no warranty at all.
Usage example:
>>> from commondata.be.places import root >>> belgium = root() >>> print(', '.join([x.fr for x in belgium.children])) Bruxelles, Région flamande, Région wallonne >>> print(', '.join([x.nl for x in belgium.children])) Brussel, Vlaams Gewest, Wallonië >>> wallonia = belgium.children[2] >>> print(', '.join([x.fr for x in wallonia.children])) Namur, Liège, Hainaut, Limbourg, Brabant wallon >>> print(', '.join([x.nl for x in wallonia.children])) Namen, Luik, Henegouwen, Limburg, Waals-Brabant
The following number will decrease when we continue to change “city” entries into “village” or “township” entries:
>>> liege = wallonia.children[1] >>> len(liege.children) 353 >>> eupen = liege.get(fr="Eupen") >>> print(eupen.zip_code) 4700
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
commondata.be-0.0.2.tar.gz
(26.9 kB
view details)
File details
Details for the file commondata.be-0.0.2.tar.gz
.
File metadata
- Download URL: commondata.be-0.0.2.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfbf7c179d3127863e517666e3aa862bd7008366d51b88ffd0e775413a8e9376 |
|
MD5 | ff486ea5936779d19597c19500a293b0 |
|
BLAKE2b-256 | a462b28efecbc74bc3e6ae3ed0d1a1ec8c16f7b046479f0832659830d42bc822 |