Skip to main content

Installation

$ pip install odbm

Usage

>>> class Test(Model):
...     day     = DateProperty(primary_key=True)
...     foo     = Property(default=[1, 2])
...     ustr    = UnicodeProperty(key='u')
...     cstr    = CompressedStringProperty()
...     cuni    = CompressedUnicodeProperty()
...     cdump   = CompressedProperty(default={})
...     created = DateTimeProperty(key='c')
...
...     __db_type__ = 'dict'
>>> Test(
...     day     = date(2000, 01, 02),
...     foo     = [1, u'ы', {'a': 'b'}],
...     ustr    = u'ыыы',
...     cstr    = 'A' * 1000,
...     cuni    = u'Ы' * 1000,
...     cdump   = range(10),
...     created = datetime.now(),
... ).save()
>>> Test(day=date(1999, 02, 02)).save()
>>> Test.get(date(1999, 02, 02)).foo
[1, 2]
>>> Test.count()
2
>>> Test.count(lambda x: x.ustr == u'ыыы')
1
>>> [t.day.year for t in Test.find(
...     filter  = lambda x: 3 not in x.foo,
...     order   = lambda x: x.day)]
[1999, 2000]
>>> Test.find_one().delete()
>>> Test.count()

Metadata

Release files for odbm 0.3

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

Source distribution (sdist)

Source distribution for odbm 0.3
File Size Uploaded Provenance Actions
odbm-0.3.tar.gz 4.5 kB Without provenance Details for odbm-0.3.tar.gz

Release files / odbm-0.3.tar.gz

Download URL odbm-0.3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b1232d37f5ad6746e9a2e9aec860adb3a01c6ff568feb7ae7bb34a2cb88373d9
BLAKE2b-256 checksum
How to use checksums
d4f65cd588b63a7d72c3ce3e542dedf18fa22ff1bbbf7c4d9554fadd8918b579
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for odbm 0.3

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