Skip to main content

Ruff PyPi Version

Cardonnay

Cardonnay logo

Cardonnay is a command-line tool for setting up and managing local Cardano testnets.
It supports multiple preconfigured testnet types and makes it easy to inspect and control their lifecycle.


🚀 Getting Started

1. Create a local_fast testnet

$ cardonnay create
Starting the testnet cluster with `/var/tmp/cardonnay-of-user/cluster0_local_fast/start-cluster`:
[...]
Cluster started 🚀

ℹ️ Pro Tip: Add -b to create the testnet in the background, or -c "comment" to add a comment.

2. List running testnet instances

$ cardonnay control ls

[
  {
    "instance": 0,
    "type": "local_fast",
    "state": "started",
    "comment": null
  }
]

3. Inspect the testnet faucet

$ cardonnay inspect faucet -i 0

{
  "address": "addr_test1vpgm9cj9u3k63642vju9jqgeqy393upttt0qtwptlesy08gx620qd",
  "vkey_file": "/var/tmp/cardonnay-of-user/state-cluster0/shelley/genesis-utxo.vkey",
  "skey_file": "/var/tmp/cardonnay-of-user/state-cluster0/shelley/genesis-utxo.skey"
}

4. Work with the testnet

source <(cardonnay control print-env -i 0)
cardano-cli query tip --testnet-magic 42

5. Stop all running testnet instances

$ cardonnay control stop-all
Stopping the testnet cluster with `/var/tmp/cardonnay-of-user/state-cluster0/stop-cluster`:
[...]
Cluster terminated!

🛠️ Installation

Option 1: Using Nix

If you use Nix, you can spin up a development shell with all dependencies:

nix develop

This will provide a fully set-up environment, including Python, Cardano binaries, and jq.

ℹ️ NOTE: To use the latest master branch of cardano-node, run

nix flake update --accept-flake-config --override-input cardano-node github:IntersectMBO/cardano-node/master
nix develop --accept-flake-config

Option 2: Using make

Ensure the following dependencies are installed and available in your PATH:

  • python3
  • jq
  • cardano-node
  • cardano-cli
  • optional: cardano-submit-api

Then install Cardonnay into a virtual environment (.venv) and activate it:

# Create the virtual environment and install Cardonnay
make install

# Activate the virtual environment
source .venv/bin/activate

# (Optional) Enable shell completions for Bash
source completions/cardonnay.bash-completion

⚙️ db-sync (optional)

db-sync is started automatically when DBSYNC_SCHEMA_DIR points to the cardano-db-sync schema directory (cardano-db-sync must be on your PATH). It stays off otherwise.

Set these env vars before cardonnay create:

Env var Effect
DBSYNC_SCHEMA_DIR Path to the db-sync schema dir; enables db-sync.
SMASH Truthy (1/true/yes/on) also starts a SMASH server.
DBSYNC_ALLOW_PRIVATE_OFFCHAIN_URLS Truthy lets db-sync fetch off-chain anchor data (pool/governance metadata) served from localhost. Needed on a local testnet; off by default.
export DBSYNC_SCHEMA_DIR=/path/to/cardano-db-sync/schema
export DBSYNC_ALLOW_PRIVATE_OFFCHAIN_URLS=true
cardonnay create

Metadata

Release files for cardonnay 0.4.11

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

Source distribution (sdist)

Source distribution for cardonnay 0.4.11
File Size Uploaded Provenance Actions
cardonnay-0.4.11.tar.gz 109.0 kB Without provenance Details for cardonnay-0.4.11.tar.gz

Built distribution (wheel)

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

Total release size: 221.8 kB

Release files / cardonnay-0.4.11.tar.gz

Download URL cardonnay-0.4.11.tar.gz
Size 109.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a3a8ed9a98a4d35c043c59462efafd384c4219543de36bbd0052b3e40e3794cf
BLAKE2b-256 checksum
How to use checksums
1b4ae76700c6c25436185a55f7a8df33b70f6afeb972362c0f1cc3bdf4e6a884
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / cardonnay-0.4.11-py3-none-any.whl

Download URL cardonnay-0.4.11-py3-none-any.whl
Size 112.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
471f093e1ec6c41949bfe768237554203c4decf13a1c707e16e1bb683ad2c36e
BLAKE2b-256 checksum
How to use checksums
4f86d6c6cb3fc2502dd72125edc16003f6f367bc664738c7812f9cd76b30cedb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for cardonnay 0.4.11

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.

Release history Release notifications | RSS feed

This release

0.4.11 This release

2 release files No 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