Skip to main content

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.

Contributing

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

Authors

  • Quinten Steenhuis
  • Bryce Willey

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.6.0.tar.gz (20.1 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.6.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for docassemble_interviewstats-0.6.0.tar.gz
Algorithm Hash digest
SHA256 36c12864f33b7b838e45ae7d7f2bd4adc39ec871b55919ee79a49b74884abb49
MD5 b670ac561ae15ca179f00c7932282c1b
BLAKE2b-256 d200824f99eb026f61a67c69dabfe268d845b0d4937d24b68896fec2d1336abf

See more details on using hashes here.

Provenance

The following attestation bundles were made for docassemble_interviewstats-0.6.0.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.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for docassemble_interviewstats-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2cf42de442249448f529da15c00c0fdf8b29049240b8e15910c505148cb06014
MD5 ab785cacc0645598bb86c2da1f542c33
BLAKE2b-256 308cff928ab78cfeab8a7df93c1b4e01b15ba47a9ef946a92a8584d2b318500e

See more details on using hashes here.

Provenance

The following attestation bundles were made for docassemble_interviewstats-0.6.0-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.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 files

0.5.3

2 files

0.5.0

2 files

0.2

2 files

0.1.1

1 file

0.1.0

1 file

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