Skip to main content

A pub-sub client library for Multi-messenger Astrophysics

Project description

Hop Client

hop-client is a pub-sub client library for Multimessenger Astrophysics.

Quickstart

Publish a GCN to Kafka:

hop publish kafka://hostname:port/gcn mygcn.gcn3

Subscribe to the earliest offset of a Kafka topic and print to stdout:

hop subscribe kafka://hostname:port/gcn -e

An example RFC 822 formatted GCN circular (example.gcn3) is provided in tests/data.

Client configuration properties can be passed to hop publish via -X property=value or in a configuration file specified by -F <config-file>, mimicking the behavior of kafkacat. This can be used to connect to a Kafka broker with SSL authentication enabled, for example.

Installation

You can install hop either via pip, conda, or from source.

To install with pip:

pip install -U hop-client

To install with conda, you must use the channel from the SCiMMA Anaconda organization:

conda install --channel scimma hop-client

To install from source:

tar -xzf hop-client-x.y.z.tar.gz
cd hop-client-x.y.z
python setup.py install

Development

A Makefile is provided to ease in testing, deployment and generating documentation.

A list of commands can be listed with make help.

In addition, two extras are provided when installing the scimma client that installs the required test and documentation libraries:

pip install -U hop-client[dev,docs]

To mark a new version, use Github tags to mark your commit with a semver version:

git tag v0.0.1

To release a new version and upload to package repositories, push your tag after pushing your commit:

git push --tags

Project details


Download files

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

Source Distribution

hop-client-0.0.4a8.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

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

hop_client-0.0.4a8-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file hop-client-0.0.4a8.tar.gz.

File metadata

  • Download URL: hop-client-0.0.4a8.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for hop-client-0.0.4a8.tar.gz
Algorithm Hash digest
SHA256 fe8abb4c0c46c42edbf222319cb8d634639823639849f4652ef118fcffb99a87
MD5 238f6f8762fac2f37c2195167b021fce
BLAKE2b-256 6f76181c2f5c7a1ee39f71f396f7c07381804e7c4db65d0f7485f3a83c9f2506

See more details on using hashes here.

File details

Details for the file hop_client-0.0.4a8-py3-none-any.whl.

File metadata

  • Download URL: hop_client-0.0.4a8-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for hop_client-0.0.4a8-py3-none-any.whl
Algorithm Hash digest
SHA256 1ecc1160e81ea6a5c7a80be83685a34b3ed706eec565ff25e08d984d9e0a3a0e
MD5 c791c367eafa4d20ff636127d50852f3
BLAKE2b-256 2d58c6e83e013324ff3bfab4c1f8a684e06973ff27b043c44423fbcd962400bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page