commondata.be-0.0.2
توضیحات
Common data about Belgium
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | commondata.be-0.0.2 |
| نام | commondata.be |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Luc Saffre |
| ایمیل نویسنده | luc.saffre@gmail.com |
| آدرس صفحه اصلی | https://github.com/lsaffre/commondata-be |
| آدرس اینترنتی | https://pypi.org/project/commondata.be/ |
| مجوز | GPL |
The ``commondata.be`` package
=============================
`Common data <https://github.com/lsaffre/commondata>`_ 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
نحوه نصب
نصب پکیج whl commondata.be-0.0.2:
pip install commondata.be-0.0.2.whl
نصب پکیج tar.gz commondata.be-0.0.2:
pip install commondata.be-0.0.2.tar.gz