Pysql-ORM


NamePysql-ORM JSON
Version 2.5.5 PyPI version JSON
download
home_pagehttps://github.com/dodoru/pysql-orm
SummaryAdapt SQLAlchemy ORM Support to web application, include flask, django, or any other web frameworks.
upload_time2024-08-20 06:42:10
maintainerdodoru
docs_urlNone
authorArmin Ronacher
requires_python!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Pysql-ORM
================

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`_:

.. code-block:: text

  $ pip install -U pysql-orm


A Simple Example
----------------

.. code-block:: python

    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()


Links
-----

-   Documentation: https://flask-sqlalchemy.palletsprojects.com/
-   Releases: https://pypi.org/project/Pysql-ORM/
-   Code: https://github.com/pallets/flask-sqlalchemy
-   Issue tracker: https://github.com/pallets/flask-sqlalchemy/issues
-   Test status: https://travis-ci.org/pallets/flask-sqlalchemy
-   Test coverage: https://codecov.io/gh/pallets/flask-sqlalchemy

.. _Flask: https://palletsprojects.com/p/flask/
.. _SQLAlchemy: https://www.sqlalchemy.org
.. _pip: https://pip.pypa.io/en/stable/quickstart/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dodoru/pysql-orm",
    "name": "Pysql-ORM",
    "maintainer": "dodoru",
    "docs_url": null,
    "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7",
    "maintainer_email": "dodoru@foxmail.com",
    "keywords": null,
    "author": "Armin Ronacher",
    "author_email": "armin.ronacher@active-4.com",
    "download_url": "https://files.pythonhosted.org/packages/ee/e0/ddb25196f733c729ad71b1ff1ac4c48a987fd6600a989bf8afb25db6cf5c/Pysql-ORM-2.5.5.tar.gz",
    "platform": null,
    "description": "Pysql-ORM\n================\n\nAdapt to Support SQLAlchemy-ROM forweb application, \ninclude flask, django, or any other web frameworks.\n\n--------\n\nIt is based on Flask-SQLAlchemy==2.5.1. which is extension for `Flask`_ \nthat adds support for `SQLAlchemy`_ to your application. \nIt aims to simplify using SQLAlchemy\nwith Flask by providing useful defaults and extra helpers that make it\neasier to accomplish common tasks.\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n  $ pip install -U pysql-orm\n\n\nA Simple Example\n----------------\n\n.. code-block:: python\n\n    from flask import Flask\n    from pysql_orm import SQLAlchemy\n\n    app = Flask(__name__)\n    app.config[\"SQLALCHEMY_DATABASE_URI\"] = \"sqlite:///example.sqlite\"\n    db = SQLAlchemy(app)\n\n\n    class User(db.Model):\n        id = db.Column(db.Integer, primary_key=True)\n        username = db.Column(db.String, unique=True, nullable=False)\n        email = db.Column(db.String, unique=True, nullable=False)\n\n\n    db.session.add(User(name=\"Flask\", email=\"example@example.com\"))\n    db.session.commit()\n\n    users = User.query.all()\n\n\nLinks\n-----\n\n-   Documentation: https://flask-sqlalchemy.palletsprojects.com/\n-   Releases: https://pypi.org/project/Pysql-ORM/\n-   Code: https://github.com/pallets/flask-sqlalchemy\n-   Issue tracker: https://github.com/pallets/flask-sqlalchemy/issues\n-   Test status: https://travis-ci.org/pallets/flask-sqlalchemy\n-   Test coverage: https://codecov.io/gh/pallets/flask-sqlalchemy\n\n.. _Flask: https://palletsprojects.com/p/flask/\n.. _SQLAlchemy: https://www.sqlalchemy.org\n.. _pip: https://pip.pypa.io/en/stable/quickstart/\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Adapt SQLAlchemy ORM Support to web application, include flask, django, or any other web frameworks.",
    "version": "2.5.5",
    "project_urls": {
        "Homepage": "https://github.com/dodoru/pysql-orm"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eee0ddb25196f733c729ad71b1ff1ac4c48a987fd6600a989bf8afb25db6cf5c",
                "md5": "7ec67c595268f98df1ee6d221f4ce772",
                "sha256": "ec19923c1f772639b28cd3fb4275cb7d98f2ebf1495daf191249063c033e498b"
            },
            "downloads": -1,
            "filename": "Pysql-ORM-2.5.5.tar.gz",
            "has_sig": false,
            "md5_digest": "7ec67c595268f98df1ee6d221f4ce772",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7",
            "size": 23679,
            "upload_time": "2024-08-20T06:42:10",
            "upload_time_iso_8601": "2024-08-20T06:42:10.680743Z",
            "url": "https://files.pythonhosted.org/packages/ee/e0/ddb25196f733c729ad71b1ff1ac4c48a987fd6600a989bf8afb25db6cf5c/Pysql-ORM-2.5.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-20 06:42:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dodoru",
    "github_project": "pysql-orm",
    "github_not_found": true,
    "lcname": "pysql-orm"
}
        
Elapsed time: 1.78048s