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_snapshotpoint in your target interview, start the stats interview. - If you're in the playground, run the
stats.ymlinterview. - 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
Downloadlink 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.
Contributing
If you have specific feature requests, feel free to open an issue or make a PR!
Authors
- Quinten Steenhuis
- Bryce Willey
Metadata
Release files for docassemble.InterviewStats 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| docassemble_interviewstats-0.6.1.tar.gz | 20.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docassemble_interviewstats-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.6 kB
Release files / docassemble_interviewstats-0.6.1.tar.gz
| Download URL | docassemble_interviewstats-0.6.1.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a45de50d6777a0bf9a41a7d87720669344fe428ed65d380df7c5d50113b370d
|
|
BLAKE2b-256 checksum How to use checksums |
9a82c7fdbb0c10025a6913d1a69253be0c2e953c87749a161d2dfc5155c77293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / docassemble_interviewstats-0.6.1-py3-none-any.whl
| Download URL | docassemble_interviewstats-0.6.1-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c2134372bdffbea0489d656a6703105e5f54bc1915e3a47649040a7ac570780
|
|
BLAKE2b-256 checksum How to use checksums |
0020db5516ba0cb3a127f91c2d9b34ac6099d883889378a8bbf66ab225fe1914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency log