Skip to main content

Adapt to Support SQLAlchemy-ROM forweb application, include flask, django, or any other web frameworks.


It is based on Flask-SQLAlchemy==2.5.1. which is 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 pysql-orm

A Simple Example

from flask import Flask
from pysql_orm 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(name="Flask", email="example@example.com"))
db.session.commit()

users = User.query.all()

Metadata

Release files for PySql-ORM 2.5.8

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

Source distribution (sdist)

Source distribution for PySql-ORM 2.5.8
File Size Uploaded Provenance Actions
Pysql-ORM-2.5.8.tar.gz 37.8 kB Without provenance Details for Pysql-ORM-2.5.8.tar.gz

Release files / Pysql-ORM-2.5.8.tar.gz

Download URL Pysql-ORM-2.5.8.tar.gz
Size 37.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bb20672054c48dc6f620790bd79baf4c5a851a2175a9bb41350565027c00b09e
BLAKE2b-256 checksum
How to use checksums
91636b76d0103b9f385cb3b5666b37819def66be4eff345de7c8ace1b76d0d30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Security for PySql-ORM 2.5.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.

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.

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