databutton 0.38.13__py3-none-any.whl → 0.38.14__py3-none-any.whl

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.
@@ -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 data app"
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 data app."""
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 data app.
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 data app.
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 data app.
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 data app.
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 data app."""
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:
databutton/version.py CHANGED
@@ -5,4 +5,4 @@ This module contains project version information.
5
5
  .. moduleauthor:: Databutton <support@databutton.com>
6
6
  """
7
7
 
8
- __version__ = "0.38.13"
8
+ __version__ = "0.38.14"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: databutton
3
- Version: 0.38.13
3
+ Version: 0.38.14
4
4
  Summary: The CLI for databutton.com
5
5
  License: Databutton
6
6
  Author: Databutton
@@ -19,11 +19,11 @@ databutton/notify/email.py,sha256=b4i4T4R5tBBNk5I-tv8kFWwBfju_yFPPRCRzHsLEP8o,12
19
19
  databutton/notify/send.py,sha256=A5XACf2U7eK5JH-sUWt4O4GWYq4dm40d6vatIjhw-8k,762
20
20
  databutton/pydantic_v1/__init__.py,sha256=J6d7HXLUYp4FcMS3ucvCcLbgFFxSyp8LM8vuULhN2r0,852
21
21
  databutton/secrets/__init__.py,sha256=sI0okrfRBs2l5tcLTrKc9uUfPVVRMM9D7WED8p226tI,128
22
- databutton/secrets/secrets.py,sha256=pehXsD09iKTxHaNQJ6awvIHXgRXBJrf4Xhrc11ZUeOk,3427
22
+ databutton/secrets/secrets.py,sha256=8Dfxe3jB_THnSwYvk-XbIOJ9u8YjtC2Jx4bDDd0kYcs,3392
23
23
  databutton/storage/__init__.py,sha256=7ZNd4eQQ7lYYIe1MqCuFbFF1aAVCuj2c_zmJfaPVlDY,252
24
24
  databutton/storage/storage.py,sha256=x9LTyoAfLTWFCoy7XhA0tVUTkjldx8gYax09RkhMR1Q,20369
25
- databutton/version.py,sha256=JWvK1Duzn6Yqd3xXWLRhGTEYjxyUMj1cE7r9L-j766o,176
26
- databutton-0.38.13.dist-info/LICENSE,sha256=c7h4pcVZapFEmqWoRTRv_S1P_aibrtDobqmlR-QtMUk,45
27
- databutton-0.38.13.dist-info/METADATA,sha256=lTtCm2NYX37KpCuHwp6jdid9iVbiv7rMPfeSsNUudKk,2733
28
- databutton-0.38.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
29
- databutton-0.38.13.dist-info/RECORD,,
25
+ databutton/version.py,sha256=vSzVbssX1byPKeIaqXvxtYcnTiduiQrKYHwJks6wXwY,176
26
+ databutton-0.38.14.dist-info/LICENSE,sha256=c7h4pcVZapFEmqWoRTRv_S1P_aibrtDobqmlR-QtMUk,45
27
+ databutton-0.38.14.dist-info/METADATA,sha256=7CEpBbnjs_7nUQkd4iQaReRlYCDdiOfp4Zpisu1449Y,2733
28
+ databutton-0.38.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
29
+ databutton-0.38.14.dist-info/RECORD,,