Skip to main content

DynamoDB Object Document Mapper (ODM) for Python

Installation

pip install dynamodm

Usage

from dynamodm import DynaModel, Field

class User(DynaModel):
	sub: str = Field(pk=True)
	name: str = Field(sk=True)
	age: int

user = User(sub="user", name="John Doe", age=42)

async def main():
	await user.put()
	# User(sub='user', name='John Doe', age=42)
	await User.get(pk="user", sk="John Doe")
	# User(sub='user', name='John Doe', age=42)
	await User.query(pk="user", sk="John Doe",operator="begins_with")
	# [User(sub='user', name='John Doe', age=42)]
	await User.delete(pk="user", sk="John Doe")
	# None
	

Features

  • Type hints
  • Automatic schema generation
  • Automatic table creation
  • Automatic table updates
  • Automatic table deletion

Metadata

Release files for dynamodm 0.0.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 dynamodm 0.0.4
File Size Uploaded Provenance
dynamodm-0.0.4.tar.gz 8.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dynamodm 0.0.4
File Interpreter ABI Platform
dynamodm-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / dynamodm-0.0.4.tar.gz

Download URL dynamodm-0.0.4.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b2840d2e143f43ee5afff13b0d56b1a2514118d3d385e0c7314eee6b9832395
BLAKE2b-256 checksum
How to use checksums
7f30c98502a4d88e354d8abb5f3a57483bb517a6e530d5896513441b257f4d2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Darwin/22.6.0

Release files / dynamodm-0.0.4-py3-none-any.whl

Download URL dynamodm-0.0.4-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a298ef7c0cd3429c8676b3f8d6b7b7e25253e13e70c4e155073ea0f6cfdacc58
BLAKE2b-256 checksum
How to use checksums
f4c01d54fba7ee15098a251c5733bd56f3b80088f3cd410da993649ebebe1ac0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.1 Darwin/22.6.0

Security for dynamodm 0.0.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