Skip to main content

No project description provided

Project description

Tests

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.

Quickstart

  1. Install the extension

    pip install ckanext-files
    
  2. Add files to the ckan.plugins setting in your CKAN config file.

  3. Run DB migrations

    ckan db upgrade -p files
    
  4. Configure storage

    ckanext.files.storage.default.type = files:fs
    ckanext.files.storage.default.path = /tmp/example
    ckanext.files.storage.default.create_path = true
    
  5. 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

AGPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext_files-1.0.0a2.tar.gz (122.0 kB view details)

Uploaded Source

Built Distribution

ckanext_files-1.0.0a2-py3-none-any.whl (155.0 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_files-1.0.0a2.tar.gz.

File metadata

  • Download URL: ckanext_files-1.0.0a2.tar.gz
  • Upload date:
  • Size: 122.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.18

File hashes

Hashes for ckanext_files-1.0.0a2.tar.gz
Algorithm Hash digest
SHA256 55d5f6b708ad598a87b241f39b909aa505921b66abbd0dae951077b0354ec1e5
MD5 63d4f63c17f4b31d4f200addc706e934
BLAKE2b-256 4edf8f638bb8fce0b25fcd5f6c939e57eb3734382d8c70bf74fe42f45116004e

See more details on using hashes here.

File details

Details for the file ckanext_files-1.0.0a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_files-1.0.0a2-py3-none-any.whl
Algorithm Hash digest
SHA256 79737b9b68119e29804fe54eec053d903a2332f34ab25414f7d34307c34a1e57
MD5 75956af888a20eb27c72d4b2b24ef210
BLAKE2b-256 0efb93183f8cb36dd10be8d5655dfbad8b6516459944baa8edf272158d921e0a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page