Skip to main content

dynoxide for Python

Dynoxide is a DynamoDB-compatible engine backed by SQLite, built for tests and local development. This package starts a Dynoxide server from Python or pytest. The binary comes in the wheel, so there's no Java, no Docker and nothing downloaded at run time.

pip install dynoxide

Start a server

import boto3
import dynoxide

with dynoxide.start() as server:
    client = boto3.client("dynamodb", **server.client_kwargs())
    client.create_table(
        TableName="Users",
        KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}],
        AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}],
        BillingMode="PAY_PER_REQUEST",
    )
    print(client.list_tables()["TableNames"])

start() runs the server on 127.0.0.1 on a free port and returns once it's ready for requests. Leaving the with block stops it. Without a with, call server.stop(). A server you forget to stop, or don't keep a reference to, runs until Python exits, and goes away then however Python exits, even with kill -9. That last part needs Dynoxide 1.7.0 or later: an older binary given through binary= or DYNOXIDE_BINARY is left running if Python is killed outright.

client_kwargs() holds the endpoint, the region (us-east-1) and a pair of dummy credentials (dynoxide / dynoxide). Dynoxide accepts any credentials, so nothing real is needed.

Options

dynoxide.start(
    db_path="data/dev.db",       # keep the data in a file between runs (default: in memory)
    schema="tests/schema.json",  # create tables at startup
    port=8000,                   # a fixed port, for a dev setup (default: any free port)
    ready_timeout=10.0,          # seconds to wait before giving up
    binary="/path/to/dynoxide",  # a different binary (see below)
    binary_from_path=False,      # True: use the dynoxide on PATH, from Homebrew say
    log=print,                   # where the one start-up line goes (default: the "dynoxide" logger)
)

Keep test suites on port 0, the default. If a fixed port is taken, start() raises PortInUseError, which has the port in .port.

If it can't start, start() raises DynoxideError. Its code says why (BINARY_MISSING, UNSUPPORTED_PLATFORM, TOO_OLD, VERSION_CHECK_FAILED, SPAWN_FAILED, EXITED, PORT_IN_USE, BAD_READY_LINE, PORT_ZERO or TIMEOUT), and the message ends with the server's last lines of stderr.

The server's output goes to temporary files, removed when it stops, so nothing in your process has to keep reading it. They stay small unless RUST_LOG=trace is set, which logs every request for as long as the server runs, at about 120 bytes each.

Code that builds its own clients

If the code under test calls boto3.client("dynamodb") itself, export the environment instead:

server = dynoxide.start()
server.export_env()

That sets AWS_ENDPOINT_URL_DYNAMODB, the dummy credentials, AWS_REGION and AWS_DEFAULT_REGION, sets AWS_IGNORE_CONFIGURED_ENDPOINT_URLS=false, and removes AWS_SESSION_TOKEN. It never sets AWS_ENDPOINT_URL, so other AWS services aren't sent to Dynoxide.

The variables apply to the whole process. A test that also talks to S3 picks up the dummy credentials as well, and endpoints configured for other services come back into use if AWS_IGNORE_CONFIGURED_ENDPOINT_URLS had switched them off. The credentials and endpoint variables take priority over an AWS_PROFILE, so a profile can't send requests elsewhere.

boto3 reads AWS_ENDPOINT_URL_DYNAMODB from 1.28.0 (botocore 1.31.0), and aiobotocore from 2.5.3. Older versions ignore it and call AWS, so pass endpoint_url yourself there.

pytest

The plugin loads when the package is installed, and starts nothing until a test asks for one of its fixtures:

def test_users(dynamodb_client):
    dynamodb_client.put_item(TableName="Users", Item={"pk": {"S": "alice"}})
    item = dynamodb_client.get_item(TableName="Users", Key={"pk": {"S": "alice"}})
    assert item["Item"]["pk"]["S"] == "alice"
Fixture Scope What it gives
dynoxide session The Server, with its environment exported until the session ends
dynamodb_client session boto3.client("dynamodb") for it
dynamodb_resource session boto3.resource("dynamodb") for it
dynoxide_clean test Empties every table after the test, keeping the tables

The client fixtures need boto3, which this package doesn't install for you.

Settings go in pyproject.toml (or pytest.ini), and each has a command-line option of the same name, such as --dynoxide-schema:

[tool.pytest.ini_options]
dynoxide_schema = "tests/schema.json"  # tables to create at startup
dynoxide_db_path = "tests/data.db"     # keep data between runs
dynoxide_binary = "/path/to/dynoxide"  # a different binary

Relative paths are relative to pytest's rootdir.

With pytest-xdist each worker starts its own server on its own port. Two servers can't share a database file, so with dynoxide_db_path set each worker gets its own, with the worker id appended: tests/data.db-gw0, tests/data.db-gw1 and so on.

Platforms

Wheels carry the binary for:

  • Linux x86_64 and arm64, glibc or musl (Alpine)
  • macOS on Intel (10.12 or later) and Apple silicon
  • Windows x86_64

On anything else pip installs from source, without a binary. start() then raises UNSUPPORTED_PLATFORM until you point DYNOXIDE_BINARY at a dynoxide executable or pass binary=. Release binaries are on GitHub. A binary from binary=, DYNOXIDE_BINARY or PATH isn't checksum-verified, and it has to be Dynoxide 1.6.0 or later.

The dynoxide command runs the bundled binary, so dynoxide serve --port 8000 works straight after pip install.

Not for production

Dynoxide is for tests and local development. It binds to loopback, accepts any credentials and doesn't check request signatures.

The package's version matches the engine's: dynoxide 1.8.0 on PyPI carries Dynoxide 1.8.0. A fix to the Python package alone ships as a post-release, such as 1.8.0.post1.

Dual licensed under MIT or Apache-2.0.

Metadata

Release files for dynoxide 1.8.0

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

Source distribution (sdist)

Source distribution for dynoxide 1.8.0
File Size Uploaded Provenance Actions
dynoxide-1.8.0.tar.gz 39.0 kB With provenance Details for dynoxide-1.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dynoxide 1.8.0
File Actions
dynoxide-1.8.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for dynoxide-1.8.0-py3-none-win_amd64.whl
dynoxide-1.8.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux musl 1.1+ x86-64 Details for dynoxide-1.8.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
dynoxide-1.8.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux musl 1.1+ ARM64, Linux glibc 2.17+ ARM64 Details for dynoxide-1.8.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
dynoxide-1.8.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for dynoxide-1.8.0-py3-none-macosx_11_0_arm64.whl
dynoxide-1.8.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for dynoxide-1.8.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 19.1 MB

Release files / dynoxide-1.8.0.tar.gz

Download URL dynoxide-1.8.0.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b2d8917989f68dfa02ac9e619beba2efe2bf844038a37397450687eb11795cb0
BLAKE2b-256 checksum
How to use checksums
cf0fb9f481f5cac83d5c1044b72927860f88147eee6c16f2578fdffacec76688
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / dynoxide-1.8.0-py3-none-win_amd64.whl

Download URL dynoxide-1.8.0-py3-none-win_amd64.whl
Size 3.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5401ff843b50575ad24471a1a36a7d5298607ad61e74eb993b23a56086cc09ee
BLAKE2b-256 checksum
How to use checksums
3394ff97ba821276ade8121a95e9fcc2739b2b4249b911e27deda6a60c49a39b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / dynoxide-1.8.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL dynoxide-1.8.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 4.0 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a5a07eb9317c9d57336712ffb24bd1d3d107183289d71ae0becc57d910bc09b3
BLAKE2b-256 checksum
How to use checksums
acac43243ab58883ea51453a7d405f8ca31fd9746f997970729913f2d89e87dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / dynoxide-1.8.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL dynoxide-1.8.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 3.8 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
00dd78454f27b5a1e88e7f7a141cf498afe5692a07d36ff2b618c6b1a3e9a01f
BLAKE2b-256 checksum
How to use checksums
f059ea24d270c440f9bd9e5b9dca6e60d0d1e04bef6e9948135b8979876cc008
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / dynoxide-1.8.0-py3-none-macosx_11_0_arm64.whl

Download URL dynoxide-1.8.0-py3-none-macosx_11_0_arm64.whl
Size 3.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9f6fc3076a79f37ee8d9629c24f103304d7dc282ccb79a9be20ce3b90aea9872
BLAKE2b-256 checksum
How to use checksums
941fc6145ca01ab22cb7f7f4ba55b4e3cb99a44c42f29c2495491f73f7c265a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / dynoxide-1.8.0-py3-none-macosx_10_12_x86_64.whl

Download URL dynoxide-1.8.0-py3-none-macosx_10_12_x86_64.whl
Size 3.9 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
50cdcf2ec78c3330c95cbc5f100827327e7add4256e515059a4de45416367ee9
BLAKE2b-256 checksum
How to use checksums
7c6a078ac355acf2852698c4008efc53616eeb4750f2629f63ec62943250463d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for dynoxide 1.8.0

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.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for dynoxide-1.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.8.0 This release

6 release files Full provenance

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