Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

volttron-lib-auth

Prototype authentication classes for volttron authentication, authorization and auth service.

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).

Metadata

Release files for volttron-lib-auth 2.0.0rc13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for volttron-lib-auth 2.0.0rc13
File Size Uploaded Provenance Actions
volttron_lib_auth-2.0.0rc13.tar.gz 23.6 kB Without provenance Details for volttron_lib_auth-2.0.0rc13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for volttron-lib-auth 2.0.0rc13
File Interpreter ABI Platform Actions
volttron_lib_auth-2.0.0rc13-py3-none-any.whl Python 3 none any Details for volttron_lib_auth-2.0.0rc13-py3-none-any.whl

Total release size: 50.3 kB

Release files / volttron_lib_auth-2.0.0rc13.tar.gz

Download URL volttron_lib_auth-2.0.0rc13.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
18b445f1158ce545947301d49df15cebea28564bc349b7ee4d34b79cc1be746f
BLAKE2b-256 checksum
How to use checksums
4d5c0d02933c461757d711556fed7dc316ea6ae9484c4e93461fd04004664aec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.10.22 Linux/6.8.0-1064-azure

Release files / volttron_lib_auth-2.0.0rc13-py3-none-any.whl

Download URL volttron_lib_auth-2.0.0rc13-py3-none-any.whl
Size 26.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c8a5563259ad04f688e4abc329f0b1adc1ee6093c6fbc7d1da8e856c6930ffb
BLAKE2b-256 checksum
How to use checksums
6bbc2d8ff577c6df44a0038e9f839c5e74e8bca0cd047db65fc0140b7c129dcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.10.22 Linux/6.8.0-1064-azure

Security for volttron-lib-auth 2.0.0rc13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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