Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/george-gca/markdown-to-google-forms
Python script to convert a Markdown style document into Google Apps Script code to generate a Google Forms
https://github.com/george-gca/markdown-to-google-forms
google-apps-script google-forms google-forms-api markdown python python3
Last synced: 27 days ago
JSON representation
Python script to convert a Markdown style document into Google Apps Script code to generate a Google Forms
- Host: GitHub
- URL: https://github.com/george-gca/markdown-to-google-forms
- Owner: george-gca
- License: mit
- Created: 2023-12-21T16:55:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-25T17:38:12.000Z (8 months ago)
- Last Synced: 2024-03-25T19:18:47.206Z (8 months ago)
- Topics: google-apps-script, google-forms, google-forms-api, markdown, python, python3
- Language: Jupyter Notebook
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Markdown to Google Forms
**NOTE: Since I realized that this would be much more useful to more people if it was a web app, I decided to sunset this repository and [create a new one](https://github.com/george-gca/markdown_to_google_apps_script), with a new flask code base.**
Python script to convert a Markdown style document into Google Apps Script code, which in turn is used to generate a Google Forms.
This is not the best solution possible, but it is a solution. One can probably implement something more robust by using libraries like [marko](https://github.com/frostming/marko) or [mistletoe](https://github.com/miyuchina/mistletoe).
## Usage
Simply call the script giving a markdown file as input. By default it prints the code to stdout, but you can pipe the output to a file:
```python
python3 main.py sample.md > script.js
```There's also a [jupyter notebook](https://github.com/george-gca/markdown-to-google-forms/blob/main/Markdown_to_Google_Forms.ipynb) and [Google Colab](https://gist.github.com/george-gca/fbc4664dce3e97796d1fa212f769c6bb) version in this repo. In this case, modify the contents of the `markdown_file` variable in the notebook and run all cells.
Then, paste the generated code on a [new project](https://script.google.com/home/projects/create) in Google Apps Script and execute it. On the first run of this new project it will ask for permissions to your Google Drive, which should be conceded so it can create the new form. A new file will be created on your [Google Drive](https://drive.google.com/) with the name you used as title. Note that the form is not ready to use, but at least the basic structure will be done.