param 2.3.1rc1__tar.gz → 2.3.2__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.
- {param-2.3.1rc1 → param-2.3.2}/PKG-INFO +1 -2
- {param-2.3.1rc1 → param-2.3.2}/README.md +0 -1
- {param-2.3.1rc1 → param-2.3.2}/param/_version.py +2 -2
- {param-2.3.1rc1 → param-2.3.2}/param/parameterized.py +11 -30
- {param-2.3.1rc1 → param-2.3.2}/tests/testreactive.py +2 -1
- {param-2.3.1rc1 → param-2.3.2}/.gitignore +0 -0
- {param-2.3.1rc1 → param-2.3.2}/LICENSE.txt +0 -0
- {param-2.3.1rc1 → param-2.3.2}/numbergen/__init__.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/__init__.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/_utils.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/depends.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/display.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/ipython.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/parameters.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/reactive.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/serializer.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/param/version.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/pyproject.toml +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/__init__.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/conftest.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testaddparameter.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testbind.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testbooleanparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testbytesparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testcalendardateparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testcalendardaterangeparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testcallable.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testclassselector.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testcolorparameter.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testcomparator.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testcompositeparams.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testcustomparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testdateparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testdaterangeparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testdefaultfactory.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testdefaults.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testdeprecations.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testdynamicparams.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testfiledeserialization.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testfileselector.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testimports.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testipythonmagic.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testjsonserialization.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testlist.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testlistselector.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testmultifileselector.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testnumbergen.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testnumberparameter.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testnumpy.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testobjectselector.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testpandas.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testparamdepends.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testparameter.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testparameterizedobject.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testparameterizedrepr.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testparamoutput.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testparamunion.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testpathparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testpickle.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testrangeparameter.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testrefs.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testreprhtml.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testselector.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testsignatures.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/teststringparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testtimedependent.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testtupleparam.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testutils.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testversion.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/testwatch.py +0 -0
- {param-2.3.1rc1 → param-2.3.2}/tests/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: param
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.2
|
|
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
|
|
@@ -288,7 +288,6 @@ sfe = SideEffectExample()
|
|
|
288
288
|
# with a rich Event object.
|
|
289
289
|
sfe.a = 'foo'
|
|
290
290
|
# => Event(
|
|
291
|
-
# => Event(
|
|
292
291
|
# what='value', name='a',
|
|
293
292
|
# obj=SideEffectExample(a='foo', b='', c='', name='SideEffectExample00008'),
|
|
294
293
|
# cls=SideEffectExample(a='foo', b='', c='', name='SideEffectExample00008'),
|
|
@@ -190,7 +190,6 @@ sfe = SideEffectExample()
|
|
|
190
190
|
# with a rich Event object.
|
|
191
191
|
sfe.a = 'foo'
|
|
192
192
|
# => Event(
|
|
193
|
-
# => Event(
|
|
194
193
|
# what='value', name='a',
|
|
195
194
|
# obj=SideEffectExample(a='foo', b='', c='', name='SideEffectExample00008'),
|
|
196
195
|
# cls=SideEffectExample(a='foo', b='', c='', name='SideEffectExample00008'),
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '2.3.
|
|
32
|
-
__version_tuple__ = version_tuple = (2, 3,
|
|
31
|
+
__version__ = version = '2.3.2'
|
|
32
|
+
__version_tuple__ = version_tuple = (2, 3, 2)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -5348,6 +5348,15 @@ class Parameterized(metaclass=ParameterizedMetaclass):
|
|
|
5348
5348
|
This makes it well-suited for robust, maintainable code bases and
|
|
5349
5349
|
particularly useful in interactive applications requiring reactive behavior.
|
|
5350
5350
|
|
|
5351
|
+
To construct an instance, optional Parameter values must be supplied as
|
|
5352
|
+
keyword arguments (``param_name=value``), overriding their default values
|
|
5353
|
+
for this one instance. Any parameters not explicitly set will retain their
|
|
5354
|
+
defined default values.
|
|
5355
|
+
|
|
5356
|
+
If no ``name`` parameter is provided, the instance's ``name`` attribute will
|
|
5357
|
+
default to an identifier string composed of the class name followed by
|
|
5358
|
+
an incremental 5-digit number.
|
|
5359
|
+
|
|
5351
5360
|
Attributes
|
|
5352
5361
|
----------
|
|
5353
5362
|
name : str
|
|
@@ -5411,37 +5420,9 @@ class Parameterized(metaclass=ParameterizedMetaclass):
|
|
|
5411
5420
|
plus a unique integer""")
|
|
5412
5421
|
|
|
5413
5422
|
def __init__(self, **params):
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
Optional Parameter values must be supplied as keyword arguments
|
|
5418
|
-
(``param_name=value``), overriding their default values for this one
|
|
5419
|
-
instance. Any parameters not explicitly set will retain their defined
|
|
5420
|
-
default values.
|
|
5421
|
-
|
|
5422
|
-
If no ``name`` parameter is provided, the instance's ``name`` attribute will
|
|
5423
|
-
default to an identifier string composed of the class name followed by
|
|
5424
|
-
an incremental 5-digit number.
|
|
5423
|
+
# No __init__ docstring to avoid shadowing the user class docstring
|
|
5424
|
+
# displayed in IDEs.
|
|
5425
5425
|
|
|
5426
|
-
Parameters
|
|
5427
|
-
----------
|
|
5428
|
-
**params
|
|
5429
|
-
Optional keyword arguments mapping :class:`Parameter` names to values.
|
|
5430
|
-
|
|
5431
|
-
Raises
|
|
5432
|
-
------
|
|
5433
|
-
TypeError
|
|
5434
|
-
If one of the keywords of ``params`` is not a :class:`Parameter` name.
|
|
5435
|
-
|
|
5436
|
-
Examples
|
|
5437
|
-
--------
|
|
5438
|
-
>>> import param
|
|
5439
|
-
>>> class MyClass(param.Parameterized):
|
|
5440
|
-
... value = param.Number(default=10, bounds=(0, 20))
|
|
5441
|
-
>>> obj = MyClass(value=15)
|
|
5442
|
-
|
|
5443
|
-
The ``value`` parameter is set to 15 for this instance, overriding the default.
|
|
5444
|
-
"""
|
|
5445
5426
|
global object_count
|
|
5446
5427
|
|
|
5447
5428
|
# Setting a Parameter value in an __init__ block before calling
|
|
@@ -750,7 +750,8 @@ def test_reactive_callback_resolve_accessor():
|
|
|
750
750
|
df = pd.DataFrame({"name": ["Bill", "Bob"]})
|
|
751
751
|
dfx = rx(df)
|
|
752
752
|
out = dfx["name"].str._callback()
|
|
753
|
-
assert out is df["name"].str
|
|
753
|
+
assert type(out) is type(df["name"].str)
|
|
754
|
+
assert out._name == df["name"].str._name
|
|
754
755
|
|
|
755
756
|
|
|
756
757
|
def test_reactive_dunder_len_error():
|
|
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
|
|
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
|
|
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
|