Skip to main content

Scientific Compute Container Spec Parser

Project description

About

About KLIKO

Installation

$ python setup.py install

or:

$ pip install kliko

Usage

import kliko.validate
kliko.validate.validate(your_metadata_definition)

The specification

  • All is based on standard docker containers

  • Container mush have a CMD specified, which would be the main program of the container. It should not require arguments.

  • logging should be written to STDOUT and STDERR.

  • We define two types of compute containers, split IO and joined IO containers.

  • For split IO Input files will be mounted read only into /input. Output file should be written to /output, which will be mounted by the host.

  • For joined IO containers input & output is the /work folder which will be mounted RW.

  • parameters can be defined with a file in json format called parameters.json in /input

  • Which parameters the container will aceept should be defined in a yaml file /para_def.yml

  • The parameters definition (para_def.yml) file should follow the schema defined in kliko/schema.yml.

  • an example parameters definition file can be found in examples/form.yml

  • fields with type file will enable supply of custom input files. these will be put in the /input folder.

Example

There is an example in examples/form.yml

Django

In kliko.django_form there is a function that can automatically generate a Django form from a parsed parameter definition file. This is used by RODRIGUES to render a form inside a website which then can be used to schedule a parameterized container.

https://github.com/ska-sa/rodrigues/

This requires django-form-utils.

https://pypi-hypernode.com/pypi/django-form-utils

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

kliko-0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

kliko-0.1-py2.py3-none-any.whl (4.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kliko-0.1.tar.gz.

File metadata

  • Download URL: kliko-0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kliko-0.1.tar.gz
Algorithm Hash digest
SHA256 1d0d5983f1067c43c87390d8467862f644447ffe78dda36f6324e4843aa4e095
MD5 8056e3e43152361c201ce35d8087d0f6
BLAKE2b-256 d5de3ad95bf267d122f1a589024aca20250e09e7ce76801927b77b32f626c669

See more details on using hashes here.

File details

Details for the file kliko-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for kliko-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6bcf24393ec8d60f851fa73f76c74988e3d31cd71f69b972ca72350ab44beba3
MD5 e027c6bae9c1211b6449e97aba1bbb31
BLAKE2b-256 b5af176a6a08e4c96d611430f31dfe1b6fea29b7148910183b8dc1c3056d8910

See more details on using hashes here.

Supported by

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