Python client for interacting with the Pactus blockchain via gRPC
Project description
pactus-grpc
Python client for interacting with the Pactus blockchain via gRPC.
Installation
pip install pactus-grpc
Usage
import asyncio
import grpc
from pactus_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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pactus_grpc-1.9.3.tar.gz.
File metadata
- Download URL: pactus_grpc-1.9.3.tar.gz
- Upload date:
- Size: 25.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
297dac59f00a15bcdae35187324e0e8ec1e83e97f79f463f1561c84509099e8a
|
|
| MD5 |
514fd5ff16d3252cc385bc861fbbc585
|
|
| BLAKE2b-256 |
c15fe4d96e939255a9a7de8810f7e3ccfce176a84e49a5b3f4720ef5bf14776b
|
Provenance
The following attestation bundles were made for pactus_grpc-1.9.3.tar.gz:
Publisher:
packager.yml on pactus-project/pactus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pactus_grpc-1.9.3.tar.gz -
Subject digest:
297dac59f00a15bcdae35187324e0e8ec1e83e97f79f463f1561c84509099e8a - Sigstore transparency entry: 575622199
- Sigstore integration time:
-
Permalink:
pactus-project/pactus@771cf2c4d87b138d14057a10eb1d38ddb976b94d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pactus-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
packager.yml@771cf2c4d87b138d14057a10eb1d38ddb976b94d -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file pactus_grpc-1.9.3-py3-none-any.whl.
File metadata
- Download URL: pactus_grpc-1.9.3-py3-none-any.whl
- Upload date:
- Size: 32.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f2188543a1a0d52b142d024a6d6cadb245abcb74693eddfa79e2b66ec75d6e2
|
|
| MD5 |
e873bd45566b81efe114c247723d8337
|
|
| BLAKE2b-256 |
9514451420445f75a93b3385f353b342b606a9ae8b612407b45abde61cade68f
|
Provenance
The following attestation bundles were made for pactus_grpc-1.9.3-py3-none-any.whl:
Publisher:
packager.yml on pactus-project/pactus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pactus_grpc-1.9.3-py3-none-any.whl -
Subject digest:
3f2188543a1a0d52b142d024a6d6cadb245abcb74693eddfa79e2b66ec75d6e2 - Sigstore transparency entry: 575622206
- Sigstore integration time:
-
Permalink:
pactus-project/pactus@771cf2c4d87b138d14057a10eb1d38ddb976b94d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pactus-project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
packager.yml@771cf2c4d87b138d14057a10eb1d38ddb976b94d -
Trigger Event:
workflow_run
-
Statement type: