Skip to main content

ansible-vault

This is not an official Ansible project.

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

test Coverage Status PyPI - Version PyPI - Python Version ansible-core Support Version GitHub License


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.


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)

Source distribution for ansible-vault 4.1.0
File Size Uploaded
ansible_vault-4.1.0.tar.gz 15.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ansible-vault 4.1.0
File Interpreter ABI Platform
ansible_vault-4.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

4.1.0 This release

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.1.0

1 release file

2.0.0

1 release file

1.2.0

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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