glassjar


Nameglassjar JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://github.com/furkanonder/glassjar/
SummaryPickled database that provide Object-Relational Mapper.
upload_time2023-03-10 22:37:08
maintainer
docs_urlNone
authorFurkan Onder
requires_python>=3.8
licenseMIT
keywords database pickled database orm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <img src="/assets/logo/glassjar.png" width=200px/>
  <h3>Pickled database that provide Object-Relational Mapper.</h3>
  <a href="https://github.com/furkanonder/glassjar/actions"><img alt="Actions Status" src="https://github.com/furkanonder/glassjar/workflows/Test/badge.svg"></a>
  <a href="https://github.com/furkanonder/glassjar/issues"><img alt="GitHub issues" src="https://img.shields.io/github/issues/furkanonder/glassjar"></a>
  <a href="https://github.com/furkanonder/glassjar/stargazers"><img alt="GitHub stars" src="https://img.shields.io/github/stars/furkanonder/glassjar"></a>
  <a href="https://github.com/furkanonder/glassjar/blob/main/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/furkanonder/glassjar"></a>
  <a href="https://pepy.tech/project/glassjar"><img alt="Downloads" src="https://pepy.tech/badge/glassjar"></a>
  <a href="https://img.shields.io/pypi/pyversions/glassjar"><img alt="Supported Versions" src="https://img.shields.io/pypi/pyversions/glassjar"></a>
</div>

## Motivation

Glassjar is a database that provides a storage mechanism based on pickled Python objects
with ORM.

## Installation

_glassjar_ can be installed by running `pip install glassjar`.

## Example

```python
>>> from glassjar.model import Model
>>>
>>> class Item(Model):
...     name: str
...     attrs: dict
...
>>> item = Item.records.create(name="item", attrs={"color": "red", "shape":"rectangle"})
>>> item.as_dict()
{'name': 'item', 'attrs': {'color': 'red', 'shape': 'rectangle'}}
>>> item2 = Item.records.create(name="item 2", attrs={"color": "blue", "shape":"triangle"})
>>> Item.records.first()
Item(name='item', attrs={'color': 'red', 'shape': 'rectangle'})
>>> Item.records.last()
Item(name='item 2', attrs={'color': 'blue', 'shape': 'triangle'})
>>>
```

Check out our [documentation](https://furkanonder.github.io/glassjar/) to learn more!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/furkanonder/glassjar/",
    "name": "glassjar",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "database,pickled database,orm",
    "author": "Furkan Onder",
    "author_email": "furkanonder@protonmail.com",
    "download_url": "https://files.pythonhosted.org/packages/89/bc/bc833ddafc28881b2366613ea0725b9dc379aae324c693fecabd687b6cc2/glassjar-0.1.1.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <img src=\"/assets/logo/glassjar.png\" width=200px/>\n  <h3>Pickled database that provide Object-Relational Mapper.</h3>\n  <a href=\"https://github.com/furkanonder/glassjar/actions\"><img alt=\"Actions Status\" src=\"https://github.com/furkanonder/glassjar/workflows/Test/badge.svg\"></a>\n  <a href=\"https://github.com/furkanonder/glassjar/issues\"><img alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/furkanonder/glassjar\"></a>\n  <a href=\"https://github.com/furkanonder/glassjar/stargazers\"><img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/furkanonder/glassjar\"></a>\n  <a href=\"https://github.com/furkanonder/glassjar/blob/main/LICENSE\"><img alt=\"GitHub license\" src=\"https://img.shields.io/github/license/furkanonder/glassjar\"></a>\n  <a href=\"https://pepy.tech/project/glassjar\"><img alt=\"Downloads\" src=\"https://pepy.tech/badge/glassjar\"></a>\n  <a href=\"https://img.shields.io/pypi/pyversions/glassjar\"><img alt=\"Supported Versions\" src=\"https://img.shields.io/pypi/pyversions/glassjar\"></a>\n</div>\n\n## Motivation\n\nGlassjar is a database that provides a storage mechanism based on pickled Python objects\nwith ORM.\n\n## Installation\n\n_glassjar_ can be installed by running `pip install glassjar`.\n\n## Example\n\n```python\n>>> from glassjar.model import Model\n>>>\n>>> class Item(Model):\n...     name: str\n...     attrs: dict\n...\n>>> item = Item.records.create(name=\"item\", attrs={\"color\": \"red\", \"shape\":\"rectangle\"})\n>>> item.as_dict()\n{'name': 'item', 'attrs': {'color': 'red', 'shape': 'rectangle'}}\n>>> item2 = Item.records.create(name=\"item 2\", attrs={\"color\": \"blue\", \"shape\":\"triangle\"})\n>>> Item.records.first()\nItem(name='item', attrs={'color': 'red', 'shape': 'rectangle'})\n>>> Item.records.last()\nItem(name='item 2', attrs={'color': 'blue', 'shape': 'triangle'})\n>>>\n```\n\nCheck out our [documentation](https://furkanonder.github.io/glassjar/) to learn more!\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Pickled database that provide Object-Relational Mapper.",
    "version": "0.1.1",
    "split_keywords": [
        "database",
        "pickled database",
        "orm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c7098faee56a146d3735fb107065349ef20cb04971f502a8b32d8ae457b480dc",
                "md5": "1dab4a0d21bb17a20ce27a43efe596d9",
                "sha256": "f52be133f576654fe4495ebf9a7b58caa227fc912836e61169d9612d85a4b692"
            },
            "downloads": -1,
            "filename": "glassjar-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1dab4a0d21bb17a20ce27a43efe596d9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6056,
            "upload_time": "2023-03-10T22:37:06",
            "upload_time_iso_8601": "2023-03-10T22:37:06.473489Z",
            "url": "https://files.pythonhosted.org/packages/c7/09/8faee56a146d3735fb107065349ef20cb04971f502a8b32d8ae457b480dc/glassjar-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89bcbc833ddafc28881b2366613ea0725b9dc379aae324c693fecabd687b6cc2",
                "md5": "5bf7c22e60b2827ef40829e95feb9a5a",
                "sha256": "d7ddd5cd4b18a7d05d8b557ee1a50b37947242b72489922974afa5a24a356203"
            },
            "downloads": -1,
            "filename": "glassjar-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "5bf7c22e60b2827ef40829e95feb9a5a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 6184,
            "upload_time": "2023-03-10T22:37:08",
            "upload_time_iso_8601": "2023-03-10T22:37:08.513917Z",
            "url": "https://files.pythonhosted.org/packages/89/bc/bc833ddafc28881b2366613ea0725b9dc379aae324c693fecabd687b6cc2/glassjar-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-10 22:37:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "furkanonder",
    "github_project": "glassjar",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "glassjar"
}
        
Elapsed time: 0.17613s