STL and VTK viewer extension for CKAN
Project description
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:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-vtkjs Python package into your virtual environment:
pip install ckanext-vtkjs
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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.