Important
This repository is archived. Tabular preview features (and more) have been integrated in cdata.
A plugin to preview tabular files (CSV, Excel ...) using tabular-api
Install the plugin package in you udata environement:
pip install udata-tabular-previewThen activate it in your udata.cfg:
PLUGINS = ['tabular']You can control this plugin behavior with the following udata.cfg parameters:
TABULAR_API_URL: The URL to yourtabular-apiinstance (without trailing slash). ex:https://my.tabular.apiTABULAR_EXPLORE_URL: The URL to yourexploreinstance (without trailing slash). ex:https://my.exploreTABULAR_ALLOW_REMOTE: Whether or not to allow remote resources preview. Default value isTrueTABULAR_PAGE_SIZE: fetched data page size. Default to5
Install JS dependencies with:
npm installThen you can package these assets with:
inv assets-watch(You might need to relaunch these commands when you pull upstream changes).
You can build a production-ready version of JS and CSS assets with:
inv assets-buildYou should extract the vue-i18n language files after modifying this plugin with :
inv i18nAssuming you are in an active virtualenv with udata installed and in the current project cloned repository directory, install all dependencies using:
pip install -e requirements/develop.pip(You might need to relaunch this command when you pull upstream changes).
Tests are located into the tests folder and be run with:
inv testCode must pass Flake 8 validation and README should be compatible with PyPI.
You can check both with:
inv qa