DynamoDB driver for pynosqlc
Project description
pynosqlc-dynamodb
DynamoDB driver for pynosqlc — connects to Amazon DynamoDB (or DynamoDB Local) via aioboto3.
Install
pip install alt-python-pynosqlc-dynamodb
Requirements
- Python 3.12+
- aioboto3 2.7+
- AWS credentials configured (
~/.aws/credentials, environment variables, or IAM role) - For local development: DynamoDB Local
Usage
AWS (production)
import asyncio
from pynosqlc.core import DriverManager, Filter
import pynosqlc.dynamodb # auto-registers DynamoDriver
async def main():
async with await DriverManager.get_client('pynosqlc:dynamodb:us-east-1') as client:
col = client.get_collection('orders')
await col.store('o1', {'item': 'widget', 'qty': 5})
f = Filter.where('qty').gt(0).build()
async for doc in await col.find(f):
print(doc)
asyncio.run(main())
DynamoDB Local
Pass endpoint in the properties dict to point at a local instance:
async with await DriverManager.get_client(
'pynosqlc:dynamodb:us-east-1',
properties={'endpoint': 'http://localhost:8000'},
) as client:
...
URL scheme
pynosqlc:dynamodb:<aws-region>
Example: pynosqlc:dynamodb:us-east-1
Optional properties:
| Key | Description |
|---|---|
endpoint |
Override endpoint URL (e.g. http://localhost:8000 for DynamoDB Local) |
aws_access_key_id |
AWS access key (falls back to environment / credential chain) |
aws_secret_access_key |
AWS secret key (falls back to environment / credential chain) |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alt_python_pynosqlc_dynamodb-1.0.4.tar.gz.
File metadata
- Download URL: alt_python_pynosqlc_dynamodb-1.0.4.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
031458d10b4140c4835fdf689cbbbd1b1a83f8929243c5d550e122ca512bc099
|
|
| MD5 |
d2550b0c2aeeec7d50730fab0e2fabcf
|
|
| BLAKE2b-256 |
50ec9e24339b13c83ee9e4b851a8552723daeb0b24374e1a7586851f47b7ba32
|
File details
Details for the file alt_python_pynosqlc_dynamodb-1.0.4-py3-none-any.whl.
File metadata
- Download URL: alt_python_pynosqlc_dynamodb-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
631f80cdfc552457003acbe842051d0bb5b246255542735dd3f227e9c1064201
|
|
| MD5 |
e2aa0389d5600fc3082b851e04286f20
|
|
| BLAKE2b-256 |
3e54081cd9c8b916e8d02aaaafd7935620b16af34f9ea4c057cef2e724f389c9
|