Skip to main content

Python client for interacting with the Aerium blockchain via gRPC

Project description

aerium-grpc

Python client for interacting with the Aerium blockchain via gRPC.

Installation

pip install aerium-grpc

Usage

import asyncio
import grpc
from aerium_grpc import blockchain_pb2_grpc, blockchain_pb2, network_pb2_grpc, network_pb2


async def main():
    channel = grpc.aio.insecure_channel("127.0.0.1:50051")
    blockchain_stub = blockchain_pb2_grpc.BlockchainStub(channel)
    blockchain_request = blockchain_pb2.GetBlockchainInfoRequest()
    blockchain_response = await blockchain_stub.GetBlockchainInfo(blockchain_request)
    print(blockchain_response)

    await channel.close()


if __name__ == "__main__":
    asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aerium_grpc-0.2.0.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aerium_grpc-0.2.0-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file aerium_grpc-0.2.0.tar.gz.

File metadata

  • Download URL: aerium_grpc-0.2.0.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aerium_grpc-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d62a215c1b6371c8e53ca4c43fcac81a1cd7b5ca76b34a1cede1b4e4788c80a2
MD5 1a9388d545d7ab0a01e21e68b6813dc4
BLAKE2b-256 7652e2e9deeed1ffb79ebb51c54d2d065e43ff085e7df3f23a73d9d218b98ba6

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerium_grpc-0.2.0.tar.gz:

Publisher: packager.yml on aerium-network/aerium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aerium_grpc-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: aerium_grpc-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aerium_grpc-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80d2440cff54e2a173037e73cf7079e19722cc13e9e3e662177bf4099e83ff91
MD5 952afa74cc86565d239ed0c3978e9cd6
BLAKE2b-256 a54945638b86e257f8b6ae8d7e2fc84fe81260b5646ac185953f606eb86e1108

See more details on using hashes here.

Provenance

The following attestation bundles were made for aerium_grpc-0.2.0-py3-none-any.whl:

Publisher: packager.yml on aerium-network/aerium

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page