This release is a pre-release and may not be stable for production use.
Tabular Preview
A plugin to preview tabular files (CSV, Excel ...) using tabular-api
Usage
Install the plugin package in you udata environement:
pip install udata-tabular-preview
Then activate it in your udata.cfg:
PLUGINS = ['tabular']
Configuration
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
Development
JS dependencies
Install JS dependencies with:
npm install
Then 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-build
You should extract the vue-i18n language files after modifying this plugin with :
inv i18n
Python dependencies
Assuming 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).
Testing
Tests are located into the tests folder and be run with:
inv test
Quality
Code must pass Flake 8 validation and README should be compatible with PyPI.
You can check both with:
inv qa
Changelog
Current (in progress)
4.0.0 (2024-05-06)
- :warning: Plug udata-tabular-preview to tabular api and decomission of csvapi #33
- Migrate to Python 3.11 following
udatadependencies upgrade #35 - Don't show preview if parsing has failed #36
- Display the latest date of the preview #37
- Set long description content type to markdown in dist #39
- Publish .dev version on pypi #40
4.0.0 (2024-03-22)
- Connect preview with hydra and remove csvapi + styles for preview #32 Current (in progress)
- Use pagination from package
@etalab/data.gouv.fr-components#34
3.1.0 (2024-01-23)
- Use either of analysis or header check mime #32
3.0.4 (2024-01-09)
3.0.3 (2023-03-07)
3.0.2 (2023-03-02)
- Add data structure component and explore button for hook
dataset.display.explore-button#19
3.0.1 (2023-02-06)
- Add sort to exploration preview component #20
- Fix setuptools version used in CI #23
- Add pagination to exploration preview component #21
3.0.0 (2023-01-18)
- :warning: Breaking change Change preview behaviour #14
- remove
previewroute - add exploration preview Vue component
- add explorable_ressources metadata
- remove
- Replace mongo legacy image in CI #13
- Update json5 to fix CVE-2022-46175 #16
2.0.3 (2022-07-11)
- Remove legacy manifest logic and dataexplorer integration #12
2.0.2 (2020-10-16)
- Add a setting for SUPPORTED_MIME_TYPES #9
2.0.1 (2020-06-17)
- Use extras attributes to enable preview #8
2.0.0 (2020-03-11)
- Migrate to Python3 #5
1.0.0 (2018-10-02)
Initial release
Metadata
Release files for udata-tabular-preview 4.0.1.dev798
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| udata_tabular_preview-4.0.1.dev798-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / udata_tabular_preview-4.0.1.dev798-py2.py3-none-any.whl
| Download URL | udata_tabular_preview-4.0.1.dev798-py2.py3-none-any.whl |
|---|---|
| Size | 246.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
40b23bc7056618fa53b5b6c54c4d97f1a7fcedf0137dc1725545414e3f4fe0c7
|
|
BLAKE2b-256 checksum How to use checksums |
a244b4786fb2bb0d8ab8af705001e6e8f698dc59aa09e058787bb8618b20735c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.6
|
Security for udata-tabular-preview 4.0.1.dev798
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.