Skip to main content

Welcome to OLIB, an object library.

OLIB is an object library you can use to program with objects, uses a JSON in file database with a versioned readonly storage and reconstructs objects based on type information in the path.

OLIB is placed in the Public Domain and has no COPYRIGHT and no LICENSE.

INSTALL

OLIB can be found on pypi, see http://pypi.org/project/olib

installation is through pypi:

$ sudo pip3 install olib --upgrade --force-reinstall

PROGRAMMING

OLIB provides a library you can use to program objects under python3. It provides a basic Object, that mimics a dict while using attribute access and provides a save/load to/from json files on disk. Objects can be searched with a little database module, provides read-only files to improve persistence and use a type in filename reconstruction.

basic usage is this:

>>> from obj import Object
>>> o = Object()
>>> o.key = "value"
>>> o.key
'value'
>>> o
{"key": "value"}

objects can be saved and loaded to JSON files:

>>> from obj import Object, cfg
>>> cfg.wd = "data"
>>> o = Object()
>>> o.key = "value"
>>> path = o.save()
>>> path
'obj.Object/4b58abe2-3757-48d4-986b-d0857208dd96/2021-04-12/21:15:33.734994
>>> oo = Object().load(path)
>>> oo.key
'value'

an Object tries to mimic a dictionary while trying to be an object with normal attribute access as well. Hidden methods are provided as are the basic methods like get, items, keys, register, set, update, values.

great for giving objects peristence by having their state stored in files.

CONTACT

have fun coding

Bart Thate (bthate67@gmail.com)
botfather on #dunkbots irc.freenode.net

Metadata

Release files for olib 102

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

Source distribution (sdist)

Source distribution for olib 102
File Size Uploaded Provenance Actions
olib-102.tar.gz 16.0 kB Without provenance Details for olib-102.tar.gz

Release files / olib-102.tar.gz

Download URL olib-102.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
71ce85fa648cb4e24989d80402c62d94133a1672d5f09e2aaccf988a08339c97
BLAKE2b-256 checksum
How to use checksums
1d41490f40badde292c7aef298ccdc025f29346b369556574f6bc76311500312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.4

Security for olib 102

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.

Release history Release notifications | RSS feed

This release

102 This release

1 release file No provenance

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