{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 2.7" ], "description": ".. image:: https://travis-ci.org/SFB-ELAINE/ckanext-papaya.svg?branch=master\n :target: https://travis-ci.org/SFB-ELAINE/ckanext-papaya\n\n===============\nckanext-papaya\n===============\n\nThis is an extension for CKAN that uses Papaya\n(https://github.com/rii-mango/Papaya) to provide views for NIFTI (.nii) and\nDICOM (.dcm) file formats. It provides views for both single DICOM files as well\nas DICOM directories uploaded to CKAN as a ZIP file.\n\n------------\nRequirements\n------------\n\nTested with CKAN 2.9.0a.\n\n------------\nInstallation\n------------\n\nTo install ckanext-papaya:\n\n1. Activate your CKAN virtual environment, for example::\n\n . /usr/lib/ckan/default/bin/activate\n\n2. Install the ckanext-papaya Python package into your virtual environment::\n\n pip install ckanext-papaya\n\n3. Add ``papaya`` to the ``ckan.plugins`` setting in your CKAN\n config file (by default the config file is located at\n ``/etc/ckan/default/production.ini``). To avoid having the Papaya viewer\n enabled for all ZIP files, regardless of whether they contain DICOM files,\n do **not** add ``papaya`` to ``ckan.views.default_views``.\n\n4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu::\n\n sudo service apache2 reload\n\n\n---------------\nConfig settings\n---------------\n\nNone at present. NIFTI files and DICOM directories tend to be rather large,\nso you may have to increase the maximum resource size to allow users to upload\nthese file formats.\n\n----------------------\nDeveloper installation\n----------------------\n\nTo install ckanext-papaya for development, activate your CKAN virtualenv and\ndo::\n\n git clone https://github.com//ckanext-papaya.git\n cd ckanext-papaya\n python setup.py develop\n pip install -r dev-requirements.txt\n\n\n-----\nTests\n-----\n\nTo run the tests, do::\n\n nosetests --nologcapture --with-pylons=test.ini\n\nTo run the tests and produce a coverage report, first make sure you have\ncoverage installed in your virtualenv (``pip install coverage``) then run::\n\n nosetests --nologcapture --with-pylons=test.ini --with-coverage --cover-package=ckanext.papaya --cover-inclusive --cover-erase --cover-tests\n\n--------------------\nUsing the Extension\n--------------------\n\nThe extension automatically creates a view using the Papaya Viewer for single\nDICOM files (with file extension .dcm), NIFTI files (with file extension .nii),\nand ZIP archives that contain one or more DICOM files. If a ZIP archive contains\nother file types besides DICOM files, or DICOM files without the .dcm extension,\nthey will simply be ignored when displaying correctly-formatted files in\nPapaya.\n\nTo view zipped DICOM files, the extension temporarily unzips the archive and\npasses the contents of the files with .dcm extensions to Papaya. The unzipped\nfiles are deleted immediately to prevent them from taking up space on the server.\nPapaya can't actually read local files, since it's a JavaScript framework, so\nit is necessary to pass the raw contents of the files rather than the paths to the\nfiles themselves on to Papaya. Users may experience some lag when trying to view\nlarge DICOM directories, but most of this lag comes from Papaya reading the\nindividual DICOM files rather than from the CKAN extension passing the data to\nPapaya.\n\nUnlike our ParaView extension (https://github.com/SFB-ELAINE/ckanext-paraview),\nthis extension runs directly in CKAN and does not require a separate server.\nOnce it is installed in a CKAN instance and added to the config file, it will\nwork without further setup.\n\nThis extension will automatically create Papaya views for newly-uploaded files,\nbut existing resources with NIFTI files, single DICOM files, or DICOM directories\nmay need to have the Papaya view added manually.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com//ckanext-papaya", "keywords": "CKAN", "license": "AGPL", "maintainer": "", "maintainer_email": "", "name": "ckanext-papaya", "package_url": "https://pypi.org/project/ckanext-papaya/", "platform": "", "project_url": "https://pypi.org/project/ckanext-papaya/", "project_urls": { "Homepage": "https://github.com//ckanext-papaya" }, "release_url": "https://pypi.org/project/ckanext-papaya/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Papaya viewer extension for CKAN", "version": "0.0.1" }, "last_serial": 5670505, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "8ebe1b4fda51bb215f0deaad9312d8c2", "sha256": "6dd63e93812885f0807a91031b9bfd0e8167ba2196958fcaeba73d3772956a66" }, "downloads": -1, "filename": "ckanext-papaya-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8ebe1b4fda51bb215f0deaad9312d8c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 444497, "upload_time": "2019-08-13T07:17:40", "url": "https://files.pythonhosted.org/packages/47/90/e3d26b8b0626acd655d58c3e74dd3afe44380f6bf562e912ca2dd61e6711/ckanext-papaya-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8ebe1b4fda51bb215f0deaad9312d8c2", "sha256": "6dd63e93812885f0807a91031b9bfd0e8167ba2196958fcaeba73d3772956a66" }, "downloads": -1, "filename": "ckanext-papaya-0.0.1.tar.gz", "has_sig": false, "md5_digest": "8ebe1b4fda51bb215f0deaad9312d8c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 444497, "upload_time": "2019-08-13T07:17:40", "url": "https://files.pythonhosted.org/packages/47/90/e3d26b8b0626acd655d58c3e74dd3afe44380f6bf562e912ca2dd61e6711/ckanext-papaya-0.0.1.tar.gz" } ] }