Skip to main content

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.

Download files

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

Source Distribution

ubirch-python-utils-1.3.10.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ubirch_python_utils-1.3.10-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

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

Hashes for ubirch-python-utils-1.3.10.tar.gz
Algorithm Hash digest
SHA256 d355552f172931d95368418a620df2d8e238e54da34ec65b1e7046c87773b5c2
MD5 0192a7e47361dc08020ff9be4e485d07
BLAKE2b-256 670e84b2343a67ce80027f982916f40b1029022b39fa47237764cd52c26997af

See more details on using hashes here.

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

Hashes for ubirch_python_utils-1.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 57cbb37e03f6b03da166963ab59c45d3e8bcdb099d5be1eda9e3f4276a92a85f
MD5 3c4ecaa3cad46e746eb9159a420a4524
BLAKE2b-256 53f916c013ea40f6cf5264cf863e2941bf6ccdf6bc38fc38ee6fce35968653aa

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.10 This release

2 files

1.3.9

2 files

1.3.8

2 files

1.3.7

2 files

1.3.6

1 file

1.3.5

1 file

1.3.4.1

1 file

1.3.4

1 file

1.3.3

1 file

1.3.2

1 file

1.3.1

1 file

1.3

1 file

1.2.9.1

1 file

1.2.9

1 file

1.2.8

1 file

1.2.7

1 file

1.2.6

1 file

1.2.5

1 file

1.2.4

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.0

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page