$npx skillfedfor your agent

ansible-vault

R/W an ansible-vault yaml file

With conditionsPyPI CryptographyReleased May 2025204.5K downloads / moGPL-3.0-or-laterPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ansible_vault-4.1.0-py3-none-any.whl
v4.1.0 · released 2025-05-15 · 2 runtime deps: ansible-core, PyYAML

Yes, if you need to work with Ansible vault files from Python code. The package is actively maintained, has low install friction, and no known vulnerabilities. However, the GPL-3.0-or-later copyleft license means you cannot use it in proprietary closed-source projects without licensing the entire work under GPL.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction installation with only two runtime dependencies (ansible-core and PyYAML).
  • Actively maintained with a recent commit in April 2026 and stable production status.

License · maintenance · safety

GPL-3.0-or-later (copyleft) — Licensed under GPL-3.0-or-later (copyleft). Any derivative work or distribution must also be licensed under a compatible GPL version, which may restrict use in proprietary projects.

last release 2025-05-15 (456 days) · last repo commit 2026-04-05 · 54 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 204,499 downloads/mo, #9,605 on PyPI

Verify before relying

pip install ansible-vault

from ansible_vault import Vault

vault = Vault('password')
data = vault.load(open('vault.yml').read())
vault.dump(data, open('vault.yml', 'w'))
  • Whether the package works with Ansible versions beyond those implied by ansible-core dependency
  • Performance characteristics when handling large vault files
  • Whether password handling supports environment variables or external key management systems
Same gist for agents: .md · .json

What it is and what it does

ansible-vault is a Python library for reading and writing Ansible vault-encrypted YAML files outside of the Ansible CLI. It wraps the vault encryption/decryption functionality, letting you load encrypted vault data into Python objects and serialize modified data back to encrypted vault format.

The package depends on ansible-core and PyYAML, making it suitable for automation scripts, configuration management tools, or applications that need to work with Ansible vault files programmatically. It's been actively maintained since 2015 and is marked production-stable, with recent updates through 2026.

Use it for

  • Decrypt Ansible vault files in Python scripts to access secrets without invoking the Ansible CLI
  • Automate vault file updates by loading, modifying, and re-encrypting YAML configuration data
  • Integrate Ansible vault decryption into CI/CD pipelines or deployment automation tools
  • Build configuration management tools that need to read and write encrypted Ansible vault data

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to work with Ansible vault files from Python code.

The package is actively maintained, has low install friction, and no known vulnerabilities. However, the GPL-3.0-or-later copyleft license means you cannot use it in proprietary closed-source projects without licensing the entire work under GPL.

Install

ansible-vault on PyPI

Before you install

Low friction installation with only two runtime dependencies (ansible-core and PyYAML). Actively maintained with a recent commit in April 2026 and stable production status.

License in practice

Licensed under GPL-3.0-or-later (copyleft). Any derivative work or distribution must also be licensed under a compatible GPL version, which may restrict use in proprietary projects.

Quickstart

pip install ansible-vault

from ansible_vault import Vault

vault = Vault('password')
data = vault.load(open('vault.yml').read())
vault.dump(data, open('vault.yml', 'w'))

Verify before relying

  • Whether the package works with Ansible versions beyond those implied by ansible-core dependency
  • Performance characteristics when handling large vault files
  • Whether password handling supports environment variables or external key management systems

Package facts

LicenseGPL-3.0-or-later copyleft
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
ansible-corePyYAML
MaintenanceActively maintained 456 days since the last release
Last repo commit
First released
Downloads204,499 / month, #9,605 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Evidence: ansible_vault-4.1.0-py3-none-any.whl

Tags

Capabilities
ansible vault yaml encryptionread write encrypted ansible vaultansible vault python libraryvault file encryption decryptionansible vault password protection
Topics
ansible-integrationsecrets-managementencryption

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “ansible vault yaml encryption”

  • ansible-vaultReads and writes Ansible vault-encrypted YAML files programmatically,…
  • hvachvac is a Python client library for HashiCorp Vault that enables…
  • skyflowA Python SDK for securely integrating with Skyflow Vault to tokenize,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Cryptography packages

certifi Worth it
PyPI · Cryptography · released Jul 2026

Certifi provides Mozilla's curated collection of root SSL certificates for Python applications to validate TLS hosts and verify certificate trustworthiness.

MPL-2.0pure Python · 3.7+
1.9Bdownloads / mo
cryptography Worth it
PyPI · Cryptography · released Jul 2026

cryptography provides cryptographic recipes and low-level primitives for symmetric encryption, message digests, key derivation, and other common cryptographic algorithms in Python.

Apache-2.0 OR BSD-3-Clausecompiled wheel
1.5Bdownloads / mo
rsa Skip
PyPI · Cryptography · released Apr 2025

Pure-Python RSA encryption, decryption, signing, and key generation following PKCS#1 v1.5, with command-line and library interfaces.

Apache-2.0pure Pythonabandoned
299.6Mdownloads / mo
pyOpenSSL With conditions
PyPI · Python Modules · released Aug 2026

pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.

Apache-2.0pure Python · 3.9+
294.2Mdownloads / mo
azure-identity Worth it
PyPI · Cryptography · released Mar 2026

Provides Microsoft Entra ID token-based authentication for Azure SDK clients through a set of TokenCredential implementations that handle OAuth flows and managed identity support.

license unclearpure Python · 3.9+
247.2Mdownloads / mo
PyNaCl Worth it
PyPI · Cryptography · released Jan 2026

PyNaCl provides Python bindings to libsodium for digital signatures, secret-key and public-key encryption, hashing, message authentication, and password-based key derivation.

Apache-2.0compiled wheel · 3.8+
246.6Mdownloads / mo

See also pyAesCrypt · pyzipper · crypto · kasa-crypt · aws-encryption-sdk-cli · dynamodb-encryption-sdk · onepassword · keyrings.cryptfile · msoffcrypto-tool · dynaconf