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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1be98173e44e708c7173ffafeeddda2a7ff410a71e80ab91ee38082875625620 |
|
MD5 | 793168ffc96af0a553137781879032f4 |
|
BLAKE2b-256 | c9cec0c496d479ea9001f7ea11040cda26cb2c43f639b50279053da0bf78906f |
Close
Hashes for ubirch_python_utils-1.3.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5bebc42c31b22545dd6c278fe69f98b40ff1d3612885dddd58c49c288799b35 |
|
MD5 | 42a63f2f06c50bac94fc0d7504850223 |
|
BLAKE2b-256 | e3adbb511f6552ef09e04b15a6d3e2f4f9a0d690c311d0228e7635776d7d900c |