makpar-innovation-laboratory
innoldb
A simple Object-Relation-Mapping for a serverless AWS Quantum Ledger Database backend, and a command line utility for querying tables on those ledgers.
NOTE: The user or process using this library must have an IAM policy that allows access to QLDB.
ORM
The idea behind the ORM is to map document fields to native Python object attributes, so that document values can be accessed by traversing the object property tree.
CRUD OPERATIONS
from innoldb.qldb import Document
# Create a document on `my_table` table.
document = Document('my_table')
document.field = {
'nested_data': {
'array': ['colllection', 'of', 'things']
}
}
document.save()
from innoldb.qldb import Document
# Load a document from `my_table` table.
document = Document('my_table', id="123456")
for val in document.field.nested_data.array:
print(val)
Queries
from innoldb.qldb import Query
query = Query('my-table').find_by(field_name='field value')
for document in query:
print(f'Document({document.id}).field_name = {document.field_name}')
CLI
CRUD Operations
innoldb --table your-table --insert col1=val1 col2=val2 ...
innoldb --table your-table --id 123 --update col1=newval1 col2=newval2
Queries
innoldb --table your-table --find column=this
Read The Docs
Code Quality
Metadata
Release files for innoldb 1.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| innoldb-1.0.15.tar.gz | 25.1 kB | Without provenance | Details for innoldb-1.0.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| innoldb-1.0.15-py3-none-any.whl | Python 3 | none | any | Details for innoldb-1.0.15-py3-none-any.whl |
Total release size: 51.3 kB
Release files / innoldb-1.0.15.tar.gz
| Download URL | innoldb-1.0.15.tar.gz |
|---|---|
| Size | 25.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f8e1f3b0973ba50a34aa51ad9f37f49a9671784b3cf63ae315e2b8a9af1bb9e
|
|
BLAKE2b-256 checksum How to use checksums |
bb1c6d31f3a52940479235c3509dc154cbd52f6492d7a0ebf28026e145b6d7b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
|
Release files / innoldb-1.0.15-py3-none-any.whl
| Download URL | innoldb-1.0.15-py3-none-any.whl |
|---|---|
| Size | 26.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05189be6f4f05c2a08e3a40bd187687e4cd23ec9f25e6f28708e5bd9ff154086
|
|
BLAKE2b-256 checksum How to use checksums |
3a7eccd7dd1ed5561a7bdcf4e0bbcba02dc07fa416b1bc0a101936dcc5c01234
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10
|
Security for innoldb 1.0.15
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.