Stad in Cijfers, python API
Purpose
A python package to make data from stadincijfers easely available for data scientists.
Intro
Via the website 'Stad in cijfers' you can consult statistical data on various themes. In principle for the city of Antwerp, all data on 'Stad in cijfers' is open data and can therefore be used freely, unless stated otherwise.
Many local goverments in Flanders have a website like this:
- Gent: https://gent.buurtmonitor.be
- Antwerp: https://stadincijfers.antwerpen.be/databank
- The provinces: https://provincies.incijfers.be
Other websites that use the same platform:
- IMA-Atlas: https://atlas.ima-aim.be/
- Bevolkingsonderzoek: https://bevolkingsonderzoek.incijfers.be/
Installation:
from pypi:
pip install stadincijfers
or from sources:
git clone https://github.com/warrieka/stadincijfers.py
cd stadincijfers.py
pip install -r requirements.txt
pip install .
Usage:
- List periodlevels in the SIC site of Antwerp.
from stadincijfers import stadincijfers
sic = stadincijfers("antwerpen") #or gent or provincies or ima-atlas or bevolkingsonderzoek or url
sic.periodlevels() #=> get all periodslevels
- Export excel:
from stadincijfers import stadincijfers
sic = stadincijfers("antwerpen") #or gent or provincies or url
bevdicht = sic.selectiontableasDataframe('bevdicht', geolevel='sector', periodlevel='year', period=2022)
bevdicht.to_excel('data\\bevdicht2022.xlsx') # save to excel
For more see example jupyter notebook: example_usage.ipynb
Metadata
Release files for stadincijfers 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stadincijfers-0.2.3.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stadincijfers-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / stadincijfers-0.2.3.tar.gz
| Download URL | stadincijfers-0.2.3.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
465b762f8ba1b70464f0bb3e3aeb32b077ac8eab43a63b7e696c13ff1315ecca
|
|
BLAKE2b-256 checksum How to use checksums |
479620a79e75f740d2ab5559a16f509a92f9339b9888ff64fe27d7d782991c21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / stadincijfers-0.2.3-py3-none-any.whl
| Download URL | stadincijfers-0.2.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1dbfbccadcc560722bfc784a8792bd52af6df13676cd020b961bbf9183c1fa61
|
|
BLAKE2b-256 checksum How to use checksums |
f67b3a798426e6e735d95d5abde66a3dd0009dbd126c65a874573b4668e78af9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|