Skip to main content

Djib Python SDK

It's the base Python library for interacting with Djib network. You can use it interact with the Djib network.

Quickstart

Installation

pip install djib

General RPC Usage

from djib.rpc import DjibRpc

WALLET_PRIVATE_KEY = '<Base58 encoded string>'

try:
    rpc = DjibRpc(WALLET_PRIVATE_KEY, is_devnet=True)

    # status of drive
    response = rpc.status()

    if response.error:
        print(f"Error: {response.error['message']}, Code: {response.error['code']}, Data: {response.error['data']}")
    else:
        print(response.data)
except Exception as e:
    print(f"Error: {str(e)}")

KMS Usage

from djib.rpc import KmsClient

WALLET_PRIVATE_KEY = '<Base58 encoded string>'

try:
    kms = KmsClient(WALLET_PRIVATE_KEY, is_devnet=True)
    a = 'Hello, World!'
    a_enc = kms.encrypt(a)
    a_dec = kms.decrypt(a_enc)
    assert a_dec == a
except Exception as e:
    print(f"Error: {str(e)}")

Development

Setup

  1. Install poetry
  2. Install dev dependencies:
poetry install
  1. Activate the poetry shell.
poetry shell

Metadata

Release files for djib 0.1.2

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

Source distribution (sdist)

Source distribution for djib 0.1.2
File Size Uploaded Provenance Actions
djib-0.1.2.tar.gz 20.3 kB Without provenance Details for djib-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 40.7 kB

Release files / djib-0.1.2.tar.gz

Download URL djib-0.1.2.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0f98d5d5a0420007c2675335e2aabcbe577adddaeb2058fa49569d582814d146
BLAKE2b-256 checksum
How to use checksums
a0f23ecdaabfaca432d9236eccef15119427ebe12dea4221de75a28ef43a79fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.6 Linux/5.15.62-1-MANJARO

Release files / djib-0.1.2-py3-none-any.whl

Download URL djib-0.1.2-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf22e94dc898387854525556078da8140e99c7e67b7479e64e692ee84bc5d437
BLAKE2b-256 checksum
How to use checksums
9fff15b646870798ae9d8e04914aee3a5c43a9b636a353702bcd244a99055344
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.10.6 Linux/5.15.62-1-MANJARO

Security for djib 0.1.2

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.1.2 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