Skip to main content

ansible-vault

This project aim to R/W an ansible-vault yaml file

(This package develop with Ansible version 1.9.1’s ansible-vault.)

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

Metadata

Release files for ansible-vault 1.0.2

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

Source distribution (sdist)

Source distribution for ansible-vault 1.0.2
File Size Uploaded Provenance Actions
ansible-vault-1.0.2.tar.gz 1.7 kB Without provenance Details for ansible-vault-1.0.2.tar.gz

Release files / ansible-vault-1.0.2.tar.gz

Download URL ansible-vault-1.0.2.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d8200beffcb4f4dd46cb846769a08370bc255998aac15aa2fc5692520c1fa658
BLAKE2b-256 checksum
How to use checksums
15eab521efdfe428203bcbd4e9d0e706209d07c2677571495c3612c7d4281a6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ansible-vault 1.0.2

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