Skip to main content

Usage:

pip install dynamo_db_dict
from dynamo_db_dict import dynamo_db

db = dynamo_db(aws_access_key_id='YOUR KEY HERE', aws_secret_access_key='YOUR SECRET KEY HERE') # or via: os.environ, ~/.boto, /etc/boto.cfg
# Set table_name_prefix='YOUR_PROJECT_NAME_' if you use the same DynamoDB account for several projects.

# Either create table "user" with hash_key "email" via AWS concole, or via inherited db.create_table(...).
db.user['john@example.com'] = dict(first_name='John', last_name='Johnson') # Put. No need to repeat "email" in dict(...).
john = db.user['john@example.com'] # Get.
assert john == dict(email='john@example.com', first_name='John', last_name='Johnson') # Complete item, with "email".
assert john['first_name'] == 'John' # Key access.
assert john.first_name == 'John' # Attr access.
del db.user['john@example.com'] # Delete.

See also:

Metadata

Release files for dynamo_db_dict 0.2.4

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

Source distribution (sdist)

Source distribution for dynamo_db_dict 0.2.4
File Size Uploaded Provenance Actions
dynamo_db_dict-0.2.4.tar.gz 2.2 kB Without provenance Details for dynamo_db_dict-0.2.4.tar.gz

Release files / dynamo_db_dict-0.2.4.tar.gz

Download URL dynamo_db_dict-0.2.4.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0ae6d8be070628a942ce483bd1269f35218ffee041ecb352bc734022ebb01406
BLAKE2b-256 checksum
How to use checksums
5732e1712246383c8cdf4842c23dad19f2a903355e372ee98c5cc86674a49577
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dynamo_db_dict 0.2.4

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.

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