Skip to main content

Pickled database that provide Object-Relational Mapper.

Actions Status GitHub issues GitHub stars GitHub license Downloads Supported Versions

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

>>> 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 to learn more!

Metadata

Release files for glassjar 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glassjar 0.1.1
File Size Uploaded Provenance Actions
glassjar-0.1.1.tar.gz 6.2 kB Without provenance Details for glassjar-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for glassjar 0.1.1
File Interpreter ABI Platform Actions
glassjar-0.1.1-py3-none-any.whl Python 3 none any Details for glassjar-0.1.1-py3-none-any.whl

Total release size: 12.2 kB

Release files / glassjar-0.1.1.tar.gz

Download URL glassjar-0.1.1.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d7ddd5cd4b18a7d05d8b557ee1a50b37947242b72489922974afa5a24a356203
BLAKE2b-256 checksum
How to use checksums
89bcbc833ddafc28881b2366613ea0725b9dc379aae324c693fecabd687b6cc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / glassjar-0.1.1-py3-none-any.whl

Download URL glassjar-0.1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f52be133f576654fe4495ebf9a7b58caa227fc912836e61169d9612d85a4b692
BLAKE2b-256 checksum
How to use checksums
c7098faee56a146d3735fb107065349ef20cb04971f502a8b32d8ae457b480dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for glassjar 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page