A python util for ubirch anchoring services.
Project description
ubirch library for ubirch anchoring services
This library contains several useful tools used to connect to a SQS or Kafka and anchor messages retrieved from a queue to the IOTA Tangle or the Ethereum Blockchain.
Usage
Configuration, connection to a Kafka 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_kafka import *
args = set_arguments(servicetype='ethereum') # Or 'IOTA'
#To access the Kafka server
port = args.port
#To unlock your wallet (if servicename=='ethereum')
password = args.pwd
keyfile = args.keyfile
queue1 = KafkaConsumer('queue1', bootstrap_servers=port)
Polling a topic 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
Built Distribution
Close
Hashes for ubirch-python-utils-1.3.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90414e975bb3e0ebe7ba4938b76716b0c6f53a750782d65400ba20bc9fb7719d |
|
MD5 | 8b135e36359bc3090588861222049e86 |
|
BLAKE2b-256 | 1ab9c8f8f78a1fb246d02914712f0fce4cb94f1cd68c953536fdba72ec032b58 |
Close
Hashes for ubirch_python_utils-1.3.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac058a1cef8a1cfceab252ac6084dad3183e23b4125ed4c26e1e1044bc6f48f9 |
|
MD5 | 91d0ef2509b2d6a27d6de25a0f7b081b |
|
BLAKE2b-256 | ef5d2cb6f463fa373ec93cca41a764cde18103c2c71900180236c14e3010366a |