'''
    api/__init__.py

    Project init file.

    Expecting the followings at user runtime environment:

'''

import cx_Oracle
from flask import Flask
from api.config.database import *

app = Flask(__name__)

app.debug = False

pool = cx_Oracle.SessionPool(
    db_user,
    db_password,
    db_connectstring,
    min = db_min,
    max = db_max,
    increment = 0,
    threaded = True
)

version_prefix = '/api/v1'

__all__ = ['views']

# Import all views from here...
from api.views import index
from api.views import foobar

# Load all buleprints...
app.register_blueprint(index.mod)
app.register_blueprint(foobar.mod)

'''
    api/__init__.py

    Project init file.

    Expecting the followings at user runtime environment:

'''

import cx_Oracle
from flask import Flask
from api.config.database import *

app = Flask(__name__)

app.debug = False

pool = cx_Oracle.SessionPool(
    db_user,
    db_password,
    db_connectstring,
    min = db_min,
    max = db_max,
    increment = 0,
    threaded = True
)

version_prefix = '/api/v1'

__all__ = ['views']

# Import all views from here...
from api.views import index
from api.views import foobar

# Load all buleprints...
app.register_blueprint(index.mod)
app.register_blueprint(foobar.mod)

api/__init__.py      Project init file.      Expecting the followings at user runtime environment: # Import all views from here... # Load all buleprints...