METADATA 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Metadata-Version: 2.1
  2. Name: Flask-SQLAlchemy
  3. Version: 2.5.1
  4. Summary: Adds SQLAlchemy support to your Flask application.
  5. Home-page: https://github.com/pallets/flask-sqlalchemy
  6. Author: Armin Ronacher
  7. Author-email: armin.ronacher@active-4.com
  8. Maintainer: Pallets
  9. Maintainer-email: contact@palletsprojects.com
  10. License: BSD-3-Clause
  11. Project-URL: Documentation, https://flask-sqlalchemy.palletsprojects.com/
  12. Project-URL: Code, https://github.com/pallets/flask-sqlalchemy
  13. Project-URL: Issue tracker, https://github.com/pallets/flask-sqlalchemy/issues
  14. Platform: UNKNOWN
  15. Classifier: Development Status :: 5 - Production/Stable
  16. Classifier: Environment :: Web Environment
  17. Classifier: Intended Audience :: Developers
  18. Classifier: License :: OSI Approved :: BSD License
  19. Classifier: Operating System :: OS Independent
  20. Classifier: Programming Language :: Python
  21. Classifier: Programming Language :: Python :: 2
  22. Classifier: Programming Language :: Python :: 2.7
  23. Classifier: Programming Language :: Python :: 3
  24. Classifier: Programming Language :: Python :: 3.4
  25. Classifier: Programming Language :: Python :: 3.5
  26. Classifier: Programming Language :: Python :: 3.6
  27. Classifier: Programming Language :: Python :: 3.7
  28. Classifier: Programming Language :: Python :: Implementation :: CPython
  29. Classifier: Programming Language :: Python :: Implementation :: PyPy
  30. Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
  31. Classifier: Topic :: Software Development :: Libraries :: Python Modules
  32. Requires-Python: >= 2.7, != 3.0.*, != 3.1.*, != 3.2.*, != 3.3.*
  33. Requires-Dist: Flask (>=0.10)
  34. Requires-Dist: SQLAlchemy (>=0.8.0)
  35. Flask-SQLAlchemy
  36. ================
  37. Flask-SQLAlchemy is an extension for `Flask`_ that adds support for
  38. `SQLAlchemy`_ to your application. It aims to simplify using SQLAlchemy
  39. with Flask by providing useful defaults and extra helpers that make it
  40. easier to accomplish common tasks.
  41. Installing
  42. ----------
  43. Install and update using `pip`_:
  44. .. code-block:: text
  45. $ pip install -U Flask-SQLAlchemy
  46. A Simple Example
  47. ----------------
  48. .. code-block:: python
  49. from flask import Flask
  50. from flask_sqlalchemy import SQLAlchemy
  51. app = Flask(__name__)
  52. app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///example.sqlite"
  53. db = SQLAlchemy(app)
  54. class User(db.Model):
  55. id = db.Column(db.Integer, primary_key=True)
  56. username = db.Column(db.String, unique=True, nullable=False)
  57. email = db.Column(db.String, unique=True, nullable=False)
  58. db.session.add(User(name="Flask", email="example@example.com"))
  59. db.session.commit()
  60. users = User.query.all()
  61. Links
  62. -----
  63. - Documentation: https://flask-sqlalchemy.palletsprojects.com/
  64. - Releases: https://pypi.org/project/Flask-SQLAlchemy/
  65. - Code: https://github.com/pallets/flask-sqlalchemy
  66. - Issue tracker: https://github.com/pallets/flask-sqlalchemy/issues
  67. - Test status: https://travis-ci.org/pallets/flask-sqlalchemy
  68. - Test coverage: https://codecov.io/gh/pallets/flask-sqlalchemy
  69. .. _Flask: https://palletsprojects.com/p/flask/
  70. .. _SQLAlchemy: https://www.sqlalchemy.org
  71. .. _pip: https://pip.pypa.io/en/stable/quickstart/