Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

An example data productizer app / API framework for python data producizers for the Virtual Finland Development use-cases

License

Notifications You must be signed in to change notification settings

Virtual-Finland-Development/testbed-test-productizer

Repository files navigation

testbed-test-productizer

An example data productizer app / API framework for python data producizers for the Virtual Finland Development use-cases.

Build Deploy

Open in Remote - Containers

Description

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:

test-productizer

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

Running the app

The development setup can be set up using docker, docker compose, vscode devcontainers or with local tools

Run with vscode devcontainer

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 postStartCommand is set to make dev which should publish the endpoint

Run locally with docker

docker compose

  • docker compose up

docker run

  • docker build -t testbed-test-productizer .
  • docker run --rm -it -p 8000:8000 testbed-test-productizer

Run locally with python

Requirements

  • python >= 3.9
  • python-pip
  • make

Install

  • make install

Usage

  • make run # Run the app
  • make dev # run with hot-reload

Usage:

Developer notes:

When developmenting with a vscode editor, switch the python type-hinting to strictly enabled by a setting:

{
  "python.analysis.typeCheckingMode": "strict"
}

References

Vanhat linkit:

About

An example data productizer app / API framework for python data producizers for the Virtual Finland Development use-cases

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •