Git Product home page Git Product logo

pythonista-flask-example's Introduction

Pythonista Flask example

Little Flask app that demonstrates iTunes Search API and Pythonista Objective-C APIs in iOS. You can also run the iTunes Search API example on macOS by switching to macos branch.

iOS Requirements

  • Pythonista 3

iOS Setup

Create a new Empty Script in Pythonista to Documents root. Copy & paste this Gist.

The setup script will download this Git repo as a zip file and will extract the zip file.

Note: the setup script will overwrite existing pythonista-flask-example folder if it exists.

Run setup script.

iOS Usage

Run flask_server.py in pythonista-flask-example folder.

Open http://localhost:5000 URL in iOS web browser.

macOS Requirements

  • virtualenv

macOS Setup

Clone this repo:

$ git clone https://github.com/jlehikoinen/pythonista-flask-example.git

$ cd pythonista-flask-example

Switch to macos branch:

$ git checkout macos

Setup virtualenv:

$ virtualenv flask

$ source flask/bin/activate

$ pip install flask

$ pip install requests

macOS Usage

Run Flask server:

$ python flask_server.py

Open http://localhost:5000 URL in macOS web browser.

After testing, exit virtualenv:

$ deactivate

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.