Skip to main content

python-sdk

Python SDK for the UTxO RPC interface

Features

  • Sync and Query service clients for Cardano blockchain
  • Support for both synchronous and asynchronous operations
  • Type-safe implementation with Protocol Buffers
  • Easy-to-use API with connection management

Important Note

Due to import path issues in utxorpc-spec 0.16.0, you must import spec_compatibility before using this SDK:

import spec_compatibility
from utxorpc import CardanoSyncClient, CardanoQueryClient

Setup

utxorpc requires Python3.9>,<4.0. To setup a local environment you can run:

just init

This will use your system's python3, whichever it may be. If you wish to setup a particular Python executable (for example, python3.12) you should do:

just init python3.12

To run the examples, you require an Demeter API Key for the UtxoRPC service. To get your API key, you can check the documentation at (https://docs.demeter.run/cli)[https://docs.demeter.run/cli]:

just run-examples YOUR_DMTR_API_KEY

Contributing

Before commiting, make sure to run the following to format and lint the code.

just format
just lint

Release files for utxorpc 0.2.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 utxorpc 0.2.0
File Size Uploaded
utxorpc-0.2.0.tar.gz 10.1 kB Details

Built distribution (wheel)

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

Total release size: 23.9 kB

Release files / utxorpc-0.2.0.tar.gz

Download URL utxorpc-0.2.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
653553927c9d8aea23a54e7ce2936406d16f77d09160e0ccce3d6087ee7708a0
BLAKE2b-256 checksum
How to use checksums
83de37c848cf490286215398411b74c696b908423c65c891ab29a73104646119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1022-azure

Release files / utxorpc-0.2.0-py3-none-any.whl

Download URL utxorpc-0.2.0-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f90643072f427ac3074a2bda164aa5b9bd5c5dd95e60af42b5b9ddb2feea262f
BLAKE2b-256 checksum
How to use checksums
7d07ddb72ee520f5695afe5e34120f0ab4bc043544e0583bebeb486db4d5a005
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1022-azure

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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