From d0292cb554ae2b0f5de56ca582898af105402474 Mon Sep 17 00:00:00 2001 From: Spencer McCreary Date: Mon, 8 Mar 2021 13:30:08 -0500 Subject: [PATCH] add: example --- README.rst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index b9665ec..80382ad 100644 --- a/README.rst +++ b/README.rst @@ -26,11 +26,19 @@ PySecretary is a python secrets library * Free software: MIT license * Documentation: https://pysecretary.readthedocs.io. - -Features +Examples -------- +.. code-block:: python + + import os + from pysecretary import pysecretary + + os.environ["PYSECRETARY"] = "test" + value = pysecretary.get("env://PYSECRETARY") + print(value) -* TODO - vault integration + value = pysecretary.get("env://PATH") + print(value) Credits -------