This is a simple application to demonstrate the micro-framework Flask. It helps demonstrate how the human brain can easily read a text with scrambled words, as long as the first and last letters of the words are kept in place.
The application has three pages:
- The home page, where you can input the input text
- The results page, where you can see the scrambled input text
- And the Would you like to know more about your brain? page, which will give you ten links to articles in the Wikipedia about the brain.
Each of these page is redirected to routers in the file
web/app.py
The Would you like to know more about your brain? page is built after a request to the Wikipedia RESTFUL API, with the search set on brain as the keyword. As mentioned earlier, the first ten results are shown.
- Flask
- requests
- scramble
https://www.dropbox.com/s/p4aeppkp3pduyzh/scrambleme-1.0.0.tar.gz?dl=0
- On Linux
tar zxvf scrambleme-1.0.0.tgz
-
On Windows
Double-click on the
tgz
file and use theExtract
option.
pip install -r scrambleme-1.0.0/requirements.txt
pip install -e scrambleme-1.0.0/
On Windows, the path separator is
\
.
- On Linux
export FLASK_ENV=development
FLASK_APP=./scrambleme-1.0.0/wsgi.py flask run
- On Windows
set FLASK_ENV=development
set FLASK_APP=.\scrambleme-1.0.0\wsgi.py
flask run
I am Gus Garcia. Feel free to drop an email on pythongus@gmail.com