Skip to main content

A docassemble interview to view statistics from other saved interview responses.

Project description

docassemble.InterviewStats

PyPI version

A docassemble interview that lets you view statistics from other saved interview responses.

Getting Started

  1. Pull this package into your docassemble playground, or install it on your docassemble server.
  2. To generate data that this interview can consume, use the store_variables_snapshot() function in your interview, i.e. store_variables_snapshot(data={'zip': users[0].address.zip}).
  3. Once you have reached the store_variables_snapshot point in your target interview, start the stats interview.
  4. If you're in the playground, run the stats.yml interview.
  5. If you installed the package, go to the /start/InterviewStats/stats/ URL to start the interview.
  6. Select the target interview in the drop down.
  7. You can export the data in a Excel format by clicking the Download link on the stats page.

Anonymous stats

If you would like to provide login-less access to stats for an interview in your dispatch directive, you can do so as follows:

  1. Add a directive in your configuration file, like this:
stats subscriptions:
  - cdc_moratorium: 12345abcedfg17821309
  - 209a: 4859123jkljsafdsf0913132

Where the value on the left corresponds to the key of an entry in your dispatch directive, and the value on the right is an arbitrary password you create. I recommend using something like https://onlinehashtools.com/generate-random-md5-hash to create a random password to control access.

You can add as many unique passwords as you want for each entry you share. This means you can distribute multiple links without sharing the password.

Then, someone can access the link to a specific interview's stats by visiting this url:

/start/InterviewStats/subscribe/?link=cdc_moratorium&auth=12345abcedfg17821309

They will be directed immediately to download an XlSX file containing the statistics.

Example

Example Pic

Roadmap

Currently, we can show simple grouping over all the data points in the interview stats. However, the special visualization are only shown on based on the zip attribute. We're working to expand the features available here in conjunction with our EFiling Integration.

If you have specific feature requests, feel free to open an issue or make a PR!

Authors

  • Quinten Steenhuis
  • Bryce Willey

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

docassemble_interviewstats-0.5.3.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docassemble_interviewstats-0.5.3-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file docassemble_interviewstats-0.5.3.tar.gz.

File metadata

File hashes

Hashes for docassemble_interviewstats-0.5.3.tar.gz
Algorithm Hash digest
SHA256 c770eeaa2cb4ffd0664a13a353fcf2ca65c345009d14d4ab147603cd067f52f1
MD5 6e1c99ced420c8bf7ebe2bbc26a9dc94
BLAKE2b-256 49fedf381d5bb277dab9eb7ffe3b5655895c6ddf8a7926409d7c481ac3363a99

See more details on using hashes here.

Provenance

The following attestation bundles were made for docassemble_interviewstats-0.5.3.tar.gz:

Publisher: publish.yml on SuffolkLITLab/docassemble-InterviewStats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docassemble_interviewstats-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for docassemble_interviewstats-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75009b0cd93222a2b1313eacfc425c46bea64ac257029d80390a0ecdf8b50e07
MD5 235776452a66115020302ef4579548de
BLAKE2b-256 7892ef2327c5af188b79fa1eb3182695b111cc9d776f535bc7a00801e46679b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for docassemble_interviewstats-0.5.3-py3-none-any.whl:

Publisher: publish.yml on SuffolkLITLab/docassemble-InterviewStats

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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