This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pathlib | |
from connexion.api import Api, Resolver | |
import werkzeug.exceptions | |
def swagger_blueprint(specification, specification_dir=None, validate_responses=False, | |
strict_validation=False, resolver_error=None, | |
base_path='', debug=False): | |
resolver = Resolver() | |
swagger_json = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Same as before, with a kivy-based UI | |
''' | |
Bluetooth/Pyjnius example | |
========================= | |
This was used to send some bytes to an arduino via bluetooth. | |
The app must have BLUETOOTH and BLUETOOTH_ADMIN permissions (well, i didn't | |
tested without BLUETOOTH_ADMIN, maybe it works.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request, abort, g, current_app | |
from flask.ext.principal import Principal | |
from flask.ext.principal import Identity, identity_changed, identity_loaded | |
from flask.ext.principal import Permission, Need, RoleNeed, ItemNeed | |
app = Flask(__name__) | |
app.config['SECRET_KEY'] = 'test_secret_key' | |
app.config['TESTING'] = True |