Skip to content

Questionnaire abstraction library #3

@thomaspaulb

Description

@thomaspaulb

For a web project I am looking to abstract the "questionnaire logic" part into a separate Python module. Eg. it would define a questionnaire, composed of several questions, some questions would be conditional based on answers, etc. It would all be one nice logical unit bundled with some tests, which could then be used from any kind of Python project.

I came across your work over here and it seems like what I am looking for, except that:

  • It does not implement some things that I would implement, such as computed fields that can be shown in next question's texts, and being able to integrate blobs of static data for those computations or for selection lists
  • It is tightly integrated with "pick", whereas in my idea, I would move the "pick" part to a separate "execute_questionnaire_in_terminal" module, which has the pick integration, and other projects can choose to have other ways of presenting the questionnaire to the user eg. through Django, or through an API.

Is this something you have thought about?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions