The samples in this project demonstrate several uses of Amazon Quantum Ledger Database (QLDB).
For our tutorial, see Python and Amazon QLDB.
See Accessing Amazon QLDB for information on connecting to AWS.
See Setting Region page for more information on using the AWS SDK for Python. You will need to set a region before running the sample code.
DMV Sample App v1.x requires Python 3.4 or later.
DMV Sample App v2.x requires Python 3.7 or later.
Please see the link below for more detail to install Python:
Install Python QLDB driver and other dependencies using pip:
pip install -r requirements.txt
The sample code creates a ledger with tables and indexes, and inserts some documents into those tables, among other things. Each of the examples in this project can be run in the following way:
python create_ledger.py
The above example will build the CreateLedger class with the necessary dependencies and create a ledger named:
vehicle-registration
. You may run other examples after creating a ledger.
Sphinx is used for documentation. You can generate HTML locally with the following:
$ pip install -r requirements-docs.txt
$ pip install -e .
$ cd docs
$ make html
This library is licensed under the MIT-0 License.