repl.it
@PYer/

APIs

Python

No description

fork
loading
Files
  • main.py
  • apis.egg-info
  • apis.py
  • gallery.html
  • home.html
  • ids.txt
  • setup.py
  • Packager files
  • poetry.lock
  • pyproject.toml
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import flask, apis

app =  flask.Flask(__name__)

@app.route('/')
def home():
  with open('home.html', 'r') as t:
    return t.read()

@app.route('/gallery')
def gallery():
  with open('gallery.html', 'r') as t:
    return t.read()

data = apis.getapi('weather')('92653')
print(data)

app.run(host='0.0.0.0', port=6506)
?