ckanext-files
Files as first-class citizens of CKAN. Upload, manage, remove files directly and attach them to datasets, resources, etc.
Read the documentation for a full user guide.
Also, check documentation of the file-keeper library. It's used by this extension and contains logic that does not depend on CKAN and may be useful if you are going to implement custom storage adapter or just want to use familiar file abstractions in the arbitrary program.
Quickstart
-
Install the extension
pip install ckanext-files
-
Add
filesto theckan.pluginssetting of the CKAN config file. -
Run DB migrations
ckan db upgrade -p files
-
Configure storage
ckanext.files.storage.default.type = files:fs ckanext.files.storage.default.path = /tmp/example ckanext.files.storage.default.initialize = true
-
Upload your first file
ckanapi action files_file_create upload@~/Downloads/file.txt`
Development
Install dev extras and nodeJS dependencies:
pip install -e '.[dev]'
npm ci
Run unittests:
pytest
Run frontend tests:
# start test server in separate terminal
make test-server
# run tests
npx cypress run
Run typecheck:
npx pyright
License
Metadata
Release files for ckanext-files 1.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ckanext_files-1.3.4.tar.gz | 148.6 kB | Without provenance | Details for ckanext_files-1.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ckanext_files-1.3.4-py3-none-any.whl | Python 3 | none | any | Details for ckanext_files-1.3.4-py3-none-any.whl |
Total release size: 330.6 kB
Release files / ckanext_files-1.3.4.tar.gz
| Download URL | ckanext_files-1.3.4.tar.gz |
|---|---|
| Size | 148.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfcefa84a5492846b224574891251c07ed764a29fc64b0d660afa6e32a43e998
|
|
BLAKE2b-256 checksum How to use checksums |
3cca5d20fa3b0a227a063fbdceba38b9cdf60b28a3ddd4976a03c6cce7c521ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / ckanext_files-1.3.4-py3-none-any.whl
| Download URL | ckanext_files-1.3.4-py3-none-any.whl |
|---|---|
| Size | 182.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
854acbb1085836588d0e3ccbd3b6457c074f99ce205cd9d0ed5c96d224351280
|
|
BLAKE2b-256 checksum How to use checksums |
5a9c43cfdd4dd260e6c65c37fcced360e3047a7ced6a8025e21e671d90f9853d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for ckanext-files 1.3.4
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.