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!

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
glassjar-0.1.1.tar.gz 6.2 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.1

1 release file

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