dazl 8.0.0
pip install dazl
Released:
high-level Ledger API client for Daml ledgers
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: Davin K. Tanabe
- Tags daml, blockchain, dlt, distributed ledger, digital asset
- Requires: Python <4.0.0, >=3.9.2
Classifiers
- License
- Programming Language
Project description
Daml Python bindings (formerly known as dazl)
Copyright (c) 2017-2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
Rich Python bindings for accessing Ledger API-based applications.
Documentation
The user documentation is available online here.
Installation
If you just want to use the library, you can install it locally with pip
:
pip install --user dazl
Requirements
- Python 3.9+
- Go 1.22
- Daml SDK
- Daml 2: 2.7 or later
Examples
All of the examples below assume you imported dazl
, and are running a ledger with the default scenario generated with daml new
.
Connect to the ledger and submit a single command:
import asyncio
import dazl
async def main():
async with dazl.connect(url='http://localhost:6865', act_as='Alice') as client:
contract = { 'issuer' : 'Alice', 'owner' : 'Alice', 'name' : 'hello world!' }
await client.create('Main:Asset', contract)
asyncio.run(main())
Connect to the ledger as a single party, print all contracts, and close:
import asyncio
import dazl
from dazl.ledgerutil import ACS
async def main():
async with dazl.connect(url='http://localhost:6865', read_as='Alice') as conn:
async with ACS(conn, {"*": {}}) as acs:
snapshot = await acs.read()
print(snapshot)
asyncio.run(main())
Building locally
You will need additional dependencies to build locally:
- Direnv (https://direnv.net/)
- Nix (https://nixos.org/download/)
Once you have these prerequisites in place:
make build
Tests
Tests in the Daml Python bindings are written using pytest. You can run them by doing:
make test
Support
The Daml Python bindings library are supported under the Daml Enterprise license. If you do not have a Daml Enterprise license and are in need of support, have questions or just want to engage in friendly conversation anything Daml, contact us on our Daml Community Forum.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache-2.0)
- Author: Davin K. Tanabe
- Tags daml, blockchain, dlt, distributed ledger, digital asset
- Requires: Python <4.0.0, >=3.9.2
Classifiers
- License
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dazl-8.0.0.tar.gz
.
File metadata
- Download URL: dazl-8.0.0.tar.gz
- Upload date:
- Size: 634.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d845db7d7365fef36138829f06fd7c4ca30f8b369bef62e5355ed08447f8695b |
|
MD5 | 92d8b73cfddf889cfdda6a3008a9d537 |
|
BLAKE2b-256 | 00d5ec37789457319e0ac856255b4d9ea8158146d289ea9ed8e5c9df48192437 |
File details
Details for the file dazl-8.0.0-py3-none-any.whl
.
File metadata
- Download URL: dazl-8.0.0-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d807507796a8772eeb5b1f79b23791dd15f77b3b04d3952810f398ff2239f1f5 |
|
MD5 | 63331ff929d09acd42b1d5292f21fa2e |
|
BLAKE2b-256 | c0120edcded524ef77700434eb687bce8ffb61ba76104ec2dbef158c9de25dbb |