ansible-vault
This is not an official Ansible project.
This project aim to R/W an ansible-vault yaml file.
Quick Start
You can install with pip.
pip install ansible-vault
When you have an ansible-vault file, then you can read file. See below.
from ansible_vault import Vault
vault = Vault('password')
data = vault.load(open('vault.yml').read())
When you have to write data, then you can write data to file. See below.
from ansible_vault import Vault
vault = Vault('password')
vault.dump(data, open('vault.yml', 'w'))
# also you can get encrypted text
print(vault.dump(data))
Contributing
See CONTRIBUTING.md.
Links
Metadata
Release files for ansible-vault 4.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ansible_vault-4.1.0.tar.gz | 15.9 kB | Without provenance | Details for ansible_vault-4.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ansible_vault-4.1.0-py3-none-any.whl | Python 3 | none | any | Details for ansible_vault-4.1.0-py3-none-any.whl |
Total release size: 31.9 kB
Release files / ansible_vault-4.1.0.tar.gz
| Download URL | ansible_vault-4.1.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e985a9329e4728961d7a00f62412fa8ec246a4d832ad6e6d158165e0026529b
|
|
BLAKE2b-256 checksum How to use checksums |
3360bd340a38b7d9fd4fcdd2df4a2b21f5e23af0481c5424c07d30668a7d6ed8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / ansible_vault-4.1.0-py3-none-any.whl
| Download URL | ansible_vault-4.1.0-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae2e194bb68cc94471d0cdba0705cea9390d9c3dfe6299eeb1d4ee36af602bd9
|
|
BLAKE2b-256 checksum How to use checksums |
9e0b1c4e83665280bde1101862635ee6d69b43886002b30128d2fe82ba63cab7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for ansible-vault 4.1.0
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.