{"id":22519404,"url":"https://github.com/hennge/aiodynamo","last_synced_at":"2025-10-08T18:47:16.305Z","repository":{"id":37451017,"uuid":"88230941","full_name":"HENNGE/aiodynamo","owner":"HENNGE","description":"Asynchronous, fast, pythonic DynamoDB Client","archived":false,"fork":false,"pushed_at":"2024-02-16T06:27:09.000Z","size":485,"stargazers_count":67,"open_issues_count":21,"forks_count":20,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-04-28T22:20:32.022Z","etag":null,"topics":["asynchronous","asyncio","aws","dynamodb","python"],"latest_commit_sha":null,"homepage":"https://aiodynamo.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HENNGE.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-14T03:51:39.000Z","updated_at":"2024-06-17T02:44:33.019Z","dependencies_parsed_at":"2024-06-17T02:44:18.060Z","dependency_job_id":"41eff4bb-bc4e-4703-86b7-aba2644cf7b8","html_url":"https://github.com/HENNGE/aiodynamo","commit_stats":{"total_commits":282,"total_committers":18,"mean_commits":"15.666666666666666","dds":0.4964539007092199,"last_synced_commit":"dcf67351c339d3689ae3570f0cad2678e486eabf"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HENNGE%2Faiodynamo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HENNGE%2Faiodynamo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HENNGE%2Faiodynamo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HENNGE%2Faiodynamo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HENNGE","download_url":"https://codeload.github.com/HENNGE/aiodynamo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471521,"owners_count":20944158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asynchronous","asyncio","aws","dynamodb","python"],"created_at":"2024-12-07T04:19:58.550Z","updated_at":"2025-10-08T18:47:11.236Z","avatar_url":"https://github.com/HENNGE.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AsyncIO DynamoDB\n\n[![CircleCI](https://circleci.com/gh/HENNGE/aiodynamo.svg?style=svg)](https://circleci.com/gh/HENNGE/aiodynamo)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Documentation Status](https://readthedocs.org/projects/aiodynamo/badge/?version=latest)](https://aiodynamo.readthedocs.io/en/latest/?badge=latest)\n\nAsynchronous pythonic DynamoDB client; **2x** faster than `aiobotocore/boto3/botocore`.\n\n## Quick start\n\n### With httpx\nInstall this library\n\n`pip install \"aiodynamo[httpx]\"` or, for poetry users `poetry add aiodynamo -E httpx`\n\nConnect to DynamoDB\n\n```py\nfrom aiodynamo.client import Client\nfrom aiodynamo.credentials import Credentials\nfrom aiodynamo.http.httpx import HTTPX\nfrom httpx import AsyncClient\n\nasync def main():\n    async with AsyncClient() as h:\n        client = Client(HTTPX(h), Credentials.auto(), \"us-east-1\")\n```\n\n### With aiohttp\nInstall this library\n\n`pip install \"aiodynamo[aiohttp]\"` or, for poetry users `poetry add aiodynamo -E aiohttp`\n\nConnect to DynamoDB\n\n```py\nfrom aiodynamo.client import Client\nfrom aiodynamo.credentials import Credentials\nfrom aiodynamo.http.aiohttp import AIOHTTP\nfrom aiohttp import ClientSession\n\nasync def main():\n    async with ClientSession() as session:\n        client = Client(AIOHTTP(session), Credentials.auto(), \"us-east-1\")\n```\n\n### API use\n\n```py\nfrom aiodynamo.client import Client\nfrom aiodynamo.expressions import F\nfrom aiodynamo.models import Throughput, KeySchema, KeySpec, KeyType\n\nasync def main(client: Client):\n    table = client.table(\"my-table\")\n\n    # Create table if it doesn't exist\n    if not await table.exists():\n        await table.create(\n            Throughput(read=10, write=10),\n            KeySchema(hash_key=KeySpec(\"key\", KeyType.string)),\n        )\n\n    # Create or override an item\n    await table.put_item({\"key\": \"my-item\", \"value\": 1})\n    # Get an item\n    item = await table.get_item({\"key\": \"my-item\"})\n    print(item)\n    # Update an item, if it exists.\n    await table.update_item(\n        {\"key\": \"my-item\"}, F(\"value\").add(1), condition=F(\"key\").exists()\n    )\n```\n\n## Why aiodynamo\n\n* boto3 and botocore are synchronous. aiodynamo is built for **asynchronous** apps.\n* aiodynamo is **fast**. Two times faster than aiobotocore, botocore or boto3 for operations such as query or scan.\n* aiobotocore is very low level. aiodynamo provides a **pythonic API**, using modern Python features. For example, paginated APIs are automatically depaginated using asynchronous iterators.\n* **Legible source code**. botocore and derived libraries generate their interface at runtime, so it cannot be inspected and isn't typed. aiodynamo is hand written code you can read, inspect and understand.\n* **Pluggable HTTP client**. If you're already using an asynchronous HTTP client in your project, you can use it with aiodynamo and don't need to add extra dependencies or run into dependency resolution issues.\n\n[Complete documentation is here](https://aiodynamo.readthedocs.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennge%2Faiodynamo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhennge%2Faiodynamo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhennge%2Faiodynamo/lists"}