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.0a3.tar.gz (122.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ckanext_files-1.0.0a3.tar.gz
Algorithm Hash digest
SHA256 1fce41298cdcf7c2b28852365d95dfd5b4f4352998242c30ed5b54558d04dce3
MD5 e3d196f05c4d7efc12f511686a94f663
BLAKE2b-256 bff452d258bd95a5268b64016fd6f8ca3fc8f2e13017edfad0d0f75cf4fe3c7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ckanext_files-1.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 b7ecf057b516110088dffec7057167870dbb4f31a9b294597545e62a9148331f
MD5 0b7bbd1de6e0b5f4d8a2bf42e5924ab9
BLAKE2b-256 f08553f45d2bb240de3734f5b875d6609667159bbf5c86fe739c4fcb54e38845

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