Skip to main content

A Python Framework for Tracable Active Learning Projects.

Project description

LIFEDATA

Process Outline of a Active Learning Project with LIFEDATA

Usage

Create a project specific conda environment (e.g. conda create -n myproject python=3.10) or use your conda base environment

Install lifedata in your environment via pip install lifedata

After lifedata installation use lifedata --help to get help for lifedata commands

Generate your LIFEDATA project by using the project template lifedata init <project instance name>

Further steps can be found in the project's README.

Custom Development

Setup

To create your local development environment (e.g. for integration with your IDE) run:

conda env create

This will create you a local environment called lifedata with all necessary dependencies installed.

Run development server

To start the project related services run:

docker-compose up

You can then access the frontend at http://localhost:3000/ in your browser. The API is available at http://localhost:8000/ and is also proxied via the frontend (to avoid CORS issues).

Storybook can be accessed at http://localhost:3001

Tests

There are tests for the python code as well as tests for the TypeScript based frontend code.

Python Tests

To always keep the tests running and see if everything is still working as expected, run::

ptw

To run the tests once, just do: py.test

TypeScript Tests

Run yarn test in the webui directory.

Database Migrations

If you want to adjust the database tables, you also need to prepare a migration script using alembic in order to provide executable instructions on how to alter the database.

For most cases it's sufficient to change the table definitions in the code and then run::

docker-compose run --rm webapi alembic revision --autogenerate -m "your change message here"

Now inspect the auto generated file if everything is as it is supposed to be.

Then run alembic upgrade head in the api container to apply these changes to your local database.

Citation

coming soon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lifedata-0.1.1.tar.gz (828.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lifedata-0.1.1-py3-none-any.whl (743.2 kB view details)

Uploaded Python 3

File details

Details for the file lifedata-0.1.1.tar.gz.

File metadata

  • Download URL: lifedata-0.1.1.tar.gz
  • Upload date:
  • Size: 828.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for lifedata-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6b1880c5b7a0f62ebad1f97635c41baee0b4c0bbab0e27cc15d2dbef30882e56
MD5 834afc222cbfb0e91dec7498ded84749
BLAKE2b-256 08e93ea749defcacc619bb75e974d39812b94f43b47ca0d32983c632760b11cf

See more details on using hashes here.

File details

Details for the file lifedata-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lifedata-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 743.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for lifedata-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfbad709c513445f6acbe3a449f8672bbfddecb7caf8f83f7ee063c39df1629c
MD5 5e2a14be3419e128ea415a641518c0ac
BLAKE2b-256 8fbc7553b0656828008174f6c4af46e4977ffadbbadbe3fd7f38b2816f0d2a81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page