Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Flask-SQLAlchemy

Flask-SQLAlchemy is an extension for Flask that adds support for SQLAlchemy to your application. It aims to simplify using SQLAlchemy with Flask by providing useful defaults and extra helpers that make it easier to accomplish common tasks.

Installing

Install and update using pip:

$ pip install -U Flask-SQLAlchemy

A Simple Example

from flask import Flask
from flask_sqlalchemy import SQLAlchemy

app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///example.sqlite"
db = SQLAlchemy(app)


class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    username = db.Column(db.String, unique=True, nullable=False)
    email = db.Column(db.String, unique=True, nullable=False)


db.session.add(User(username="Flask", email="example@example.com"))
db.session.commit()

users = User.query.all()

Contributing

For guidance on setting up a development environment and how to make a contribution to Flask-SQLAlchemy, see the contributing guidelines.

Donate

The Pallets organization develops and supports Flask-SQLAlchemy and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.

Metadata

Release files for Flask-SQLAlchemy 3.0.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-SQLAlchemy 3.0.0a1
File Size Uploaded Provenance Actions
Flask-SQLAlchemy-3.0.0a1.tar.gz 137.1 kB Without provenance Details for Flask-SQLAlchemy-3.0.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Flask-SQLAlchemy 3.0.0a1
File Interpreter ABI Platform Actions
Flask_SQLAlchemy-3.0.0a1-py2.py3-none-any.whl Python 3, Python 2 none any Details for Flask_SQLAlchemy-3.0.0a1-py2.py3-none-any.whl

Total release size: 160.0 kB

Release files / Flask-SQLAlchemy-3.0.0a1.tar.gz

Download URL Flask-SQLAlchemy-3.0.0a1.tar.gz
Size 137.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fa8218afe1e1bc4201ae8770ae2436f25eae270a8ceba0eecae69855567f5cf6
BLAKE2b-256 checksum
How to use checksums
74e33a9c2a071afa16d89e020a5e28254e36086a092ec7918e88667d4243b39a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / Flask_SQLAlchemy-3.0.0a1-py2.py3-none-any.whl

Download URL Flask_SQLAlchemy-3.0.0a1-py2.py3-none-any.whl
Size 22.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9313f625fa0d23297ff3257c2065684f8f840b37acb5072964c7341aceecc5d3
BLAKE2b-256 checksum
How to use checksums
a39a72f0fdb37b8cb8bfcedda4fe2a86861222fc1dd2a2243e2a374f371f29a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Security for Flask-SQLAlchemy 3.0.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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