This release is a pre-release and may not be stable for production use.
Flask SQLAlchemy backend supporting the Python 3.7 version of Flask SQLAlchemy compat.
This package is forked from an unofficial version of Flask SQLAlchemy. The motication of uploading this fork to PyPI includes:
1. Bring the DeclarativeBase feature to Python 3.7. The official version is up to 3.0.5 which is not compatible with the sqlalchemy2 style.
2. Serve as a backend support of the package flask-sqlalchemy-compat when using Python 3.7
If you are using Pyhon<3.7, you should not use flask-sqlalchemy-compat, the only available choice is flask-sqlalchemy.
If you are using Python>=3.8, you do not need this package, because flask-sqlalchemy is already compatible with Python>=3.8.
Reference |
|---|
Flask-SQLAlchemy
The following part is from the original README file.
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
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///example.sqlite"
class Base(DeclarativeBase):
pass
db = SQLAlchemy(app, model_class=Base)
class User(db.Model):
id: Mapped[int] = mapped_column(db.Integer, primary_key=True)
username: Mapped[str] = mapped_column(db.String, unique=True, nullable=False)
with app.app_context():
db.create_all()
db.session.add(User(username="example"))
db.session.commit()
users = db.session.execute(db.select(User)).scalars()
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.
Links
Documentation: https://flask-sqlalchemy.palletsprojects.com/
Changes: https://flask-sqlalchemy.palletsprojects.com/changes/
PyPI Releases: https://pypi.org/project/Flask-SQLAlchemy/
Source Code: https://github.com/pallets-eco/flask-sqlalchemy/
Issue Tracker: https://github.com/pallets-eco/flask-sqlalchemy/issues/
Website: https://palletsprojects.com/
Twitter: https://twitter.com/PalletsTeam
Metadata
Release files for Flask-SQLAlchemy-compat-backend-py37 3.1.0.dev3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_sqlalchemy_compat_backend_py37-3.1.0.dev3.tar.gz | 105.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Flask_SQLAlchemy_compat_backend_py37-3.1.0.dev3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 154.2 kB
Release files / flask_sqlalchemy_compat_backend_py37-3.1.0.dev3.tar.gz
| Download URL | flask_sqlalchemy_compat_backend_py37-3.1.0.dev3.tar.gz |
|---|---|
| Size | 105.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ed0dcb2236e595a03c8bf9adbf4651380504159febffc8af66fe3d3b2ef4b21
|
|
BLAKE2b-256 checksum How to use checksums |
c5e9dfe2ab1134016ea370c9b778b62e308d658f2d1ef34de6b6c06bdd9316fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 10, 2024.
Transparency logRelease files / Flask_SQLAlchemy_compat_backend_py37-3.1.0.dev3-py3-none-any.whl
| Download URL | Flask_SQLAlchemy_compat_backend_py37-3.1.0.dev3-py3-none-any.whl |
|---|---|
| Size | 48.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28365044728be1af1ea70ae56e04b55cfbb983f87d029404f63c4f328e8cc0d2
|
|
BLAKE2b-256 checksum How to use checksums |
0ca51aa0a2d4938102a61cf24ecbcc29555d413bc3092c8daa47673fea4d095a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 10, 2024.
Transparency log