streambricks 0.2.19__tar.gz → 0.2.20__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.
- {streambricks-0.2.19 → streambricks-0.2.20}/PKG-INFO +3 -1
- {streambricks-0.2.19 → streambricks-0.2.20}/pyproject.toml +3 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/__init__.py +1 -1
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/decorator.py +1 -1
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/helpers.py +0 -6
- {streambricks-0.2.19 → streambricks-0.2.20}/.copier-answers.yml +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/.github/FUNDING.yml +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/.github/copilot-instructions.md +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/.github/dependabot.yml +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/.github/workflows/build.yml +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/.github/workflows/documentation.yml +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/.gitignore +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/.pre-commit-config.yaml +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/LICENSE +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/README.md +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/docs/.empty +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/docs/profile_widget.md +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/duties.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/mkdocs.yml +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/overrides/_dummy.txt +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/__init__.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/models.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/profile_widget.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/helpers.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/py.typed +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/sidebar.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/state.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/__init__.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/bind_kwargs.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/image_capture.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_selector.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/__init__.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/field_metadata_renderers.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/main.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/type_renderers.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/multi_select.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/sequence.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/type_helpers.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/tests/__init__.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/tests/conftest.py +0 -0
- {streambricks-0.2.19 → streambricks-0.2.20}/tests/test_widgets.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: streambricks
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.20
|
|
4
4
|
Summary: Streamlit widgets and helpers
|
|
5
5
|
Project-URL: Documentation, https://phil65.github.io/streambricks/
|
|
6
6
|
Project-URL: Source, https://github.com/phil65/streambricks
|
|
@@ -46,6 +46,8 @@ Classifier: Typing :: Typed
|
|
|
46
46
|
Requires-Python: >=3.12
|
|
47
47
|
Requires-Dist: fieldz>=0.1.0
|
|
48
48
|
Requires-Dist: streamlit>=1.43.2
|
|
49
|
+
Provides-Extra: auth
|
|
50
|
+
Requires-Dist: authlib; extra == 'auth'
|
|
49
51
|
Description-Content-Type: text/markdown
|
|
50
52
|
|
|
51
53
|
# StreamBricks
|
|
@@ -59,7 +59,7 @@ def requires_login(
|
|
|
59
59
|
def decorator(fn: Callable[P, T]) -> Callable[P, T]:
|
|
60
60
|
@functools.wraps(fn)
|
|
61
61
|
def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
|
|
62
|
-
if hasattr(st, "
|
|
62
|
+
if hasattr(st, "user") and st.user.is_logged_in:
|
|
63
63
|
return fn(*args, **kwargs)
|
|
64
64
|
|
|
65
65
|
# Handle unauthorized access
|
|
@@ -15,12 +15,6 @@ def _get_user_data() -> dict[str, Any] | None:
|
|
|
15
15
|
# Try stable version first
|
|
16
16
|
if hasattr(st, "user") and getattr(st.user, "is_logged_in", False): # pyright: ignore
|
|
17
17
|
return {**st.user} # pyright: ignore
|
|
18
|
-
|
|
19
|
-
# Fall back to experimental version
|
|
20
|
-
# if hasattr(st, "experimental_user") and getattr(st.experimental_user, "is_logged_in", False): # noqa: E501
|
|
21
|
-
if st.experimental_user and st.experimental_user.get("is_logged_in"):
|
|
22
|
-
return {**st.experimental_user}
|
|
23
|
-
|
|
24
18
|
return None
|
|
25
19
|
|
|
26
20
|
|
|
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
|
|
File without changes
|
{streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/type_renderers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|