{"id":46615799,"url":"https://github.com/passren/pydynamodb","last_synced_at":"2026-04-04T21:05:22.815Z","repository":{"id":59143853,"uuid":"534061155","full_name":"passren/PyDynamoDB","owner":"passren","description":"PyDynamoDB is a Python DB API 2.0 (PEP 249) client for Amazon DynamoDB. A SQLAlchemy dialect is offered as well. Superset official database driver.","archived":false,"fork":false,"pushed_at":"2026-01-21T16:44:53.000Z","size":408,"stargazers_count":22,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-22T03:31:34.442Z","etag":null,"topics":["apache-superset","aws-dynamodb","db-api","sql-to-dynamodb","sql-to-nosql","sqlalchemy-dialect"],"latest_commit_sha":null,"homepage":"","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/passren.png","metadata":{"files":{"readme":"README.rst","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-08T05:18:33.000Z","updated_at":"2026-01-21T16:57:56.000Z","dependencies_parsed_at":"2025-09-26T20:20:51.791Z","dependency_job_id":"d0d7c24b-0dea-45b7-9bca-ec5ea4599f44","html_url":"https://github.com/passren/PyDynamoDB","commit_stats":{"total_commits":107,"total_committers":1,"mean_commits":107.0,"dds":0.0,"last_synced_commit":"a4d541cb646a2e5e07bb7f4f245b387a807744bc"},"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/passren/PyDynamoDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passren%2FPyDynamoDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passren%2FPyDynamoDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passren%2FPyDynamoDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passren%2FPyDynamoDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passren","download_url":"https://codeload.github.com/passren/PyDynamoDB/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passren%2FPyDynamoDB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30229585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apache-superset","aws-dynamodb","db-api","sql-to-dynamodb","sql-to-nosql","sqlalchemy-dialect"],"created_at":"2026-03-07T20:02:05.049Z","updated_at":"2026-03-07T20:02:08.079Z","avatar_url":"https://github.com/passren.png","language":"Python","readme":".. |badge package| image:: https://badge.fury.io/py/pydynamodb.svg\n    :target: https://badge.fury.io/py/pydynamodb\n\n.. |badge test|  image:: https://github.com/passren/PyDynamoDB/actions/workflows/run-test.yaml/badge.svg\n    :target: https://github.com/passren/PyDynamoDB/actions/workflows/run-test.yaml\n\n.. |badge downloads|  image:: https://static.pepy.tech/badge/pydynamodb/month\n    :target: https://pepy.tech/project/pydynamodb\n\n.. |badge formation| image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n\n.. |badge codcov| image:: https://codecov.io/github/passren/PyDynamoDB/branch/main/graph/badge.svg?token=Y5DG320O76 \n    :target: https://codecov.io/github/passren/PyDynamoDB\n\n.. |badge sqrelia| image:: https://sonarcloud.io/api/project_badges/measure?project=passren_PyDynamoDB\u0026metric=reliability_rating \n    :target: https://sonarcloud.io/summary/new_code?id=passren_PyDynamoDB\n\n.. |badge sqale| image:: https://sonarcloud.io/api/project_badges/measure?project=passren_PyDynamoDB\u0026metric=sqale_rating \n    :target: https://sonarcloud.io/summary/new_code?id=passren_PyDynamoDB\n\n.. |badge sqvuln| image:: https://sonarcloud.io/api/project_badges/measure?project=passren_PyDynamoDB\u0026metric=vulnerabilities \n    :target: https://sonarcloud.io/summary/new_code?id=passren_PyDynamoDB\n\n|badge package| |badge test| |badge downloads| |badge formation| |badge codcov| \n|badge sqrelia| |badge sqale| |badge sqvuln|\n\nPyDynamoDB\n===========\n\nPyDynamoDB is a Python `DB API 2.0 (PEP 249)`_ client for `Amazon DynamoDB`_. \nSQLAlchemy dialect supported as well.\n\n.. _`DB API 2.0 (PEP 249)`: https://www.python.org/dev/peps/pep-0249/\n.. _`Amazon DynamoDB`: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Introduction.html\n\n\nObjectives\n----------\nPyDynamoDB implement the DB API 2.0 interfaces based on  `PartiQL`_ supported by AWS DynamoDB. \\\nAlthough PartiQL can only support DML operations (INSERT, UPDATE, DELETE, SELECT), PyDynamoDB \\\nextended the capabilities to support DDL as well. Now you are able to use MySQL-like statements \\\nto CREATE/ALTER/DROP tables. Besides DDL statements, some of utility statements are allowed to \\\nexecute (Such as, List and Describe Table). \\\nPyDynamodb provide parameters and result_set converter to make you easily manipulate operations \\\nwith Python built-in types. \\\nTransaction is also partially supported with DB standard operations, like begin() and commit().\n\n\n.. _`PartiQL`: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ql-reference.html\n.. _`PyAthena`: https://github.com/laughingman7743/PyAthena\n\n\nFeatures\n---------\n* Compatible with DB API 2.0 Specification\n* PartiQL for DML operations (INSERT, UPDATE, DELETE, SELECT)\n* Limit supported in SELECT statement\n* Extra type conversion and string functions supported in SELECT statement\n* Column alias supported in SELECT statement\n* MySQL-Like statements for DDL operations (CREATE TABLE, ALTER TABLE, DROP TABLE)\n* MySQL-Like statements for Utility operations (LIST/SHOW TABLES, DESC TABLE)\n* Auto data type conversion for parameters and result set (Including date and datetime)\n* Transaction and Batch operations\n* Dict Resultset provided to support json conversion\n* SQLAlchemy dialect provided\n* Compatible for Superset SQL Lab and graphing\n\n\nRequirements\n--------------\n* Python\n\n  - CPython 3.9 3.10 3.11 3.12 3.13 3.14\n\nDependencies\n--------------\n* Boto3 (Python SDK for AWS Services)\n\n  - boto3 \u003e= 1.21.0\n  - botocore \u003e= 1.24.7\n\n* Tenacity (Retry Utility for API calling)\n\n  - tenacity \u003e= 4.1.0\n\n* SQLAlchemy (The ORM Toolkit for Python, only required if using PyDynamoDB Dialect)\n\n  - SQLAlchemy \u003e= 1.0.0\n\n* Pyparsing (The approach to creating and executing simple grammars)\n\n  - pyparsing \u003e= 3.0.0\n\nInstallation\n--------------\n.. code:: shell\n\n    pip install pydynamodb\n\n\nGuidances\n--------------\nTo get more documentation, please visit: `PyDynamoDB WIKI`_.\n\n.. _`PyDynamoDB WIKI`: https://github.com/passren/PyDynamoDB/wiki\n\n\nBasic usage\n~~~~~~~~~~~\n\n.. code:: python\n\n    from pydynamodb import connect\n\n    cursor = connect(aws_access_key_id=\"aws_access_key_id\",\n                    aws_secret_access_key=\"aws_secret_access_key\",\n                    region_name=\"region_name\").cursor()\n    cursor.execute('SELECT * FROM \"ddb_table_name\"')\n    print(cursor.fetchall())\n\n\nCursor iteration\n~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n    from pydynamodb import connect\n\n    cursor = connect(aws_access_key_id=\"aws_access_key_id\",\n                    aws_secret_access_key=\"aws_secret_access_key\",\n                    region_name=\"region_name\").cursor()\n    cursor.execute('SELECT * FROM \"ddb_table_name\"')\n    rows = cursor.fetchall()\n    for row in rows:\n        print(row)\n\n\nQuery with parameters\n~~~~~~~~~~~~~~~~~~~~~~\n\nPyDynamoDB is able to serialize the parameters which passed to DDB \\\nand deserialize the response to Python built-in types.\n\n.. code:: python\n\n    from pydynamodb import connect\n    from datetime import date, datetime\n    cursor = connect(aws_access_key_id=\"aws_access_key_id\",\n                    aws_secret_access_key=\"aws_secret_access_key\",\n                    region_name=\"region_name\").cursor()\n    cursor.execute(\"\"\"INSERT INTO \"ddb_table_name\" VALUE {\n                        'partition_key' = ?, 'sort_key' = ?, 'col_str' = ?,\n                        'col_num' = ?, 'col_byte' = ?, 'col_ss' = ?,\n                        'col_ns' = ?, 'col_bs' = ?, 'col_list' = ?,\n                        'col_map' = ?, 'col_nested' = ?,\n                        'col_date' = ?, 'col_datetime' = ?\n                    }\"\"\", [\"pkey_value\", \"skey_value\", \"str\", 100, b\"ABC\", # String, Number, Bytes\n                            {\"str\", \"str\"}, {100, 100}, {b\"A\", b\"B\"}, # String/Numnber/Bytes Set\n                            [\"str\", 100, b\"ABC\"],  # List\n                            {\"key1\": \"val\", \"key2\": \"val\"}, # Map\n                            [\"str\", 100, {\"key1\": \"val\"}], # Nested Structure\n                            date(2022, 10, 18), datetime(2022, 10, 18, 13, 55, 34), # Date and Datetime Type\n                        ])\n\n    cursor.execute('SELECT * FROM \"ddb_table_name\" WHERE partition_key = ?', [\"key_value\"])\n    print(cursor.fetchall())\n\n\nLicense\n=======\n\nPyDynamoDB is distributed under the `MIT license\n\u003chttps://opensource.org/licenses/MIT\u003e`_.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassren%2Fpydynamodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassren%2Fpydynamodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassren%2Fpydynamodb/lists"}