ormstrorm


Nameormstrorm JSON
Version 0.0.1.1 PyPI version JSON
download
home_page
SummarySmall library for easy work with databases.
upload_time2023-07-10 18:34:53
maintainer
docs_urlNone
authorMolchaliv
requires_python
license
keywords python orm database sql sqlite3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Welcome to ORMStorm

ORMStorm is a small library for easy work with databases.

## The key features are:

 - **Simplicity:** The library is very simple, and it won't take long to learn it.
 - **Coding speed:** Integrating the library into your projects won't take long.
 - **Dynamic:** Unlike others, this library will allow you to very quickly create new tables and add databases to them.

## Installing

    pip install ormstorm
   
## Usage

Using standard tables

    from ormstorm import Table, Types, Column, create_session  
  
  

    class ExampleTable(Table):  
        __tablename__ = "example"  
      
        id = Column(Types.INTEGER, primary_key=True, autoincrement=True)  
        text = Column(Types.STRING)  
      
      
    LocalSession = create_session("example.sqlite3", [ExampleTable])  
      
    with LocalSession() as session:  
        session.insert(ExampleTable(text="Hello, world!"))

Using a dynamic table

    from ormstorm import DynamicTable, Types, Column, create_session  
      
      
    LocalSession = create_session("example.sqlite3", [])  
      
    with LocalSession() as session:  
        NewTable = DynamicTable(  
            "new_table", {"id": Column(Types.INTEGER, primary_key=True, autoincrement=True), "text": Column(Types.STRING)}  
        )  
      
        session.create(NewTable)  
        session.insert(NewTable(text="Easy use of dynamic tables!"))

## Note

This library is strictly not recommended for use in large projects because of the small functionality!

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ormstrorm",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,orm,database,sql,sqlite3",
    "author": "Molchaliv",
    "author_email": "molchaliv666@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7a/95/13808fc02ef2a182c04e8167790fb0593f761d4504dc2e11aa2963f09562/ormstrorm-0.0.1.1.tar.gz",
    "platform": null,
    "description": "\ufeff# Welcome to ORMStorm\r\n\r\nORMStorm is a small library for easy work with databases.\r\n\r\n## The key features are:\r\n\r\n - **Simplicity:** The library is very simple, and it won't take long to learn it.\r\n - **Coding speed:** Integrating the library into your projects won't take long.\r\n - **Dynamic:** Unlike others, this library will allow you to very quickly create new tables and add databases to them.\r\n\r\n## Installing\r\n\r\n    pip install ormstorm\r\n   \r\n## Usage\r\n\r\nUsing standard tables\r\n\r\n    from ormstorm import Table, Types, Column, create_session  \r\n  \r\n  \r\n\r\n    class ExampleTable(Table):  \r\n        __tablename__ = \"example\"  \r\n      \r\n        id = Column(Types.INTEGER, primary_key=True, autoincrement=True)  \r\n        text = Column(Types.STRING)  \r\n      \r\n      \r\n    LocalSession = create_session(\"example.sqlite3\", [ExampleTable])  \r\n      \r\n    with LocalSession() as session:  \r\n        session.insert(ExampleTable(text=\"Hello, world!\"))\r\n\r\nUsing a dynamic table\r\n\r\n    from ormstorm import DynamicTable, Types, Column, create_session  \r\n      \r\n      \r\n    LocalSession = create_session(\"example.sqlite3\", [])  \r\n      \r\n    with LocalSession() as session:  \r\n        NewTable = DynamicTable(  \r\n            \"new_table\", {\"id\": Column(Types.INTEGER, primary_key=True, autoincrement=True), \"text\": Column(Types.STRING)}  \r\n        )  \r\n      \r\n        session.create(NewTable)  \r\n        session.insert(NewTable(text=\"Easy use of dynamic tables!\"))\r\n\r\n## Note\r\n\r\nThis library is strictly not recommended for use in large projects because of the small functionality!\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Small library for easy work with databases.",
    "version": "0.0.1.1",
    "project_urls": null,
    "split_keywords": [
        "python",
        "orm",
        "database",
        "sql",
        "sqlite3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d15e491c2e2b6175610cd168c4a73116307c6f676a01f7bca141efe5cb14f8a7",
                "md5": "a865e48b521ba7a1da7d2542c6f66dab",
                "sha256": "aee23c9c71425d907d90986ff79095204576df67af8d292c87538331d2e793af"
            },
            "downloads": -1,
            "filename": "ormstrorm-0.0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a865e48b521ba7a1da7d2542c6f66dab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4225,
            "upload_time": "2023-07-10T18:34:51",
            "upload_time_iso_8601": "2023-07-10T18:34:51.808414Z",
            "url": "https://files.pythonhosted.org/packages/d1/5e/491c2e2b6175610cd168c4a73116307c6f676a01f7bca141efe5cb14f8a7/ormstrorm-0.0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7a9513808fc02ef2a182c04e8167790fb0593f761d4504dc2e11aa2963f09562",
                "md5": "785265eb7f72205b12ac475614555901",
                "sha256": "4b67e2aa3f7fb7bf48ae2584d31d3817342c54cd19f44fdb81c2ce68a02b46d2"
            },
            "downloads": -1,
            "filename": "ormstrorm-0.0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "785265eb7f72205b12ac475614555901",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3909,
            "upload_time": "2023-07-10T18:34:53",
            "upload_time_iso_8601": "2023-07-10T18:34:53.700368Z",
            "url": "https://files.pythonhosted.org/packages/7a/95/13808fc02ef2a182c04e8167790fb0593f761d4504dc2e11aa2963f09562/ormstrorm-0.0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-10 18:34:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ormstrorm"
}
        
Elapsed time: 0.09401s