From dcabc117812393dab26d5bc4088743bf67c87801 Mon Sep 17 00:00:00 2001 From: Grant Moore Date: Thu, 3 Mar 2022 15:50:11 -0500 Subject: [PATCH] init commit --- .github/workflows/unit-tests.yml | 8 +- README.md | 20 +- docs/build/html/CLI.html | 26 +- docs/build/html/CONFIGURATION.html | 28 +-- docs/build/html/INTRODUCTION.html | 42 ++-- docs/build/html/MODELS.html | 30 +-- docs/build/html/REFERENCES.html | 10 +- docs/build/html/SETUP.html | 16 +- docs/build/html/TODOS.html | 16 +- docs/build/html/_sources/CLI.md.txt | 16 +- docs/build/html/_sources/CONFIGURATION.md.txt | 18 +- docs/build/html/_sources/INTRODUCTION.md.txt | 18 +- docs/build/html/_sources/MODELS.md.txt | 20 +- docs/build/html/_sources/SETUP.md.txt | 6 +- docs/build/html/_sources/index.rst.txt | 4 +- .../innoldb.examples.example_ion.rst.txt | 8 +- .../html/_sources/innoldb.examples.rst.txt | 14 +- docs/build/html/_sources/innoldb.rst.txt | 18 +- .../html/_sources/innoldb.static.rst.txt | 16 +- docs/build/html/_sources/modules.rst.txt | 2 +- docs/build/html/genindex.html | 146 +++++------ docs/build/html/index.html | 22 +- .../html/innoldb.examples.example_ion.html | 56 ++--- docs/build/html/innoldb.examples.html | 68 +++--- docs/build/html/innoldb.html | 228 +++++++++--------- docs/build/html/innoldb.static.html | 136 +++++------ docs/build/html/modules.html | 44 ++-- docs/build/html/py-modindex.html | 26 +- docs/build/html/search.html | 10 +- docs/build/html/searchindex.js | 2 +- docs/source/CLI.md | 16 +- docs/source/CONFIGURATION.md | 18 +- docs/source/INTRODUCTION.md | 18 +- docs/source/MODELS.md | 20 +- docs/source/SETUP.md | 6 +- docs/source/conf.py | 2 +- docs/source/index.rst | 4 +- docs/source/innoldb.rst | 18 +- docs/source/innoldb.static.rst | 16 +- docs/source/modules.rst | 2 +- examples/example_document_crud.py | 4 +- examples/example_histories.py | 4 +- examples/example_queries.py | 8 +- examples/example_strands.py | 6 +- scripts/distribute | 2 +- scripts/docs/api | 2 +- scripts/install | 6 +- scripts/test | 2 +- setup.cfg | 8 +- src/innoldb.egg-info/PKG-INFO | 28 +-- src/innoldb.egg-info/SOURCES.txt | 41 ++-- src/innoldb.egg-info/entry_points.txt | 2 +- src/innoldb.egg-info/top_level.txt | 2 +- src/innoldb/main.py | 24 +- src/innoldb/qldb.py | 52 ++-- src/innoldb/static/driver.py | 8 +- src/innoldb/static/logger.py | 2 +- src/innoldb/static/objects.py | 9 +- version.txt | 2 +- 59 files changed, 700 insertions(+), 706 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5c97fdf..10c6c10 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -1,4 +1,4 @@ -name: Innoldb Test Coverage +name: qldb-orm Test Coverage on: push: @@ -33,19 +33,19 @@ jobs: run: | python -m pip install --upgrade pip pip install build - pip install -r ./src/innoldb/tests/requirements.txt + pip install -r ./src/qldb-orm/tests/requirements.txt curl https://deepsource.io/cli | sh - name: Build test application run: | VERSION=$(cat version.txt) python -m build cd dist - pip install innoldb-${VERSION}-py3-none-any.whl + pip install qldb-orm-${VERSION}-py3-none-any.whl cd .. shell: bash - name: Run unit tests and upload coverage run: | - coverage run --source="./src/innoldb/" \ + coverage run --source="./src/qldb-orm/" \ --omit="**/test_*.py","**/__init__.py" \ --module pytest \ --junit-xml=coverage-execution.xml diff --git a/README.md b/README.md index 8446d0d..3935a4b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # makpar-innolab -## innoldb +## qldb-orm A simple [Object-Relation-Mapping](https://en.wikipedia.org/wiki/Object%E2%80%93relational_mapping) for a serverless [AWS Quantum Ledger Database](https://docs.aws.amazon.com/qldb/latest/developerguide/what-is.html) backend, and a command line utility for querying tables on those ledgers. @@ -14,7 +14,7 @@ The idea behind the *ORM* is to map document fields to native Python object attr **CRUD OPERATIONS** ```python -from innoldb.qldb import Document +from qldb-orm.qldb import Document # Create a document on `my_table` table. document = Document('my_table') @@ -27,7 +27,7 @@ document.save() ``` ```python -from innoldb.qldb import Document +from qldb-orm.qldb import Document # Load a document from `my_table` table. document = Document('my_table', id="123456") @@ -37,7 +37,7 @@ for val in document.field.nested_data.array: **Queries** ```python -from innoldb.qldb import Query +from qldb-orm.qldb import Query query = Query('my-table').find_by(field_name='field value') for document in query: @@ -48,20 +48,20 @@ for document in query: **CRUD Operations** ```shell -innoldb --table your-table --insert col1=val1 col2=val2 ... -innoldb --table your-table --id 123 --update col1=newval1 col2=newval2 +qldb-orm --table your-table --insert col1=val1 col2=val2 ... +qldb-orm --table your-table --id 123 --update col1=newval1 col2=newval2 ``` **Queries** ```shell -innoldb --table your-table --find column=this +qldb-orm --table your-table --find column=this ``` ### Read The Docs -- [innolqb documentation](https://makpar-innovation-laboratory.github.io/innoldb/) +- [innolqb documentation](https://makpar-innovation-laboratory.github.io/qldb-orm/) ### Code Quality -[![DeepSource](https://deepsource.io/gh/Makpar-Innovation-Laboratory/innoldb.svg/?label=active+issues&show_trend=true&token=0yUpU0SKBmqEg7qNHU2C65C6)](https://deepsource.io/gh/Makpar-Innovation-Laboratory/innoldb/?ref=repository-badge) -[![DeepSource](https://deepsource.io/gh/Makpar-Innovation-Laboratory/innoldb.svg/?label=resolved+issues&show_trend=true&token=0yUpU0SKBmqEg7qNHU2C65C6)](https://deepsource.io/gh/Makpar-Innovation-Laboratory/innoldb/?ref=repository-badge) +[![DeepSource](https://deepsource.io/gh/Makpar-Innovation-Laboratory/qldb-orm.svg/?label=active+issues&show_trend=true&token=0yUpU0SKBmqEg7qNHU2C65C6)](https://deepsource.io/gh/Makpar-Innovation-Laboratory/qldb-orm/?ref=repository-badge) +[![DeepSource](https://deepsource.io/gh/Makpar-Innovation-Laboratory/qldb-orm.svg/?label=resolved+issues&show_trend=true&token=0yUpU0SKBmqEg7qNHU2C65C6)](https://deepsource.io/gh/Makpar-Innovation-Laboratory/qldb-orm/?ref=repository-badge) diff --git a/docs/build/html/CLI.html b/docs/build/html/CLI.html index 143c9e8..19b92dc 100644 --- a/docs/build/html/CLI.html +++ b/docs/build/html/CLI.html @@ -47,7 +47,7 @@ - Command Line Usage — innoldb v1.0.10 documentation + Command Line Usage — qldb-orm v1.0.10 documentation @@ -81,7 +81,7 @@