Easily manage your JSON secrets in Google Secret Manager.
pip install cloudops-secret-manager-google
from cloudops.secret_manager.google import Secret
secret = Secret("your-project-id", "your-secret")
# Create your secret
secret.create()
# Push a new version of your secret
data = {
"key": "value"
}
secret.push(data)
# Pull dict
secret_data = secret.pull()