Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questionnaire abstraction library #3

Open
thomaspaulb opened this issue May 3, 2019 · 2 comments
Open

Questionnaire abstraction library #3

thomaspaulb opened this issue May 3, 2019 · 2 comments

Comments

@thomaspaulb
Copy link

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?

@kylebebak
Copy link
Owner

kylebebak commented May 7, 2019

I've definitely thought about this, and I think it'd be worth the effort to separate the questionnaire logic, which is solid, from the prompters module.

The integration between the two is already pretty loose. Give me a few days to think about this, and I'll respond here with some ideas about how we might make the library generally applicable outside of the context of the command line.

@thomaspaulb
Copy link
Author

Awesome. I have time, currently doing a project in free time to turn a Django questionnaire application that I made earlier into something modern. Will be happy to contribute ideas also, probably most will be stemming from my needs to give functionality from that application a place in a generic questionnaire module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants