Byrne
A intelligent DynamoDB frontend for Python3
Basic Usage
Importing the package
import boto3 # require to build a client
import byrne
Creating a client
session = boto3.Session()
base_client = session.client("dynamodb")
client = byrne.DynamoDB(base_client)
client.list_tables() # ["table", "names"]
Creating a Table
table_def = byrne.datastructures.TableDefinition(
"TableName",
{
"id": "S"
},
byrne.datastructures.KeyDefinition("id")
)
client.create_table(table_def)
FAQ
-
How do I install
byrne?- Simply run
pip3 install byrne- the PyPI package is automatically kept up to date with this repository.
- Simply run
-
Why does this require Python 3.7?
- We use dataclasses heavily to model table metadata and to simplify query expressions.
-
Why is this better than using the default client in
boto3?- Support for asyncronous result pagination.
- Allows for integrated object mapping.
- Configurable value marshalling and unmarshalling.
- A more Pythonic interface.
- Builtin support for working with DAX.
-
How is the package tested?
- The testing regimen is automated through
tox. - Tests are run against a DynamoDB Local instance for all supported Python versions.
- The tests are run against the live DynamoDB service in AWS us-east-1 for the latest Python version.
- Code coverage is tracked through Coveralls.
- The testing regimen is automated through
-
Why is the DAX code path untested?
- We are working on creating a testing strategy for DAX workflows.
- DAX is expensive, we can't justify having a dedicated cluster running only for testing.
-
I can't run the test cases on my local machine! Help!
- There are 5 test environments defined in
tox.ini:test: Runs test suite against "real" DynamoDB.test_local: Runs test suite against DynamoDB Local.test_coverage: Same astest, with coverage reporting.test_coverage_local: Same astest_local, with coverage reporting.flake8: Runs PEP8 conformance testing.
- The live test cases require AWS credentials on your machine.
- These credentials need access rights to assume a role used for testing.
- Access to this role is only granted to trusted contributors.
- You should be able to run the local environments after executing the
run_dynamodb_local.shscript. flake8should run without any fuss.
- There are 5 test environments defined in
Metadata
Release files for byrne 1.0.0
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 |
|---|---|---|---|---|
| byrne-1.0.0.tar.gz | 14.6 kB | Without provenance | Details for byrne-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| byrne-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for byrne-1.0.0-py3-none-any.whl |
Total release size: 32.1 kB
Release files / byrne-1.0.0.tar.gz
| Download URL | byrne-1.0.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
244d78f6c71285a8b16c7a605c614f8928691b2ca976e108f6c0bd5bb4d381fa
|
|
BLAKE2b-256 checksum How to use checksums |
d141fd9b5300ed996aae97d0f352eeae80819a35351a926a74fc90cafab615c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
|
Release files / byrne-1.0.0-py3-none-any.whl
| Download URL | byrne-1.0.0-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52e5bfd56310032e698c9b0d2c0fc8d7a7f524414a67537e67da7e3cbc91e114
|
|
BLAKE2b-256 checksum How to use checksums |
065c3369755367352e2c359bced1c8849594d9ac035bbdac6d6209bc5738e344
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.1 Darwin/23.2.0
|
Security for byrne 1.0.0
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.