Skip to main content

A NATS helper used by Aity Monty

Project description

opni-nats-wrapper

This repo contains shared code used to build the pypi package https://pypi.org/project/monty-nats/ which is used in several opni services

Testing

  1. have your nats server running in another terminal. For Mac user, you can do:
brew install nats-server
nats-server
  1. test the script: (assume your nats server is running on nats://0.0.0.0:4222)
export NATS_SERVER_URL="nats://0.0.0.0:4222"
export NATS_USERNAME=
export NATS_PASSWORD=
cd src/monty_nats
python nats_wrapper.py

Contributing

We use pre-commit for formatting auto-linting and checking import. Please refer to installation to install the pre-commit or run pip install pre-commit. Then you can activate it for this repo. Once it's activated, it will lint and format the code when you make a git commit. It makes changes in place. If the code is modified during the reformatting, it needs to be staged manually.

# Install
pip install pre-commit

# Install the git commit hook to invoke automatically every time you do "git commit"
pre-commit install

# (Optional)Manually run against all files
pre-commit run --all-files

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

monty_nats-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

monty_nats-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file monty_nats-0.1.0.tar.gz.

File metadata

  • Download URL: monty_nats-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for monty_nats-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b1aa947e5c4521e7783628803e587b3da09909c1b036a6b53fd383c2c26909f
MD5 de9784c1d49dc0dc302d6af3b89bf5ac
BLAKE2b-256 6b6aab43249abd525015101c3d2008e5bd672f17a0d144c903e4e2f18d2c1a4e

See more details on using hashes here.

File details

Details for the file monty_nats-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: monty_nats-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for monty_nats-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d167e5c346d54bdd8f25b7baf900ffdee4a19b41c2e6156ac9e7ed13656cab36
MD5 c81031f8b1a9cba84e11667800696eea
BLAKE2b-256 18c69caaa5616f71081b2e6794177552ae97a36c5e39e4580bc7071501ab4432

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