An example data productizer app / API framework for python data producizers for the Virtual Finland Development use-cases.
An example environment for setting up a data source for the use of the testbed dataspace.
The current data flow between the front-end app, testbed and the produtizer API:
Figure: current state of the productizer data flow
Read more from the front app data requesting guidelines from ioxio.com/guides: Requesting the data from a data source
The development setup can be set up using docker, docker compose, vscode devcontainers or with local tools
Read more of the vscode devcontainers here: https://code.visualstudio.com/docs/remote/containers
- Open the project folder as devcontainer
- Browse the API-docs at http://localhost:8000/
- In the container, the default
postStartCommandis set tomake devwhich should publish the endpoint
- In the container, the default
docker compose up
docker build -t testbed-test-productizer .docker run --rm -it -p 8000:8000 testbed-test-productizer
- python >= 3.9
- python-pip
- make
make install
make run# Run the appmake dev# run with hot-reload
- After the app running..
- See endpoint documentation: http://localhost:8000/docs
When developmenting with a vscode editor, switch the python type-hinting to strictly enabled by a setting:
{
"python.analysis.typeCheckingMode": "strict"
}
- https://tilastokeskus.fi/ajk/verkkosivu-uudistus/uudistuksen-vaikutukset-statfin-tietokantaan.html
- Dokumentaatio: https://statfin.stat.fi/api1.html
- https://stat.fi/tup/alue/kuntienavainluvut.html#?year=2021&active1=SSS
Vanhat linkit:
- Tilastokeskuksen avoimet tietokanta-aineistot: https://www.stat.fi/org/avoindata/pxweb.html
- Dokumentaatio: http://pxnet2.stat.fi/api1.html
- API-linkki: https://pxnet2.stat.fi/PXWeb/api/v1/fi/Kuntien_avainluvut/
- Kannan rakenne: https://pxnet2.stat.fi/PXWeb/api/v1/fi/Kuntien_avainluvut/?query=*&filter=*
