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
File details
Details for the file ubirch-python-utils-1.3.10.tar.gz
.
File metadata
- Download URL: ubirch-python-utils-1.3.10.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d355552f172931d95368418a620df2d8e238e54da34ec65b1e7046c87773b5c2 |
|
MD5 | 0192a7e47361dc08020ff9be4e485d07 |
|
BLAKE2b-256 | 670e84b2343a67ce80027f982916f40b1029022b39fa47237764cd52c26997af |
File details
Details for the file ubirch_python_utils-1.3.10-py3-none-any.whl
.
File metadata
- Download URL: ubirch_python_utils-1.3.10-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57cbb37e03f6b03da166963ab59c45d3e8bcdb099d5be1eda9e3f4276a92a85f |
|
MD5 | 3c4ecaa3cad46e746eb9159a420a4524 |
|
BLAKE2b-256 | 53f916c013ea40f6cf5264cf863e2941bf6ccdf6bc38fc38ee6fce35968653aa |