Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-APIAlchemy-1.1.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file Flask-APIAlchemy-1.1.0.tar.gz.

File metadata

  • Download URL: Flask-APIAlchemy-1.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for Flask-APIAlchemy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6234e996516b13639654c739155cd5cd04a12011657186fa0b5943d06da26647
MD5 73270c217fb6f8a363b3866ab3c8692b
BLAKE2b-256 05090dd66cb181086c33ec3af29ced79d6221e7a8316ea9bfb5e6d45f7c9dd5a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 file

1.0.0.post1

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page