{"id":15574563,"url":"https://github.com/runfalk/flask-storm","last_synced_at":"2025-06-11T03:33:09.582Z","repository":{"id":51096674,"uuid":"63854627","full_name":"runfalk/flask-storm","owner":"runfalk","description":"Adds support for Canonical's Storm ORM to Flask. Only use this if you are already deeply invested in Storm, otherwise use Flask-SQLAlchemy.","archived":false,"fork":false,"pushed_at":"2021-05-23T20:05:56.000Z","size":336,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-14T08:32:35.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://runfalk.github.io/flask-storm/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/runfalk.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-21T09:11:06.000Z","updated_at":"2021-05-23T17:40:38.000Z","dependencies_parsed_at":"2022-08-22T09:40:20.003Z","dependency_job_id":null,"html_url":"https://github.com/runfalk/flask-storm","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fflask-storm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fflask-storm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fflask-storm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fflask-storm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runfalk","download_url":"https://codeload.github.com/runfalk/flask-storm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runfalk%2Fflask-storm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259191971,"owners_count":22819409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T18:19:10.866Z","updated_at":"2025-06-11T03:33:09.560Z","avatar_url":"https://github.com/runfalk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flask-Storm\n===========\n|test-status| |pypi-version|\n\nFlask-Storm is an extension for `Flask \u003chttps://www.palletsprojects.com/p/flask/\u003e`_ that adds support for Canonical's ORM `Storm \u003chttps://storm.canonical.com/\u003e`_ to your application. Flask-Storm automatically opens and closes database connections on demand when requests need them.\n\n\nExample\n-------\nAccess to the database is done using the `store` `application context local \u003chttp://flask.pocoo.org/docs/0.11/appcontext/\u003e`_. Within an application context this variable holds a reference to a Storm Store instance. If no connection is opened it will automatically open one. When the application context is torn down, normally after the request has returned, the store is closed.\n\n.. code-block:: python\n\n    from flask_storm import store\n    from storm.locals import Int, Unicode\n\n    class User(object):\n        __storm_table__ = \"users\"\n\n        id = Int(primary=True)\n        name = Unicode()\n\n\n    @app.route(\"/\")\n    def index():\n        # Get name of user with ID 1\n        return store.get(User, 1).name\n\n\nInstallation\n------------\n\n.. code-block:: bash\n\n    pip install flask_storm[fancy]\n\nThis installs Flask-Storm with SQL highlighting and reformatting support. If you do not want this drop the ``fancy``.\n\n.. code-block:: bash\n\n    pip install flask_storm\n\n\nDocumentation\n-------------\nDocumentation is available on `\u003chttps://runfalk.github.io/flask-storm\u003e`_\n\n\nDevelopment\n-----------\n\n.. code-block:: bash\n\n    # Setup environment\n    python3 -m venv --prompt=flask-storm .venv\n    source .venv/bin/activate\n    pip install --upgrade pip setuptools\n    pip install -e .[dev,fancy]\n\n    # Run test suite\n    pytest\n\n    # You can test all supported python versions in one go using tox\n    tox\n\n    # Build documentation\n    sphinx-build doc/ doc-build/\n\n    # Run auto formatter\n    black flask_storm/ tests/ setup.py\n\n    # Run linter\n    flake8 flask_storm/ tests/ setup.py\n\n\n.. |test-status| image:: https://github.com/runfalk/flask-storm/actions/workflows/ci.yml/badge.svg\n    :alt: Test status\n    :scale: 100%\n    :target: https://travis-ci.org/runfalk/Flask-Storm\n\n.. |pypi-version| image:: https://badge.fury.io/py/Flask-Storm.svg\n    :alt: PyPI version status\n    :scale: 100%\n    :target: https://pypi.python.org/pypi/Flask-Storm/\n\n.. Include changelog on PyPI\n\n.. include:: doc/changelog.rst\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunfalk%2Fflask-storm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunfalk%2Fflask-storm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunfalk%2Fflask-storm/lists"}