Skip to main content

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:

Other websites that use the same platform:

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:

  1. 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
  1. 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)

Source distribution for stadincijfers 0.2.3
File Size Uploaded
stadincijfers-0.2.3.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stadincijfers 0.2.3
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.1.3

1 release file

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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