Skip to main content

A NATS helper used by Rancher Opni

Project description


This repo contains shared code used to build the pypi package which is used in several opni services


  1. have your nats server running in another terminal. For Mac user, you can do:
brew install nats-server
  1. test the script: (assume your nats server is running on nats://
export NATS_SERVER_URL="nats://"
cd src/opni_nats


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

opni-nats-test- (8.6 kB view hashes)

Uploaded source

Built Distribution

opni_nats_test- (9.3 kB view hashes)

Uploaded py3

Supported by

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