Metadata-Version: 2.1 Name: ansible-vault Version: 1.2.0 Summary: R/W an ansible-vault yaml file Home-page: https://github.com/tomoh1r/ansible-vault Author: Tomohiro NAKAMURA Author-email: quickness.net@gmail.com License: GPLv3 Platform: UNKNOWN Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 Classifier: Development Status :: 5 - Production/Stable Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3) Requires-Dist: ansible Provides-Extra: release Requires-Dist: twine ; extra == 'release' Provides-Extra: test Requires-Dist: pytest ; extra == 'test' ============= ansible-vault ============= .. image:: https://travis-ci.org/tomoh1r/ansible-vault.svg?branch=master :target: https://travis-ci.org/tomoh1r/ansible-vault This project aim to R/W an ansible-vault yaml file. **This is not Ansible official project.** You can install with pip. .. code-block:: console $ pip install ansible-vault When you have an ansible-vault file, then you can read file. See below. .. code-block:: python 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. .. code-block:: python 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))