A python utils ubirch for ubirch anchoring services.
Project description
ubirch library for ubirch anchoring services
This library contains several useful tools used to connect to a SQS server and anchor messages retrieved from a queue to the IOTA Tangle or the Ethereum Blockchain.
Usage
Configuration, connection to a SQS server and retrieving queues.
To set up the different arguments needed to connect to the SQS Server and to access the ETH Wallet.
from ubirch.anchoring import *
args = set_arguments(servicetype='ethereum') # Or 'IOTA or 'MultiChain'
#To access the Kafka server
port = args.port
#To unlock your wallet (if servicename=='ethereum')
password = args.pwd
keyfile = args.keyfile
queue1 = getQueue('queue1', url, region, aws_secret_access_key, aws_access_key_id)
Polling a queue and processing its messages
Please see ubirch-ethereum-service or ubirch-iota-service to how this library is put into action.
Testing
Unit tests are added to test the functionality of all objects provided in this library.
python3 -m unittest discover
License
This library is publicized under the Apache License 2.0.
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
Close
Hashes for ubirch-python-utils-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d4fa6d3e20273829b5c4b286f6d5852bc01468e64936a6fc5cfecd5a1e9fcca |
|
MD5 | 167fb61b7d3aecdc190598a38b2ee601 |
|
BLAKE2b-256 | f73769253c6f176f409972bede869d41a30b07b8075e6d98a7e79114ebfefb71 |