Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ubirch-python-utils, version 1.3.10
Filename, size File type Python version Upload date Hashes
Filename, size ubirch_python_utils-1.3.10-py3-none-any.whl (9.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size ubirch-python-utils-1.3.10.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page