databutton 0.38.13__tar.gz → 0.38.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {databutton-0.38.13 → databutton-0.38.15}/PKG-INFO +1 -1
- {databutton-0.38.13 → databutton-0.38.15}/databutton/secrets/secrets.py +7 -7
- {databutton-0.38.13 → databutton-0.38.15}/databutton/version.py +1 -1
- {databutton-0.38.13 → databutton-0.38.15}/pyproject.toml +1 -1
- {databutton-0.38.13 → databutton-0.38.15}/LICENSE +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/README.md +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/cachetools.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/experimental/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/experimental/auth/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/experimental/auth/get_user.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/experimental/folder/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/experimental/folder/folder.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/internal/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/internal/auth.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/internal/byteutils.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/internal/dbapiclient.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/internal/httpxclient.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/internal/performedby.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/internal/retries.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/jobs/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/jobs/run.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/notify/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/notify/email.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/notify/send.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/pydantic_v1/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/secrets/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/storage/__init__.py +0 -0
- {databutton-0.38.13 → databutton-0.38.15}/databutton/storage/storage.py +0 -0
@@ -20,12 +20,12 @@ def secret_key_is_valid(key: str) -> bool:
|
|
20
20
|
|
21
21
|
|
22
22
|
def key_not_found_msg(name: str) -> str:
|
23
|
-
return f"Secret named {name} not found in this
|
23
|
+
return f"Secret named {name} not found in this app"
|
24
24
|
|
25
25
|
|
26
26
|
@default_dbapi_retry
|
27
27
|
def put(name: str, value: str | bytes):
|
28
|
-
"""Add or update a new secret to your
|
28
|
+
"""Add or update a new secret to your app."""
|
29
29
|
|
30
30
|
if not secret_key_is_valid(name):
|
31
31
|
raise ValueError(invalid_secret_key_error_message)
|
@@ -53,7 +53,7 @@ def put(name: str, value: str | bytes):
|
|
53
53
|
|
54
54
|
@default_dbapi_retry
|
55
55
|
def delete(name: str) -> bool:
|
56
|
-
"""Delete a secret from your
|
56
|
+
"""Delete a secret from your app.
|
57
57
|
|
58
58
|
Returns True if secret was deleted,
|
59
59
|
returns False if it was not found,
|
@@ -77,7 +77,7 @@ def delete(name: str) -> bool:
|
|
77
77
|
|
78
78
|
@default_dbapi_retry
|
79
79
|
def _get_base64(name: str) -> str:
|
80
|
-
"""Get value of named secret in your
|
80
|
+
"""Get value of named secret in your app.
|
81
81
|
|
82
82
|
Returns urlsafe base64 encoding of raw bytes value.
|
83
83
|
"""
|
@@ -98,7 +98,7 @@ def _get_base64(name: str) -> str:
|
|
98
98
|
|
99
99
|
|
100
100
|
def get(name: str) -> str:
|
101
|
-
"""Get value of named secret in your
|
101
|
+
"""Get value of named secret in your app.
|
102
102
|
|
103
103
|
Returns value as a str, assuming the secret is
|
104
104
|
an utf-8 encoded string.
|
@@ -107,7 +107,7 @@ def get(name: str) -> str:
|
|
107
107
|
|
108
108
|
|
109
109
|
def get_as_bytes(name: str) -> bytes:
|
110
|
-
"""Get value of named secret in your
|
110
|
+
"""Get value of named secret in your app.
|
111
111
|
|
112
112
|
Returns value as a str, assuming the secret is
|
113
113
|
an utf-8 encoded string.
|
@@ -117,7 +117,7 @@ def get_as_bytes(name: str) -> bytes:
|
|
117
117
|
|
118
118
|
@default_dbapi_retry
|
119
119
|
def get_names() -> List[str]:
|
120
|
-
"""Get list of all secret names in your
|
120
|
+
"""Get list of all secret names in your app."""
|
121
121
|
res = get_dbapi_client().get("/secrets/list")
|
122
122
|
|
123
123
|
if res.status_code == http.HTTPStatus.OK:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|