Skip to main content

STL and VTK viewer extension for CKAN

Project description

https://travis-ci.org/SFB-ELAINE/ckanext-vtkjs.svg?branch=master

ckanext-vtkjs

This is a CKAN extension that provides views for STL, VTP, VTI, and VTK PolyData files, as well as ZIP archives containing OBJ files.

Requirements

Tested with CKAN 2.9.0a.

Installation

To install ckanext-vtkjs:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-vtkjs Python package into your virtual environment:

    pip install ckanext-vtkjs
  3. Add vtkjs to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini). Do not add vtkjs to the list of default views - the plugin automatically adds itself as a view to any resource it can display, and adding it to the list of default views causes it to be added to some types of resources that it cannot display.

  4. Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload

Config settings

None at present.

Developer installation

To install ckanext-vtkjs for development, activate your CKAN virtualenv and do:

git clone https://github.com//ckanext-vtkjs.git
cd ckanext-vtkjs
python setup.py develop
pip install -r dev-requirements.txt

Tests

To run the tests, do:

nosetests --nologcapture --with-pylons=test.ini

To run the tests and produce a coverage report, first make sure you have coverage installed in your virtualenv (pip install coverage) then run:

nosetests --nologcapture --with-pylons=test.ini --with-coverage --cover-package=ckanext.vtkjs --cover-inclusive --cover-erase --cover-tests

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

ckanext-vtkjs-0.0.1.tar.gz (1.8 MB view details)

Uploaded Source

File details

Details for the file ckanext-vtkjs-0.0.1.tar.gz.

File metadata

  • Download URL: ckanext-vtkjs-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for ckanext-vtkjs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f533fb69b86afdf83fe6c7e039ef4e7bfa068afcfbaf53b48c7cca3321632073
MD5 8e63dca8dea819e91b4d473599d974ad
BLAKE2b-256 d13b5bc9f563a7c3b58eb488096b07d1b57c579dd147808f24c3703cdb5f4ebb

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