ngits-iot-db


Namengits-iot-db JSON
Version 0.2.4 PyPI version JSON
download
home_pageNone
SummarySQLAlchemy models for IoT sensor data storage with Alembic migrations
upload_time2025-08-13 19:31:39
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseBSD-3-Clause
keywords iot sqlalchemy database models sensors
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            database uri
============

You can set database uri by setting `IOT_DATABASE_URL` variable.

```shell
export IOT_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/iot_local
```


make migrations
===============

```shell
alembic revision --autogenerate -m "Migration message."
```

upgrade
=======

```shell
# upgrade all
alembic upgrade head

# upgrade all to specific migration
alembic upgrade <revision_id>
```

downgrade
=========

```shell
# downgrade all
alembic downgrade base

# downgrade all to specific migration
alembic downgrade <revision_id>
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ngits-iot-db",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "iot, sqlalchemy, database, models, sensors",
    "author": null,
    "author_email": "\"NG IT Services Sp. z o. o.\" <biuro@ngits.pl>",
    "download_url": "https://files.pythonhosted.org/packages/e5/5e/7d1af17d597d39971ca61604872b680a17fa14b05792e221d0cdb16269db/ngits_iot_db-0.2.4.tar.gz",
    "platform": null,
    "description": "database uri\n============\n\nYou can set database uri by setting `IOT_DATABASE_URL` variable.\n\n```shell\nexport IOT_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/iot_local\n```\n\n\nmake migrations\n===============\n\n```shell\nalembic revision --autogenerate -m \"Migration message.\"\n```\n\nupgrade\n=======\n\n```shell\n# upgrade all\nalembic upgrade head\n\n# upgrade all to specific migration\nalembic upgrade <revision_id>\n```\n\ndowngrade\n=========\n\n```shell\n# downgrade all\nalembic downgrade base\n\n# downgrade all to specific migration\nalembic downgrade <revision_id>\n```\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "SQLAlchemy models for IoT sensor data storage with Alembic migrations",
    "version": "0.2.4",
    "project_urls": null,
    "split_keywords": [
        "iot",
        " sqlalchemy",
        " database",
        " models",
        " sensors"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2950e0e3383a0fa9b778de02c6a97be6f04c4cd2b3a86c198aa6230e4f5168dd",
                "md5": "089db7b94e3cb5c035d04785b8d0a3d1",
                "sha256": "31594cd64d4765c2aa5780a72ced291c870e15761e2cbad51ecab372c06c81f5"
            },
            "downloads": -1,
            "filename": "ngits_iot_db-0.2.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "089db7b94e3cb5c035d04785b8d0a3d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 7594,
            "upload_time": "2025-08-13T19:31:37",
            "upload_time_iso_8601": "2025-08-13T19:31:37.958900Z",
            "url": "https://files.pythonhosted.org/packages/29/50/e0e3383a0fa9b778de02c6a97be6f04c4cd2b3a86c198aa6230e4f5168dd/ngits_iot_db-0.2.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e55e7d1af17d597d39971ca61604872b680a17fa14b05792e221d0cdb16269db",
                "md5": "5dee3bbfdb0b660911c2cf5889b3f7e4",
                "sha256": "17e37d16aaa5c44da0387a2ec2beb679b7af3aa5876f839cb4a5512c5177573b"
            },
            "downloads": -1,
            "filename": "ngits_iot_db-0.2.4.tar.gz",
            "has_sig": false,
            "md5_digest": "5dee3bbfdb0b660911c2cf5889b3f7e4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 12695,
            "upload_time": "2025-08-13T19:31:39",
            "upload_time_iso_8601": "2025-08-13T19:31:39.221841Z",
            "url": "https://files.pythonhosted.org/packages/e5/5e/7d1af17d597d39971ca61604872b680a17fa14b05792e221d0cdb16269db/ngits_iot_db-0.2.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-13 19:31:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ngits-iot-db"
}
        
Elapsed time: 2.98732s