Skip to content

Instantly share code, notes, and snippets.

View TFiroozian's full-sized avatar

Tara Firoozian TFiroozian

View GitHub Profile
### Keybase proof
I hereby claim:
* I am tfiroozian on github.
* I am tfiroozian ( on keybase.
* I have a public key ASCDtY8w_2lXOYkRiwUN_BiYjtOgdg61h7rgsLCbKw7KQwo
To claim this, I am signing this object:
TFiroozian /
Last active July 24, 2017 17:53 — forked from miguelgrinberg/
The code from my article on building RESTful web services with Python and the Flask microframework. See the article here:
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask_httpauth import HTTPBasicAuth
app = Flask(__name__, static_url_path = "")
auth = HTTPBasicAuth()
def get_password(username):
if username == 'miguel':