You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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.
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.
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:
Is this something you have thought about?
The text was updated successfully, but these errors were encountered: