A python wrapper for the typeform API
#Installation Clone the repo
git clone https://github.com/WarmongeR1/typeformPython.git
# In the base directory run:
python setup.py install
#Usage
from typeform import TypeFormAPI
api = TypeFormAPI(API_KEY)
exampleForm = api.get_form(formKey)
# Returns a dictionary of the form {questionToken: Question Text}
questionDict = exampleFrom.get_questions()
# returns a transformation questions list
# that has numbered IDs of the type "q01"
# and more sensible type names
questionList = exampleFrom.get_transformed_questions()
# returns a markdown string with question IDs as headers and question text as the text
questionList = exampleFrom.questions_to_markdown()
# Returns all responses in form: {responseToken: {questionToken: answerString....}}
responseDict = exampleForm.get_all_completed_responses()
rating = exampleForm.get_average_rating(questionToken)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request