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.
Files changed (41) hide show
  1. {streambricks-0.2.19 → streambricks-0.2.20}/PKG-INFO +3 -1
  2. {streambricks-0.2.19 → streambricks-0.2.20}/pyproject.toml +3 -0
  3. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/__init__.py +1 -1
  4. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/decorator.py +1 -1
  5. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/helpers.py +0 -6
  6. {streambricks-0.2.19 → streambricks-0.2.20}/.copier-answers.yml +0 -0
  7. {streambricks-0.2.19 → streambricks-0.2.20}/.github/FUNDING.yml +0 -0
  8. {streambricks-0.2.19 → streambricks-0.2.20}/.github/copilot-instructions.md +0 -0
  9. {streambricks-0.2.19 → streambricks-0.2.20}/.github/dependabot.yml +0 -0
  10. {streambricks-0.2.19 → streambricks-0.2.20}/.github/workflows/build.yml +0 -0
  11. {streambricks-0.2.19 → streambricks-0.2.20}/.github/workflows/documentation.yml +0 -0
  12. {streambricks-0.2.19 → streambricks-0.2.20}/.gitignore +0 -0
  13. {streambricks-0.2.19 → streambricks-0.2.20}/.pre-commit-config.yaml +0 -0
  14. {streambricks-0.2.19 → streambricks-0.2.20}/LICENSE +0 -0
  15. {streambricks-0.2.19 → streambricks-0.2.20}/README.md +0 -0
  16. {streambricks-0.2.19 → streambricks-0.2.20}/docs/.empty +0 -0
  17. {streambricks-0.2.19 → streambricks-0.2.20}/docs/profile_widget.md +0 -0
  18. {streambricks-0.2.19 → streambricks-0.2.20}/duties.py +0 -0
  19. {streambricks-0.2.19 → streambricks-0.2.20}/mkdocs.yml +0 -0
  20. {streambricks-0.2.19 → streambricks-0.2.20}/overrides/_dummy.txt +0 -0
  21. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/__init__.py +0 -0
  22. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/models.py +0 -0
  23. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/auth/profile_widget.py +0 -0
  24. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/helpers.py +0 -0
  25. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/py.typed +0 -0
  26. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/sidebar.py +0 -0
  27. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/state.py +0 -0
  28. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/__init__.py +0 -0
  29. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/bind_kwargs.py +0 -0
  30. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/image_capture.py +0 -0
  31. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_selector.py +0 -0
  32. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/__init__.py +0 -0
  33. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/field_metadata_renderers.py +0 -0
  34. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/main.py +0 -0
  35. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/model_widget/type_renderers.py +0 -0
  36. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/multi_select.py +0 -0
  37. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/sequence.py +0 -0
  38. {streambricks-0.2.19 → streambricks-0.2.20}/src/streambricks/widgets/type_helpers.py +0 -0
  39. {streambricks-0.2.19 → streambricks-0.2.20}/tests/__init__.py +0 -0
  40. {streambricks-0.2.19 → streambricks-0.2.20}/tests/conftest.py +0 -0
  41. {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.19
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
@@ -39,6 +39,9 @@ dependencies = [
39
39
  "streamlit>=1.43.2",
40
40
  ]
41
41
 
42
+ [project.optional-dependencies]
43
+ auth = ["authlib"]
44
+
42
45
  [tool.uv]
43
46
  default-groups = ["dev", "lint", "docs"]
44
47
 
@@ -1,6 +1,6 @@
1
1
  """StreamBricks components for Streamlit."""
2
2
 
3
- __version__ = "0.2.19"
3
+ __version__ = "0.2.20"
4
4
 
5
5
 
6
6
  from streambricks.auth import (
@@ -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, "experimental_user") and st.experimental_user.is_logged_in:
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