User:Jeropbrenda/Sandbox/Tutorials/Holidays viewer

Overview
This covers how to create a demo app that:
 * Fetches the day's holidays and observances from Wikipedia.
 * Allows searching for holidays of other dates
 * Logging to add new holidays.

Download the code from Github

The tools and technologies used to create the demo app are:
 * Python 3 and Flask framework
 * MediaWiki Action API modules:
 * API:Parse to fetch holidays.
 * API:Login to login.
 * API:Edit to add new holidays.

Setting up Python
This tutorial uses Python 3. You can download the latest Python version from here:


 * Python for Windows 7, 8, and 10
 * Python for Mac OS X

See the Python beginner's guide for further instructions on installing Python on different operating systems.

Setting up Flask
Pip is a package manager that you can use to install Flask:. If you don't have pip already, install it from the official Pip website.

Step 2: Create a simple Flask application
If you have everything successfully installed, place the following script in, inside your project folder:. When you run it, it should display "Hello world" at http://localhost:5000/:

Next steps

 * Got questions about this tutorial? Ask here on Discourse or on this tutorials discussion page.
 * Contribute a demo app that you have developed using the MediaWiki API to this code samples repository.