A docassemble extension, to view stats from other interviews
Project description
docassemble.InterviewStats
A docassemble interview that lets you view statistics from other saved interview responses.
Getting Started
- Pull this package into your docassemble playground, or install it on your docassemble server.
- 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})
. - Once you have reached the
store_variables_snapshot
point in your target interview, start the stats interview. - If you're in the playground, run the
stats.yml
interview. - If you installed the package, go to the
/start/InterviewStats/stats/
URL to start the interview. - Select the target interview in the drop down.
- 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:
- 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
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
Built Distribution
File details
Details for the file docassemble.InterviewStats-0.5.0.tar.gz
.
File metadata
- Download URL: docassemble.InterviewStats-0.5.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4187733363165462a670bbe841599bdaf48c2f071eb716c072b9aae840dbb333 |
|
MD5 | 34f6e4cc504a6490678a18469173a993 |
|
BLAKE2b-256 | 78733ad74ae66da453ce0dd3c0d7ea69d0df3ced78daf6223bcd578c5a1e6244 |
File details
Details for the file docassemble.InterviewStats-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: docassemble.InterviewStats-0.5.0-py3-none-any.whl
- Upload date:
- Size: 26.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c568f26472f2c1d5d705b544881d617e5e107105b3fd1502bb5166320ac39136 |
|
MD5 | 0621835e9f7d02fbc5afeaaea020d41f |
|
BLAKE2b-256 | 555f49b3878212a03c4f22bd4c62d956d40e87c9f2a5e64393cfbe4eda36da1b |