Skip to main content

The commondata.be package

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

Metadata

Release files for commondata.be 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for commondata.be 0.0.2
File Size Uploaded Provenance Actions
commondata.be-0.0.2.tar.gz 26.9 kB Without provenance Details for commondata.be-0.0.2.tar.gz

Release files / commondata.be-0.0.2.tar.gz

Download URL commondata.be-0.0.2.tar.gz
Size 26.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cfbf7c179d3127863e517666e3aa862bd7008366d51b88ffd0e775413a8e9376
BLAKE2b-256 checksum
How to use checksums
a462b28efecbc74bc3e6ae3ed0d1a1ec8c16f7b046479f0832659830d42bc822
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for commondata.be 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page