Skip to main content

End-to-End Test

Azure KeyVault CLI

This is a CLI tool to interact with an Azure KeyVault. You can use it to easily list and show secrets. Additionally, you can use it to check the expiration date of all the secrets in your KeyVault.

Installation

Install with pip

To install the latest stable version from PyPI, run:

pip3 install azure-keyvault-cli

To install the latest version (potentially not stable) from TestPyPI, run:

pip3 install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple azure-keyvault-cli

If you want to have it globally available, make sure to run it in your global python environment.

Contributing

Installation

  1. Install poetry
  2. Run: poetry install

If you get an error No such file or directory: 'python'. Try settings an alias for python3:

alias python=python3

or activate an existing virtual environment.

Usage

Make sure the right virtual env is activated, then you can use the local version of the cli by running, e.g.:

azkv --help

Testing

To run the tests, run:

poetry run pytest
# with coverage
poetry run pytest --cov=cli --cov-report=xml --cov-report=term-missing

Formatting

To format the code, run:

poetry run black .

Linting

To lint the code, run:

poetry run ruff .

Releasing

Bump version

First, bump the version in the pyproject.toml file. You can do this manually or by running:

poetry version <major|minor|patch>

Then commit the changes and push them to the remote repository. Additionally, add a tag to the commit with the new version number. You can do this by running:

version=$(poetry version --short)
git checkout -b release-${version}
git add pyproject.toml
git commit -m "Bump version to ${version}"
git push --set-upstream origin release-${version}
git tag -a ${version} -m "Release ${version}"
git push origin ${version}

Create pull request

Create a pull request from the release branch to the main branch. The pull request will trigger the test workflow. The workflow will run the tests and check the formatting and linting of the code. You can create a pull request by running:

version=$(poetry version --short)
gh pr create --title "Release ${version}" --body "Release ${version}" --base main --head release-${version}

Create release

After the pull request has been merged, the release workflow will be triggered. The workflow will create a new release and publish the package to PyPI. Be aware that this workflow needs to be manually approved before it will be executed.

Metadata

Release files for azure-keyvault-cli 0.3.3

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

Source distribution (sdist)

Source distribution for azure-keyvault-cli 0.3.3
File Size Uploaded
azure_keyvault_cli-0.3.3.tar.gz 9.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for azure-keyvault-cli 0.3.3
File Interpreter ABI Platform
azure_keyvault_cli-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 27.0 kB

Release files / azure_keyvault_cli-0.3.3.tar.gz

Download URL azure_keyvault_cli-0.3.3.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3ed37a275e99d190d88926a08cafadd7a8c947a3510b789fa422fbe0c1d0a4d7
BLAKE2b-256 checksum
How to use checksums
cb0de189df81563895a0acecb7e4ca54eb2b6d6fc250f57e8cbabf6c7b250d8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1022-azure

Release files / azure_keyvault_cli-0.3.3-py3-none-any.whl

Download URL azure_keyvault_cli-0.3.3-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12479a0278de5f32145f691189f9308d5b3891ec35eb0f7a6c39631d35c59dc6
BLAKE2b-256 checksum
How to use checksums
58ec19ea91e0ffe4dc6be8cc1456985ca574b7ab6d4af447df407b844793348c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1022-azure

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

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