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.
Source Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f533fb69b86afdf83fe6c7e039ef4e7bfa068afcfbaf53b48c7cca3321632073 |
|
MD5 | 8e63dca8dea819e91b4d473599d974ad |
|
BLAKE2b-256 | d13b5bc9f563a7c3b58eb488096b07d1b57c579dd147808f24c3703cdb5f4ebb |