Skip to main content

VOLTTRON zmq message bus implementation

Project description

volttron-lib-auth

VOLTTRON zmq message bus implementation

Prerequisites

  • Python 3.8
  • Poetry

Python

volttron-lib-auth requires Python 3.8 or above.

To install Python 3.8, we recommend using pyenv.

# install pyenv
git clone https://github.com/pyenv/pyenv ~/.pyenv

# setup pyenv (you should also put these three lines in .bashrc or similar)
export PATH="${HOME}/.pyenv/bin:${PATH}"
export PYENV_ROOT="${HOME}/.pyenv"
eval "$(pyenv init -)"

# install Python 3.8
pyenv install 3.8.10

# make it available globally
pyenv global system 3.8.10

Poetry

This project uses poetry to install and manage dependencies. To install poetry, follow these instructions.

Installation and Virtual Environment Setup

Set the environment to be in your project directory:

poetry config virtualenvs.in-project true

If you want to install all your dependencies, including dependencies to help with developing your agent, run this command:

poetry install

If you want to install only the dependencies needed to run your agent, run this command:

poetry install --no-dev

Activate the virtual environment:

poetry shell

Git Setup

  1. To use git to manage version control, create a new git repository in your local agent project.
git init
  1. Then create a new repo in your Github or Gitlab account. Copy the URL that points to that new repo in your Github or Gitlab account. This will be known as our 'remote'.

  2. Add the remote (i.e. the new repo URL from your Github or Gitlab account) to your local repository. Run the following command:

git remote add origin <my github/gitlab URL>

When you push to your repo, note that the default branch is called 'main'.

Publishing to PyPi

Publishing your Agent module to PyPi is automated through the continuous integration workflow provided in ~/.github/workflows/publish_to_pypi.yml. You can update that Github Workflow with your credentials to ensure that publishing to PyPi will succeed. The default behavior of that workflow is to publish to PyPi when a release has been published. If you want to change this behavior, you can modify the workflow to publish to PyPi based on whatever desired event; see Github Workflows docs on how to change the events that trigger a workflow.

Optional Configurations

Precommit

Install pre-commit hooks:

pre-commit install

To run pre-commit on all your files, run this command:

pre-commit run --all-files

If you have precommit installed and you want to ignore running the commit hooks every time you run a commit, include the --no-verify flag in your commit. The following is an example:

git commit -m "Some message" --no-verify

Documentation

To build the docs, navigate to the 'docs' directory and build the documentation:

cd docs
make html

After the documentation is built, view the documentation in html form in your browser. The html files will be located in ~<path to agent project directory>/docs/build/html.

PROTIP: To open the landing page of your documentation directly from the command line, run the following command:

open <path to agent project directory>/docs/build/html/index.html

This will open the documentation landing page in your default browsert (e.g. Chrome, Firefox).

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

volttron_lib_zmq-2.0.0rc0.tar.gz (147.5 kB view details)

Uploaded Source

Built Distribution

volttron_lib_zmq-2.0.0rc0-py3-none-any.whl (168.5 kB view details)

Uploaded Python 3

File details

Details for the file volttron_lib_zmq-2.0.0rc0.tar.gz.

File metadata

  • Download URL: volttron_lib_zmq-2.0.0rc0.tar.gz
  • Upload date:
  • Size: 147.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for volttron_lib_zmq-2.0.0rc0.tar.gz
Algorithm Hash digest
SHA256 6f35798f08b3da11fc24dfdeb105a5587868479f46c734f1941a87c525588971
MD5 079c08a76a725f9379c8a3754e77a31a
BLAKE2b-256 0c875f090ac641d293a223209f2419de43592a19b6c4a45ac1a78136a77306f7

See more details on using hashes here.

File details

Details for the file volttron_lib_zmq-2.0.0rc0-py3-none-any.whl.

File metadata

  • Download URL: volttron_lib_zmq-2.0.0rc0-py3-none-any.whl
  • Upload date:
  • Size: 168.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for volttron_lib_zmq-2.0.0rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7725d1d621f14eb2342d70da97d36bd916507b2b895bee236ddc1cb9d699de7
MD5 d39cd5aa3a58007fbc783a78b2fec9f1
BLAKE2b-256 217d54f8ce9977d775ca50c809bd42e3ed72802f004cf4a2ba90319d5523876f

See more details on using hashes here.

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