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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b56823306d820f1fef8baa393e31396dcdf338154d87f256ac0d7c8279f67ea6 |
|
MD5 | 84c19994555b2ab22b6353ad495fb614 |
|
BLAKE2b-256 | 7244f41f1c23e35c914f90c63a6a6a1c4592e5958b29a8b23d7a888177b63348 |
Close
Hashes for ubirch_python_utils-1.3.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b179bdf857d6bc1804bc2b58ff4d251db7f5fb835e1ee2cf87317c9ad45d24 |
|
MD5 | df3307c4f05955e7f2b853ca7c1266bf |
|
BLAKE2b-256 | c4835575ad0883203dfb8b630f3919f06ef8211ce294613ee0c6f503970e2235 |