-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
39 lines (33 loc) · 1.02 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
from flask import Flask, url_for
from flask_restx import Api
from currentDateTime import currentDateTimeNamespace as nsdt
from timezones import timezonesNamespace as nstz
from calendarFromCurrentAPI import CalendarNamespace as cc
from countries import currentCountriesNamespace as ct
from introduction import introductionNamespace as nsi
from flags import flagsNamespace as nsf
from currencies import currentCurrenciesNamespace as cs
from languages import languagesNamespace as lg
#
app = Flask(__name__)
api = Api(
title='WorldSwissKnifeAPI 🇨🇭🔪',
version='1.0',
description='Rest API which is also a swiss knife and to which you can add all the features you want, and like many others, it\'s a REST API just for experimenting and laughing 🇨🇭🔪...'
)
#
api.add_namespace(nsi)
api.add_namespace(nsdt)
api.add_namespace(nstz)
api.add_namespace(cc)
api.add_namespace(ct)
api.add_namespace(cs)
api.add_namespace(nsf)
api.add_namespace(lg)
#
api.init_app(app)
#
if __name__ == '__main__':
#
app.run()