arraydb


Namearraydb JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/shahriyardx/arraydb
SummaryDatabase using array. With an basic ORM
upload_time2023-03-26 06:27:07
maintainer
docs_urlNone
authorMd Shahriyar Alam
requires_python>=3.6
licenseMIT
keywords arraydb database
VCS
bugtrack_url
requirements cuid typing_extensions
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ArrayDb
A database where data is stored in a array of dicts

## Features
- Insert, Update, Delete
- Filter data
- Change/Add columns in database

## Demo
```py
from arraydb import ArrayDb

members = ArrayDb(["username", "age", "gender"], [])

# insert data 
members.insert({"username": "John", "age": 22, "gender": "Male"})
members.insert({"username": "Ayesha", "age": 20, "gender": "Female"})

# Update specific data
members.update(
    where={"username": "John"},
    data={"age": 21}
)

# Even better
members.update(
    where={"age": {"gt": 20}}, # Update all rows where age is greater than 20
    data={"age": 21}
) # gt, lt, gte, lte, not, contains, in, startswith, endswith -> More coming soon
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/shahriyardx/arraydb",
    "name": "arraydb",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "arraydb,database",
    "author": "Md Shahriyar Alam",
    "author_email": "contact@shahriyar.dev",
    "download_url": "https://files.pythonhosted.org/packages/82/ab/0c58bd66a0a22811cc412519e2419b008997114a4eaf4ecd039bf91c7927/arraydb-0.1.1.tar.gz",
    "platform": null,
    "description": "# ArrayDb\nA database where data is stored in a array of dicts\n\n## Features\n- Insert, Update, Delete\n- Filter data\n- Change/Add columns in database\n\n## Demo\n```py\nfrom arraydb import ArrayDb\n\nmembers = ArrayDb([\"username\", \"age\", \"gender\"], [])\n\n# insert data \nmembers.insert({\"username\": \"John\", \"age\": 22, \"gender\": \"Male\"})\nmembers.insert({\"username\": \"Ayesha\", \"age\": 20, \"gender\": \"Female\"})\n\n# Update specific data\nmembers.update(\n    where={\"username\": \"John\"},\n    data={\"age\": 21}\n)\n\n# Even better\nmembers.update(\n    where={\"age\": {\"gt\": 20}}, # Update all rows where age is greater than 20\n    data={\"age\": 21}\n) # gt, lt, gte, lte, not, contains, in, startswith, endswith -> More coming soon\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Database using array. With an basic ORM",
    "version": "0.1.1",
    "split_keywords": [
        "arraydb",
        "database"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "29533742b7ea154bb2ce4bdb86bb65c24bc9612900525052a5b44177fd07bb1f",
                "md5": "03ec8f6252315bd0ba614871ddb950ab",
                "sha256": "d4737818f57f969cb4522c4f7d47ccdfe4ebc093e594de390e44bcb099a0147c"
            },
            "downloads": -1,
            "filename": "arraydb-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "03ec8f6252315bd0ba614871ddb950ab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4476,
            "upload_time": "2023-03-26T06:27:05",
            "upload_time_iso_8601": "2023-03-26T06:27:05.021728Z",
            "url": "https://files.pythonhosted.org/packages/29/53/3742b7ea154bb2ce4bdb86bb65c24bc9612900525052a5b44177fd07bb1f/arraydb-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82ab0c58bd66a0a22811cc412519e2419b008997114a4eaf4ecd039bf91c7927",
                "md5": "e52f546c61a3459057726f3b3395eedc",
                "sha256": "86dff486543bc6b4a4e67fee954fd421cc4ef05ea2e0b5e2182abaf93d0c19f3"
            },
            "downloads": -1,
            "filename": "arraydb-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e52f546c61a3459057726f3b3395eedc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4641,
            "upload_time": "2023-03-26T06:27:07",
            "upload_time_iso_8601": "2023-03-26T06:27:07.309098Z",
            "url": "https://files.pythonhosted.org/packages/82/ab/0c58bd66a0a22811cc412519e2419b008997114a4eaf4ecd039bf91c7927/arraydb-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-26 06:27:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "shahriyardx",
    "github_project": "arraydb",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "cuid",
            "specs": [
                [
                    "==",
                    "0.4"
                ]
            ]
        },
        {
            "name": "typing_extensions",
            "specs": [
                [
                    "==",
                    "4.5.0"
                ]
            ]
        }
    ],
    "lcname": "arraydb"
}
        
Elapsed time: 0.06353s