param 2.5.0b3__tar.gz → 2.5.0b5__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 (78) hide show
  1. {param-2.5.0b3 → param-2.5.0b5}/PKG-INFO +5 -1
  2. {param-2.5.0b3 → param-2.5.0b5}/param/__init__.py +5 -0
  3. {param-2.5.0b3 → param-2.5.0b5}/param/_utils.py +12 -0
  4. {param-2.5.0b3 → param-2.5.0b5}/param/_version.py +2 -2
  5. {param-2.5.0b3 → param-2.5.0b5}/param/parameterized.py +319 -111
  6. {param-2.5.0b3 → param-2.5.0b5}/param/parameters.py +314 -23
  7. {param-2.5.0b3 → param-2.5.0b5}/param/reactive.py +307 -82
  8. param-2.5.0b5/param/typed.py +337 -0
  9. {param-2.5.0b3 → param-2.5.0b5}/pyproject.toml +2 -0
  10. param-2.5.0b5/tests/testdataframelike.py +432 -0
  11. {param-2.5.0b3 → param-2.5.0b5}/tests/testdefaults.py +4 -0
  12. {param-2.5.0b3 → param-2.5.0b5}/tests/testimports.py +1 -1
  13. param-2.5.0b5/tests/testmodel.py +557 -0
  14. {param-2.5.0b3 → param-2.5.0b5}/tests/testparameterizedobject.py +27 -0
  15. {param-2.5.0b3 → param-2.5.0b5}/tests/testreactive.py +708 -11
  16. {param-2.5.0b3 → param-2.5.0b5}/tests/testrefs.py +268 -0
  17. {param-2.5.0b3 → param-2.5.0b5}/tests/testwatch.py +90 -0
  18. {param-2.5.0b3 → param-2.5.0b5}/.gitignore +0 -0
  19. {param-2.5.0b3 → param-2.5.0b5}/LICENSE.txt +0 -0
  20. {param-2.5.0b3 → param-2.5.0b5}/README.md +0 -0
  21. {param-2.5.0b3 → param-2.5.0b5}/numbergen/__init__.py +0 -0
  22. {param-2.5.0b3 → param-2.5.0b5}/param/depends.py +0 -0
  23. {param-2.5.0b3 → param-2.5.0b5}/param/display.py +0 -0
  24. {param-2.5.0b3 → param-2.5.0b5}/param/ipython.py +0 -0
  25. {param-2.5.0b3 → param-2.5.0b5}/param/mypy_plugin.py +0 -0
  26. {param-2.5.0b3 → param-2.5.0b5}/param/py.typed +0 -0
  27. {param-2.5.0b3 → param-2.5.0b5}/param/serializer.py +0 -0
  28. {param-2.5.0b3 → param-2.5.0b5}/param/version.py +0 -0
  29. {param-2.5.0b3 → param-2.5.0b5}/tests/__init__.py +0 -0
  30. {param-2.5.0b3 → param-2.5.0b5}/tests/assert_types.py +0 -0
  31. {param-2.5.0b3 → param-2.5.0b5}/tests/conftest.py +0 -0
  32. {param-2.5.0b3 → param-2.5.0b5}/tests/pyrightconfig-bare.json +0 -0
  33. {param-2.5.0b3 → param-2.5.0b5}/tests/testaddparameter.py +0 -0
  34. {param-2.5.0b3 → param-2.5.0b5}/tests/testbind.py +0 -0
  35. {param-2.5.0b3 → param-2.5.0b5}/tests/testbooleanparam.py +0 -0
  36. {param-2.5.0b3 → param-2.5.0b5}/tests/testbytesparam.py +0 -0
  37. {param-2.5.0b3 → param-2.5.0b5}/tests/testcalendardateparam.py +0 -0
  38. {param-2.5.0b3 → param-2.5.0b5}/tests/testcalendardaterangeparam.py +0 -0
  39. {param-2.5.0b3 → param-2.5.0b5}/tests/testcallable.py +0 -0
  40. {param-2.5.0b3 → param-2.5.0b5}/tests/testclassselector.py +0 -0
  41. {param-2.5.0b3 → param-2.5.0b5}/tests/testcolorparameter.py +0 -0
  42. {param-2.5.0b3 → param-2.5.0b5}/tests/testcomparator.py +0 -0
  43. {param-2.5.0b3 → param-2.5.0b5}/tests/testcompositeparams.py +0 -0
  44. {param-2.5.0b3 → param-2.5.0b5}/tests/testcustomparam.py +0 -0
  45. {param-2.5.0b3 → param-2.5.0b5}/tests/testdateparam.py +0 -0
  46. {param-2.5.0b3 → param-2.5.0b5}/tests/testdaterangeparam.py +0 -0
  47. {param-2.5.0b3 → param-2.5.0b5}/tests/testdefaultfactory.py +0 -0
  48. {param-2.5.0b3 → param-2.5.0b5}/tests/testdeprecations.py +0 -0
  49. {param-2.5.0b3 → param-2.5.0b5}/tests/testdynamicparams.py +0 -0
  50. {param-2.5.0b3 → param-2.5.0b5}/tests/testfiledeserialization.py +0 -0
  51. {param-2.5.0b3 → param-2.5.0b5}/tests/testfileselector.py +0 -0
  52. {param-2.5.0b3 → param-2.5.0b5}/tests/testipythonmagic.py +0 -0
  53. {param-2.5.0b3 → param-2.5.0b5}/tests/testjsonserialization.py +0 -0
  54. {param-2.5.0b3 → param-2.5.0b5}/tests/testlist.py +0 -0
  55. {param-2.5.0b3 → param-2.5.0b5}/tests/testlistselector.py +0 -0
  56. {param-2.5.0b3 → param-2.5.0b5}/tests/testmultifileselector.py +0 -0
  57. {param-2.5.0b3 → param-2.5.0b5}/tests/testnumbergen.py +0 -0
  58. {param-2.5.0b3 → param-2.5.0b5}/tests/testnumberparameter.py +0 -0
  59. {param-2.5.0b3 → param-2.5.0b5}/tests/testnumpy.py +0 -0
  60. {param-2.5.0b3 → param-2.5.0b5}/tests/testobjectselector.py +0 -0
  61. {param-2.5.0b3 → param-2.5.0b5}/tests/testpandas.py +0 -0
  62. {param-2.5.0b3 → param-2.5.0b5}/tests/testparamdepends.py +0 -0
  63. {param-2.5.0b3 → param-2.5.0b5}/tests/testparameter.py +0 -0
  64. {param-2.5.0b3 → param-2.5.0b5}/tests/testparameterizedrepr.py +0 -0
  65. {param-2.5.0b3 → param-2.5.0b5}/tests/testparamoutput.py +0 -0
  66. {param-2.5.0b3 → param-2.5.0b5}/tests/testparamunion.py +0 -0
  67. {param-2.5.0b3 → param-2.5.0b5}/tests/testpathparam.py +0 -0
  68. {param-2.5.0b3 → param-2.5.0b5}/tests/testpickle.py +0 -0
  69. {param-2.5.0b3 → param-2.5.0b5}/tests/testrangeparameter.py +0 -0
  70. {param-2.5.0b3 → param-2.5.0b5}/tests/testreprhtml.py +0 -0
  71. {param-2.5.0b3 → param-2.5.0b5}/tests/testselector.py +0 -0
  72. {param-2.5.0b3 → param-2.5.0b5}/tests/testsignatures.py +0 -0
  73. {param-2.5.0b3 → param-2.5.0b5}/tests/teststringparam.py +0 -0
  74. {param-2.5.0b3 → param-2.5.0b5}/tests/testtimedependent.py +0 -0
  75. {param-2.5.0b3 → param-2.5.0b5}/tests/testtupleparam.py +0 -0
  76. {param-2.5.0b3 → param-2.5.0b5}/tests/testutils.py +0 -0
  77. {param-2.5.0b3 → param-2.5.0b5}/tests/testversion.py +0 -0
  78. {param-2.5.0b3 → param-2.5.0b5}/tests/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: param
3
- Version: 2.5.0b3
3
+ Version: 2.5.0b5
4
4
  Summary: Declarative parameters for robust Python classes and a rich API for reactive programming
5
5
  Project-URL: Homepage, https://param.holoviz.org/
6
6
  Project-URL: Tracker, https://github.com/holoviz/param/issues
@@ -33,6 +33,7 @@ Requires-Dist: cloudpickle; extra == 'all'
33
33
  Requires-Dist: gmpy2; extra == 'all'
34
34
  Requires-Dist: ipython; extra == 'all'
35
35
  Requires-Dist: jsonschema; extra == 'all'
36
+ Requires-Dist: narwhals; extra == 'all'
36
37
  Requires-Dist: nbval; extra == 'all'
37
38
  Requires-Dist: nest-asyncio; extra == 'all'
38
39
  Requires-Dist: numpy; extra == 'all'
@@ -40,6 +41,7 @@ Requires-Dist: odfpy; extra == 'all'
40
41
  Requires-Dist: openpyxl; extra == 'all'
41
42
  Requires-Dist: pandas; extra == 'all'
42
43
  Requires-Dist: panel; extra == 'all'
44
+ Requires-Dist: polars; extra == 'all'
43
45
  Requires-Dist: pyarrow; extra == 'all'
44
46
  Requires-Dist: pytest; extra == 'all'
45
47
  Requires-Dist: pytest-asyncio; extra == 'all'
@@ -75,6 +77,7 @@ Requires-Dist: cloudpickle; extra == 'tests-full'
75
77
  Requires-Dist: gmpy2; extra == 'tests-full'
76
78
  Requires-Dist: ipython; extra == 'tests-full'
77
79
  Requires-Dist: jsonschema; extra == 'tests-full'
80
+ Requires-Dist: narwhals; extra == 'tests-full'
78
81
  Requires-Dist: nbval; extra == 'tests-full'
79
82
  Requires-Dist: nest-asyncio; extra == 'tests-full'
80
83
  Requires-Dist: numpy; extra == 'tests-full'
@@ -82,6 +85,7 @@ Requires-Dist: odfpy; extra == 'tests-full'
82
85
  Requires-Dist: openpyxl; extra == 'tests-full'
83
86
  Requires-Dist: pandas; extra == 'tests-full'
84
87
  Requires-Dist: panel; extra == 'tests-full'
88
+ Requires-Dist: polars; extra == 'tests-full'
85
89
  Requires-Dist: pyarrow; extra == 'tests-full'
86
90
  Requires-Dist: pytest; extra == 'tests-full'
87
91
  Requires-Dist: pytest-asyncio; extra == 'tests-full'
@@ -84,6 +84,7 @@ from .parameters import (
84
84
  Dict,
85
85
  Array,
86
86
  DataFrame,
87
+ DataFrameLike,
87
88
  Series,
88
89
  Path,
89
90
  Filename,
@@ -100,6 +101,7 @@ from .parameters import (
100
101
  Event,
101
102
  )
102
103
  from .reactive import ReactiveError, bind, collect, current_node, rx
104
+ from .typed import Field, Model
103
105
  from ._utils import (
104
106
  descendents,
105
107
  concrete_descendents,
@@ -166,6 +168,7 @@ __all__ = (
166
168
  'Composite',
167
169
  'DEBUG',
168
170
  'DataFrame',
171
+ 'DataFrameLike',
169
172
  'Date',
170
173
  'DateRange',
171
174
  'Dict',
@@ -173,6 +176,7 @@ __all__ = (
173
176
  'ERROR',
174
177
  'ReactiveError',
175
178
  'Event',
179
+ 'Field',
176
180
  'FileSelector',
177
181
  'Filename',
178
182
  'Foldername',
@@ -184,6 +188,7 @@ __all__ = (
184
188
  'ListProxy',
185
189
  'ListSelector',
186
190
  'Magnitude',
191
+ 'Model',
187
192
  'MultiFileSelector',
188
193
  'Number',
189
194
  'NumericTuple',
@@ -752,3 +752,15 @@ def _find_stack_level() -> int:
752
752
  # https://docs.python.org/3/library/inspect.html#inspect.Traceback
753
753
  del frame
754
754
  return n
755
+
756
+
757
+ def _get_narwhals():
758
+ """Import and return the optional ``narwhals`` stable API."""
759
+ try:
760
+ import narwhals.stable.v2 as narwhals
761
+ except ModuleNotFoundError as e:
762
+ raise ImportError(
763
+ "param.DataFrameLike requires the optional 'narwhals' package. "
764
+ "Install it with: pip install narwhals"
765
+ ) from e
766
+ return narwhals
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
18
18
  commit_id: str | None
19
19
  __commit_id__: str | None
20
20
 
21
- __version__ = version = '2.5.0b3'
22
- __version_tuple__ = version_tuple = (2, 5, 0, 'b3')
21
+ __version__ = version = '2.5.0b5'
22
+ __version_tuple__ = version_tuple = (2, 5, 0, 'b5')
23
23
 
24
24
  __commit_id__ = commit_id = None