Skip to content

pythongus/scrambleme

Repository files navigation

Text Scrambler - A Teaser For Your Brain

Abstract

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.

Application Stack And Modules

  • Flask
  • requests
  • scramble

Host

Active URL

Installing And Running

Dropbox File

https://www.dropbox.com/s/p4aeppkp3pduyzh/scrambleme-1.0.0.tar.gz?dl=0

Expanding the package

  • On Linux
tar zxvf scrambleme-1.0.0.tgz
  • On Windows

    Double-click on the tgz file and use the Extract option.

To install the modules

pip install -r scrambleme-1.0.0/requirements.txt
pip install -e scrambleme-1.0.0/

On Windows, the path separator is \.

To run the flask app

  • 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

Contact

I am Gus Garcia. Feel free to drop an email on pythongus@gmail.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •