Adds APIAlchemy support to your Flask application, modeled after Flask-SQLAlchemy.
Project description
Flask-APIAlchemy
Flask-APIAlchemy is an extension for Flask, modeled after Flask-SQLAlchemy, that adds support for APIAlchemy to your application. It aims to simplify using APIAlchemy with Flask.
Installation
pip install Flask-APIAlchemy
A Simple Example
Output the contents of a file located in a GitHub repository:
from flask import Flask
from flask_apialchemy import APIAlchemy
app = Flask(__name__)
app.config['APIALCHEMY_SERVICE_URI'] = 'github://apikey@github.com'
aa = APIAlchemy(app)
kwargs = {
'org': 'org_name',
'repo': 'repo_name',
'path': 'path/to/file'
}
file_contents = aa.service.get_file_contents(aa.service.client, **kwargs)
print(file_contents)
License
Distributed under the BSD 3-Clause license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for Flask-APIAlchemy-1.0.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8129067b8db065624057ea46342b4c3f21353c2eaeb2e012fea60f296e83295a |
|
MD5 | 218b94f2117730278eb47f73c40b3700 |
|
BLAKE2b-256 | ae5c553c71cceee2a44fee1e002d223122581e75a48340fd38250511dca253ab |