Skip to main content

datasette-surveys

Construct and gather responses to surveys all within Datasette!

Here's what the survey form builder looks like

This plugin is based heavily on the officially amazing but unsupported Alpaca form builder.

Installation

python setup.py install

Usage

The plugin adds an interface at /-/surveys and a "Surveys" link in the menu.

Configuration & Permissions

This plugin uses the permission plugin looking for responses to the following actions (they all start with surveys-):

  • surveys-list: allows actors to view the list of previously created surveys.
  • surveys-create: allows actors to create surveys. Won't allow overwriting by itself.
  • surveys-update: allows actors to update surveys, resource: id of the survey if being updated. This permission doesn't stop actors from updating with blank surveys or otherwise removing fields.
  • surveys-delete: allows actors to delete surveys. resource: id of the survey being deleted.
  • surveys-view-form: allows actors to view and respond to individual forms. resource: id of the survey.

One configuration option is available, which controls which directory the surveys folder will be placed.

# in your metadata.yml...
plugins:
  datasette-surveys:
    db_dir: /path/to/data

By default, the current working directory for the Datasette process will be used (assumed to be the same as the other DBs).

Development

The form builder borrows heavily from Alpaca's form builder and the front end build also comes from the Alpaca repo.

To pull the dependencies for the plugin, use bower:

bower install

And if you don't have bower, run this first: npm install -g bower

The form builder is found in datasette_surveys/static/form-builder.js. It's a modified version of the Alpaca one.

Running python setup.py install will reinstall the plugin.

Metadata

Release files for datasette-surveys 1.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-surveys 1.1.8
File Size Uploaded Provenance Actions
datasette-surveys-1.1.8.tar.gz 23.1 MB Without provenance Details for datasette-surveys-1.1.8.tar.gz

Release files / datasette-surveys-1.1.8.tar.gz

Download URL datasette-surveys-1.1.8.tar.gz
Size 23.1 MB
Tags Source
SHA-256 checksum
How to use checksums
9f86b606ce5779c9762152a80af9e52de431574dabd56da38b42d57ba8a77b22
BLAKE2b-256 checksum
How to use checksums
0047bf2d61fcc736d238cf36caff5a4a628c2f5de3256a5c908e4c643d95163f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.3

Security for datasette-surveys 1.1.8

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page