68.6 KB
python-param version 1.9.3-2~jan+unchanged1 (unchanged) vs.
python-param version 1.10.1-1~jan+nur1 (fresh-releases)
68.5 KB
python3-param_1.9.3-2~jan+unchanged1_all.deb vs.
python3-param_1.10.1-1~jan+nur1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-11-30·09:03:06.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-11-30·09:03:06.000000·debian-binary
2 -rw-r--r--···0········0········0·····1404·2020-11-30·09:03:06.000000·control.tar.xz2 -rw-r--r--···0········0········0·····1432·2020-11-30·09:03:06.000000·control.tar.xz
3 -rw-r--r--···0········0········0····58872·2020-11-30·09:03:06.000000·data.tar.xz3 -rw-r--r--···0········0········0····62944·2020-11-30·09:03:06.000000·data.tar.xz
2.0 KB
control.tar.xz
1.97 KB
control.tar
698 B
file list
    
Offset 1, 5 lines modifiedOffset 1, 5 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./
2 -rw-r--r--···0·root·········(0)·root·········(0)······666·2020-11-30·09:03:06.000000·./control2 -rw-r--r--···0·root·········(0)·root·········(0)······661·2020-11-30·09:03:06.000000·./control
3 -rw-r--r--···0·root·········(0)·root·········(0)·····1043·2020-11-30·09:03:06.000000·./md5sums3 -rw-r--r--···0·root·········(0)·root·········(0)·····1127·2020-11-30·09:03:06.000000·./md5sums
4 -rwxr-xr-x···0·root·········(0)·root·········(0)······251·2020-11-30·09:03:06.000000·./postinst4 -rwxr-xr-x···0·root·········(0)·root·········(0)······251·2020-11-30·09:03:06.000000·./postinst
5 -rwxr-xr-x···0·root·········(0)·root·········(0)······400·2020-11-30·09:03:06.000000·./prerm5 -rwxr-xr-x···0·root·········(0)·root·········(0)······400·2020-11-30·09:03:06.000000·./prerm
630 B
./control
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
1 Package:·python3-param1 Package:·python3-param
2 Source:·python-param2 Source:·python-param
3 Version:·1.9.3-2~jan+unchanged13 Version:·1.10.1-1~jan+nur1
4 Architecture:·all4 Architecture:·all
5 Maintainer:·Debian·Science·Maintainers·<debian-science-maintainers@lists.alioth.debian.org>5 Maintainer:·Debian·Science·Maintainers·<debian-science-maintainers@lists.alioth.debian.org>
6 Installed-Size:·2716 Installed-Size:·296
7 Depends:·python3:any7 Depends:·python3:any
8 Section:·python8 Section:·python
9 Priority:·optional9 Priority:·optional
10 Homepage:·https://github.com/holoviz/param10 Homepage:·https://github.com/holoviz/param
11 Description:·Make·your·Python·code·clearer·and·more·reliable·by·declaring·Parameters11 Description:·Make·your·Python·code·clearer·and·more·reliable·by·declaring·Parameters
12 ·Param·is·a·library·providing·Parameters:·Python·attributes·extended·to12 ·Param·is·a·library·providing·Parameters:·Python·attributes·extended·to
13 ·have·features·such·as·type·and·range·checking,·dynamically·generated13 ·have·features·such·as·type·and·range·checking,·dynamically·generated
671 B
./md5sums
30.0 B
./md5sums
Files differ
623 B
line order
    
Offset 3, 10 lines modifiedOffset 3, 11 lines modified
3 usr/lib/python3/dist-packages/param-None.egg-info/dependency_links.txt3 usr/lib/python3/dist-packages/param-None.egg-info/dependency_links.txt
4 usr/lib/python3/dist-packages/param-None.egg-info/requires.txt4 usr/lib/python3/dist-packages/param-None.egg-info/requires.txt
5 usr/lib/python3/dist-packages/param-None.egg-info/top_level.txt5 usr/lib/python3/dist-packages/param-None.egg-info/top_level.txt
6 usr/lib/python3/dist-packages/param/.version6 usr/lib/python3/dist-packages/param/.version
7 usr/lib/python3/dist-packages/param/__init__.py7 usr/lib/python3/dist-packages/param/__init__.py
8 usr/lib/python3/dist-packages/param/ipython.py8 usr/lib/python3/dist-packages/param/ipython.py
9 usr/lib/python3/dist-packages/param/parameterized.py9 usr/lib/python3/dist-packages/param/parameterized.py
 10 usr/lib/python3/dist-packages/param/serializer.py
10 usr/lib/python3/dist-packages/param/version.py11 usr/lib/python3/dist-packages/param/version.py
11 usr/share/doc/python3-param/changelog.Debian.gz12 usr/share/doc/python3-param/changelog.Debian.gz
12 usr/share/doc/python3-param/copyright13 usr/share/doc/python3-param/copyright
66.0 KB
data.tar.xz
65.9 KB
data.tar
3.96 KB
file list
    
Offset 1, 23 lines modifiedOffset 1, 24 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./
2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/
3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/
4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/
6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/numbergen/6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/numbergen/
7 -rw-r--r--···0·root·········(0)·root·········(0)····26699·2020-06-08·14:21:00.000000·./usr/lib/python3/dist-packages/numbergen/__init__.py7 -rw-r--r--···0·root·········(0)·root·········(0)····26698·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/numbergen/__init__.py
8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/8 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/
9 -rw-r--r--···0·root·········(0)·root·········(0)·······26·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/.version9 -rw-r--r--···0·root·········(0)·root·········(0)·······26·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/.version
10 -rw-r--r--···0·root·········(0)·root·········(0)····70238·2020-06-08·14:21:00.000000·./usr/lib/python3/dist-packages/param/__init__.py10 -rw-r--r--···0·root·········(0)·root·········(0)····74003·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/__init__.py
11 -rw-r--r--···0·root·········(0)·root·········(0)····12582·2020-06-08·14:21:00.000000·./usr/lib/python3/dist-packages/param/ipython.py11 -rw-r--r--···0·root·········(0)·root·········(0)····12580·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/ipython.py
12 -rw-r--r--···0·root·········(0)·root·········(0)···110255·2020-06-08·14:21:00.000000·./usr/lib/python3/dist-packages/param/parameterized.py12 -rw-r--r--···0·root·········(0)·root·········(0)···118923·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/parameterized.py
 13 -rw-r--r--···0·root·········(0)·root·········(0)····10427·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/serializer.py
13 -rw-r--r--···0·root·········(0)·root·········(0)····30509·2020-06-08·14:21:00.000000·./usr/lib/python3/dist-packages/param/version.py14 -rw-r--r--···0·root·········(0)·root·········(0)····30529·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param/version.py
14 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/15 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/
15 -rw-r--r--···0·root·········(0)·root·········(0)·····2911·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/PKG-INFO16 -rw-r--r--···0·root·········(0)·root·········(0)·····3412·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/PKG-INFO
16 -rw-r--r--···0·root·········(0)·root·········(0)········1·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/dependency_links.txt17 -rw-r--r--···0·root·········(0)·root·········(0)········1·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/dependency_links.txt
17 -rw-r--r--···0·root·········(0)·root·········(0)·······40·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/requires.txt18 -rw-r--r--···0·root·········(0)·root·········(0)·······40·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/requires.txt
18 -rw-r--r--···0·root·········(0)·root·········(0)·······16·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/top_level.txt19 -rw-r--r--···0·root·········(0)·root·········(0)·······16·2020-11-30·09:03:06.000000·./usr/lib/python3/dist-packages/param-None.egg-info/top_level.txt
19 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/share/20 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/share/
20 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/share/doc/21 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/share/doc/
21 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/share/doc/python3-param/22 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-11-30·09:03:06.000000·./usr/share/doc/python3-param/
22 -rw-r--r--···0·root·········(0)·root·········(0)······305·2020-11-30·09:03:06.000000·./usr/share/doc/python3-param/changelog.Debian.gz23 -rw-r--r--···0·root·········(0)·root·········(0)······310·2020-11-30·09:03:06.000000·./usr/share/doc/python3-param/changelog.Debian.gz
23 -rw-r--r--···0·root·········(0)·root·········(0)·····1859·2020-11-30·09:03:06.000000·./usr/share/doc/python3-param/copyright24 -rw-r--r--···0·root·········(0)·root·········(0)·····1859·2020-11-30·09:03:06.000000·./usr/share/doc/python3-param/copyright
773 B
./usr/lib/python3/dist-packages/numbergen/__init__.py
    
Offset 198, 15 lines modifiedOffset 198, 15 lines modified
  
  
198 ····def·_rational(self,·val):198 ····def·_rational(self,·val):
199 ········"""Convert·the·given·value·to·a·rational,·if·necessary."""199 ········"""Convert·the·given·value·to·a·rational,·if·necessary."""
  
200 ········I32·=·4294967296·#·Maximum·32·bit·unsigned·int·(i.e.·'I')·value200 ········I32·=·4294967296·#·Maximum·32·bit·unsigned·int·(i.e.·'I')·value
201 ········if·isinstance(val,·int):201 ········if·isinstance(val,·int):
202 ·············numer,·denom·=·val,·1202 ············numer,·denom·=·val,·1
203 ········elif·isinstance(val,·fractions.Fraction):203 ········elif·isinstance(val,·fractions.Fraction):
204 ············numer,·denom·=·val.numerator,·val.denominator204 ············numer,·denom·=·val.numerator,·val.denominator
205 ········elif·hasattr(val,·'numer'):205 ········elif·hasattr(val,·'numer'):
206 ············(numer,·denom)·=·(int(val.numer()),·int(val.denom()))206 ············(numer,·denom)·=·(int(val.numer()),·int(val.denom()))
207 ········else:207 ········else:
208 ············param.main.param.warning("Casting·type·'%s'·to·Fraction.fraction"208 ············param.main.param.warning("Casting·type·'%s'·to·Fraction.fraction"
209 ·······························%·type(val).__name__)209 ·······························%·type(val).__name__)
15.3 KB
./usr/lib/python3/dist-packages/param/__init__.py
    
Offset 25, 27 lines modifiedOffset 25, 27 lines modified
25 import·collections25 import·collections
  
26 from·.parameterized·import·(26 from·.parameterized·import·(
27 ····Parameterized,·Parameter,·String,·ParameterizedFunction,·ParamOverrides,27 ····Parameterized,·Parameter,·String,·ParameterizedFunction,·ParamOverrides,
28 ····descendents,·get_logger,·instance_descriptor,·basestring)28 ····descendents,·get_logger,·instance_descriptor,·basestring)
  
29 from·.parameterized·import·(batch_watch,·depends,·output,·#·noqa:·api·import29 from·.parameterized·import·(batch_watch,·depends,·output,·#·noqa:·api·import
30 ····························discard_events,·edit_constant)30 ····························discard_events,·edit_constant,·instance_descriptor)
31 from·.parameterized·import·logging_level·····#·noqa:·api·import31 from·.parameterized·import·logging_level·····#·noqa:·api·import
32 from·.parameterized·import·shared_parameters·#·noqa:·api·import32 from·.parameterized·import·shared_parameters·#·noqa:·api·import
  
33 from·collections·import·OrderedDict33 from·collections·import·OrderedDict
34 from·numbers·import·Real34 from·numbers·import·Real
  
35 #·Determine·up-to-date·version·information,·if·possible,·but·with·a35 #·Determine·up-to-date·version·information,·if·possible,·but·with·a
36 #·safe·fallback·to·ensure·that·this·file·and·parameterized.py·are·the36 #·safe·fallback·to·ensure·that·this·file·and·parameterized.py·are·the
37 #·only·two·required·files.37 #·only·two·required·files.
38 try:38 try:
39 ····from·.version·import·Version39 ····from·.version·import·Version
40 ····__version__·=·str(Version(fpath=__file__,·archive_commit="9123ba0",·reponame="param"))40 ····__version__·=·str(Version(fpath=__file__,·archive_commit="3ffe0750",·reponame="param"))
41 except:41 except:
42 ····__version__·=·"0.0.0+unknown"42 ····__version__·=·"0.0.0+unknown"
  
  
43 dt_types·=·(dt.datetime,·dt.date)43 dt_types·=·(dt.datetime,·dt.date)
  
44 try:44 try:
Offset 217, 15 lines modifiedOffset 217, 15 lines modified
  
217 def·parameterized_class(name,·params,·bases=Parameterized):217 def·parameterized_class(name,·params,·bases=Parameterized):
218 ····"""218 ····"""
219 ····Dynamically·create·a·parameterized·class·with·the·given·name·and·the219 ····Dynamically·create·a·parameterized·class·with·the·given·name·and·the
220 ····supplied·parameters,·inheriting·from·the·specified·base(s).220 ····supplied·parameters,·inheriting·from·the·specified·base(s).
221 ····"""221 ····"""
222 ····if·not·(isinstance(bases,·list)·or·isinstance(bases,·tuple)):222 ····if·not·(isinstance(bases,·list)·or·isinstance(bases,·tuple)):
223 ··········bases=[bases]223 ········bases=[bases]
224 ····return·type(name,·tuple(bases),·params)224 ····return·type(name,·tuple(bases),·params)
  
  
225 def·guess_bounds(params,·**overrides):225 def·guess_bounds(params,·**overrides):
226 ····"""226 ····"""
227 ····Given·a·dictionary·of·Parameter·instances,·return·a·corresponding227 ····Given·a·dictionary·of·Parameter·instances,·return·a·corresponding
228 ····set·of·copies·with·the·bounds·appropriately·set.228 ····set·of·copies·with·the·bounds·appropriately·set.
Offset 920, 15 lines modifiedOffset 920, 15 lines modified
  
  
  
920 class·Integer(Number):920 class·Integer(Number):
921 ····"""Numeric·Parameter·required·to·be·an·Integer"""921 ····"""Numeric·Parameter·required·to·be·an·Integer"""
  
922 ····def·__init__(self,default=0,**params):922 ····def·__init__(self,default=0,**params):
923 ·······Number.__init__(self,default=default,**params)923 ········Number.__init__(self,default=default,**params)
  
924 ····def·_validate(self,·val):924 ····def·_validate(self,·val):
925 ········if·callable(val):·return925 ········if·callable(val):·return
  
926 ········if·self.allow_None·and·val·is·None:926 ········if·self.allow_None·and·val·is·None:
927 ············return927 ············return
  
Offset 1010, 14 lines modifiedOffset 1010, 22 lines modified
1010 ············raise·ValueError("Tuple·'%s'·only·takes·a·tuple·value."%self.name)1010 ············raise·ValueError("Tuple·'%s'·only·takes·a·tuple·value."%self.name)
  
1011 ········if·not·len(val)==self.length:1011 ········if·not·len(val)==self.length:
1012 ············raise·ValueError("%s:·tuple·is·not·of·the·correct·length·(%d·instead·of·%d)."·%1012 ············raise·ValueError("%s:·tuple·is·not·of·the·correct·length·(%d·instead·of·%d)."·%
1013 ·····························(self.name,len(val),self.length))1013 ·····························(self.name,len(val),self.length))
  
  
 1014 ····@classmethod
 1015 ····def·serialize(cls,·value):
 1016 ········return·list(value)·#·As·JSON·has·no·tuple·representation
  
 1017 ····@classmethod
 1018 ····def·deserialize(cls,·value):
 1019 ········return·tuple(value)·#·As·JSON·has·no·tuple·representation
  
  
1014 class·NumericTuple(Tuple):1020 class·NumericTuple(Tuple):
1015 ····"""A·numeric·tuple·Parameter·(e.g.·(4.5,7.6,3))·with·a·fixed·tuple·length."""1021 ····"""A·numeric·tuple·Parameter·(e.g.·(4.5,7.6,3))·with·a·fixed·tuple·length."""
  
1016 ····def·_validate(self,·val):1022 ····def·_validate(self,·val):
1017 ········super(NumericTuple,·self)._validate(val)1023 ········super(NumericTuple,·self)._validate(val)
1018 ········if·not·(self.allow_None·and·val·is·None):1024 ········if·not·(self.allow_None·and·val·is·None):
Offset 1064, 15 lines modifiedOffset 1072, 14 lines modified
1064 def·_is_abstract(class_):1072 def·_is_abstract(class_):
1065 ····try:1073 ····try:
1066 ········return·class_.abstract1074 ········return·class_.abstract
1067 ····except·AttributeError:1075 ····except·AttributeError:
1068 ········return·False1076 ········return·False
  
  
  
1069 #·CEBALERT:·this·should·be·a·method·of·ClassSelector.1077 #·CEBALERT:·this·should·be·a·method·of·ClassSelector.
1070 def·concrete_descendents(parentclass):1078 def·concrete_descendents(parentclass):
1071 ····"""1079 ····"""
1072 ····Return·a·dictionary·containing·all·subclasses·of·the·specified1080 ····Return·a·dictionary·containing·all·subclasses·of·the·specified
1073 ····parentclass,·including·the·parentclass.··Only·classes·that·are1081 ····parentclass,·including·the·parentclass.··Only·classes·that·are
1074 ····defined·in·scripts·that·have·been·run·or·modules·that·have·been1082 ····defined·in·scripts·that·have·been·run·or·modules·that·have·been
1075 ····imported·are·included,·so·the·caller·will·usually·first·do·``from1083 ····imported·are·included,·so·the·caller·will·usually·first·do·``from
Offset 1080, 15 lines modifiedOffset 1087, 14 lines modified
  
1080 ····Only·non-abstract·classes·will·be·included.1087 ····Only·non-abstract·classes·will·be·included.
1081 ····"""1088 ····"""
1082 ····return·dict((c.__name__,c)·for·c·in·descendents(parentclass)1089 ····return·dict((c.__name__,c)·for·c·in·descendents(parentclass)
1083 ················if·not·_is_abstract(c))1090 ················if·not·_is_abstract(c))
  
  
  
1084 class·Composite(Parameter):1091 class·Composite(Parameter):
1085 ····"""1092 ····"""
1086 ····A·Parameter·that·is·a·composite·of·a·set·of·other·attributes·of·the·class.1093 ····A·Parameter·that·is·a·composite·of·a·set·of·other·attributes·of·the·class.
  
1087 ····The·constructor·argument·'attribs'·takes·a·list·of·attribute1094 ····The·constructor·argument·'attribs'·takes·a·list·of·attribute
1088 ····names,·which·may·or·may·not·be·Parameters.··Getting·the·parameter1095 ····names,·which·may·or·may·not·be·Parameters.··Getting·the·parameter
1089 ····returns·a·list·of·the·values·of·the·constituents·of·the·composite,1096 ····returns·a·list·of·the·values·of·the·constituents·of·the·composite,
Offset 1244, 15 lines modifiedOffset 1250, 15 lines modified
1244 ····def·_ensure_value_is_in_objects(self,val):1250 ····def·_ensure_value_is_in_objects(self,val):
1245 ········"""1251 ········"""
1246 ········Make·sure·that·the·provided·value·is·present·on·the·objects·list.1252 ········Make·sure·that·the·provided·value·is·present·on·the·objects·list.
1247 ········Subclasses·can·override·if·they·support·multiple·items·on·a·list,1253 ········Subclasses·can·override·if·they·support·multiple·items·on·a·list,
1248 ········to·check·each·item·instead.1254 ········to·check·each·item·instead.
1249 ········"""1255 ········"""
1250 ········if·not·(val·in·self.objects):1256 ········if·not·(val·in·self.objects):
1251 ···········self.objects.append(val)1257 ············self.objects.append(val)
  
1252 ····def·get_range(self):1258 ····def·get_range(self):
1253 ········"""1259 ········"""
1254 ········Return·the·possible·objects·to·which·this·parameter·could·be·set.1260 ········Return·the·possible·objects·to·which·this·parameter·could·be·set.
Max diff block lines reached; 11140/15599 bytes (71.41%) of diff not shown.
751 B
./usr/lib/python3/dist-packages/param/ipython.py
    
Offset 275, 15 lines modifiedOffset 275, 15 lines modified
  
275 ········heading_text·=·'Parameter·docstrings:'275 ········heading_text·=·'Parameter·docstrings:'
276 ········heading_string·=·"%s\n%s"·%·(heading_text,·'='·*·len(heading_text))276 ········heading_string·=·"%s\n%s"·%·(heading_text,·'='·*·len(heading_text))
277 ········docstring_heading·=·(green·%·heading_string)277 ········docstring_heading·=·(green·%·heading_string)
278 ········return·"%s\n\n%s\n\n%s\n\n%s"·%·(top_heading,·table,·docstring_heading,·docstrings)278 ········return·"%s\n\n%s\n\n%s\n\n%s"·%·(top_heading,·table,·docstring_heading,·docstrings)
  
  
279 message·=·"""Welcome·to·the·param·IPython·extension!·(http://ioam.github.io/param/)"""279 message·=·"""Welcome·to·the·param·IPython·extension!·(https://param.holoviz.org/)"""
280 message·+=·'\nAvailable·magics:·%params'280 message·+=·'\nAvailable·magics:·%params'
  
281 _loaded·=·False281 _loaded·=·False
  
282 def·load_ipython_extension(ip,·verbose=True):282 def·load_ipython_extension(ip,·verbose=True):
  
283 ····from·IPython.core.magic·import·Magics,·magics_class,·line_magic283 ····from·IPython.core.magic·import·Magics,·magics_class,·line_magic
39.6 KB
./usr/lib/python3/dist-packages/param/parameterized.py
    
Offset 7, 18 lines modifiedOffset 7, 25 lines modified
7 import·re7 import·re
8 import·sys8 import·sys
9 import·inspect9 import·inspect
10 import·random10 import·random
11 import·numbers11 import·numbers
12 import·operator12 import·operator
  
 13 #·Allow·this·file·to·be·used·standalone·if·desired,·albeit·without·JSON·serialization
 14 try:
 15 ····from·.·import·serializer
 16 except·ImportError:
 17 ····serializer·=·None
  
  
13 from·collections·import·namedtuple,·OrderedDict18 from·collections·import·defaultdict,·namedtuple,·OrderedDict
 19 from·functools·import·partial,·wraps,·reduce
14 from·operator·import·itemgetter,attrgetter20 from·operator·import·itemgetter,attrgetter
15 from·types·import·FunctionType21 from·types·import·FunctionType
16 from·functools·import·partial,·wraps,·reduce 
  
17 import·logging22 import·logging
18 from·contextlib·import·contextmanager23 from·contextlib·import·contextmanager
19 from·logging·import·DEBUG,·INFO,·WARNING,·ERROR,·CRITICAL24 from·logging·import·DEBUG,·INFO,·WARNING,·ERROR,·CRITICAL
  
20 try:25 try:
21 ····#·In·case·the·optional·ipython·module·is·unavailable26 ····#·In·case·the·optional·ipython·module·is·unavailable
Offset 129, 25 lines modifiedOffset 136, 31 lines modified
129 def·discard_events(parameterized):136 def·discard_events(parameterized):
130 ····"""137 ····"""
131 ····Context·manager·that·discards·any·events·within·its·scope138 ····Context·manager·that·discards·any·events·within·its·scope
132 ····triggered·on·the·supplied·parameterized·object.139 ····triggered·on·the·supplied·parameterized·object.
133 ····"""140 ····"""
134 ····batch_watch·=·parameterized.param._BATCH_WATCH141 ····batch_watch·=·parameterized.param._BATCH_WATCH
135 ····parameterized.param._BATCH_WATCH·=·True142 ····parameterized.param._BATCH_WATCH·=·True
136 ····watchers,·events·=·parameterized.param._watchers,·parameterized.param._events143 ····watchers,·events·=·(list(parameterized.param._watchers),
 144 ························list(parameterized.param._events))
137 ····try:145 ····try:
138 ········yield146 ········yield
139 ····except:147 ····except:
140 ········raise148 ········raise
141 ····finally:149 ····finally:
142 ········parameterized.param._BATCH_WATCH·=·batch_watch150 ········parameterized.param._BATCH_WATCH·=·batch_watch
143 ········parameterized.param._watchers·=·watchers151 ········parameterized.param._watchers·=·watchers
144 ········parameterized.param._events·=·events152 ········parameterized.param._events·=·events
  
  
 153 #·External·components·can·register·an·async·executor·which·will·run
 154 #·async·functions
 155 async_executor·=·None
  
  
145 def·classlist(class_):156 def·classlist(class_):
146 ····"""157 ····"""
147 ····Return·a·list·of·the·class·hierarchy·above·(and·including)·the·given·class.158 ····Return·a·list·of·the·class·hierarchy·above·(and·including)·the·given·class.
  
148 ····Same·as·inspect.getmro(class_)[::-1]159 ····Same·as·inspect.getmro(class_)[::-1]
149 ····"""160 ····"""
150 ····return·inspect.getmro(class_)[::-1]161 ····return·inspect.getmro(class_)[::-1]
Offset 282, 25 lines modifiedOffset 295, 45 lines modified
282 ····"""295 ····"""
283 ····Disables·instance·parameters·on·the·class296 ····Disables·instance·parameters·on·the·class
284 ····"""297 ····"""
285 ····cls._disable_instance__params·=·True298 ····cls._disable_instance__params·=·True
286 ····return·cls299 ····return·cls
  
  
 300 def·iscoroutinefunction(function):
 301 ····"""
 302 ····Whether·the·function·is·an·asynchronous·coroutine·function.
 303 ····"""
 304 ····if·not·hasattr(inspect,·'iscoroutinefunction'):
 305 ········return·False
 306 ····return·inspect.iscoroutinefunction(function)
  
  
287 def·instance_descriptor(f):307 def·instance_descriptor(f):
288 ····#·If·parameter·has·an·instance·Parameter·delegate·setting308 ····#·If·parameter·has·an·instance·Parameter·delegate·setting
289 ····def·_f(self,·obj,·val):309 ····def·_f(self,·obj,·val):
290 ········instance_param·=·getattr(obj,·'_instance__params',·{}).get(self.name)310 ········instance_param·=·getattr(obj,·'_instance__params',·{}).get(self.name)
291 ········if·instance_param·is·not·None·and·self·is·not·instance_param:311 ········if·instance_param·is·not·None·and·self·is·not·instance_param:
292 ············instance_param.__set__(obj,·val)312 ············instance_param.__set__(obj,·val)
293 ············return313 ············return
294 ········return·f(self,·obj,·val)314 ········return·f(self,·obj,·val)
295 ····return·_f315 ····return·_f
  
  
 316 def·get_method_owner(method):
 317 ····"""
 318 ····Gets·the·instance·that·owns·the·supplied·method
 319 ····"""
 320 ····if·not·inspect.ismethod(method):
 321 ········return·None
 322 ····if·isinstance(method,·partial):
 323 ········method·=·method.func
 324 ····return·method.__self__·if·sys.version_info.major·>=·3·else·method.im_self
  
  
296 @accept_arguments325 @accept_arguments
297 def·depends(func,·*dependencies,·**kw):326 def·depends(func,·*dependencies,·**kw):
298 ····"""327 ····"""
299 ····Annotates·a·function·or·Parameterized·method·to·express·its328 ····Annotates·a·function·or·Parameterized·method·to·express·its
300 ····dependencies.··The·specified·dependencies·can·be·either·be329 ····dependencies.··The·specified·dependencies·can·be·either·be
301 ····Parameter·instances·or·if·a·method·is·supplied·they·can·be330 ····Parameter·instances·or·if·a·method·is·supplied·they·can·be
302 ····defined·as·strings·referring·to·Parameters·of·the·class,331 ····defined·as·strings·referring·to·Parameters·of·the·class,
Offset 342, 22 lines modifiedOffset 375, 25 lines modified
342 ·························'Mixing·of·string·specs·and·parameter·instances·'375 ·························'Mixing·of·string·specs·and·parameter·instances·'
343 ·························'is·not·supported.')376 ·························'is·not·supported.')
344 ····elif·string_specs·and·kw:377 ····elif·string_specs·and·kw:
345 ········raise·AssertionError('Supplying·keywords·to·the·decorated·method·'378 ········raise·AssertionError('Supplying·keywords·to·the·decorated·method·'
346 ·····························'or·function·is·not·supported·when·referencing·'379 ·····························'or·function·is·not·supported·when·referencing·'
347 ·····························'parameters·by·name.')380 ·····························'parameters·by·name.')
  
348 ····if·not·string_specs·and·watch:381 ····if·not·string_specs·and·watch:·#·string_specs·case·handled·elsewhere·(later),·in·Parameterized.__init__
349 ········def·cb(event):382 ········def·cb(*events):
350 ············args·=·(getattr(dep.owner,·dep.name)·for·dep·in·dependencies)383 ············args·=·(getattr(dep.owner,·dep.name)·for·dep·in·dependencies)
351 ············dep_kwargs·=·{n:·getattr(dep.owner,·dep.name)·for·n,·dep·in·kw.items()}384 ············dep_kwargs·=·{n:·getattr(dep.owner,·dep.name)·for·n,·dep·in·kw.items()}
352 ············return·func(*args,·**dep_kwargs)385 ············return·func(*args,·**dep_kwargs)
  
 386 ········grouped·=·defaultdict(list)
353 ········for·dep·in·deps:387 ········for·dep·in·deps:
 388 ············grouped[id(dep.owner)].append(dep)
 389 ········for·group·in·grouped.values():
354 ············dep.owner.param.watch(cb,·dep.name)390 ············group[0].owner.param.watch(cb,·[dep.name·for·dep·in·group])
  
355 ····_dinfo·=·getattr(func,·'_dinfo',·{})391 ····_dinfo·=·getattr(func,·'_dinfo',·{})
356 ····_dinfo.update({'dependencies':·dependencies,392 ····_dinfo.update({'dependencies':·dependencies,
357 ···················'kw':·kw,·'watch':·watch})393 ···················'kw':·kw,·'watch':·watch})
Max diff block lines reached; 36015/40421 bytes (89.10%) of diff not shown.
1.01 KB
./usr/lib/python3/dist-packages/param/version.py
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 """1 """
2 Provide·consistent·and·up-to-date·``__version__``·strings·for2 Provide·consistent·and·up-to-date·``__version__``·strings·for
3 Python·packages.3 Python·packages.
  
4 See·https://github.com/pyviz/autover·for·more·information.4 See·https://github.com/holoviz/autover·for·more·information.
5 """5 """
  
6 #·The·Version·class·is·a·copy·of·autover.version.Version·v0.2.5,6 #·The·Version·class·is·a·copy·of·autover.version.Version·v0.2.5,
7 #·except·as·noted·below.7 #·except·as·noted·below.
8 #8 #
9 #·The·current·version·of·autover·supports·a·workflow·based·on·tagging9 #·The·current·version·of·autover·supports·a·workflow·based·on·tagging
10 #·a·git·repository,·and·reports·PEP440·compliant·version·information.10 #·a·git·repository,·and·reports·PEP440·compliant·version·information.
Offset 22, 15 lines modifiedOffset 22, 15 lines modified
  
22 def·run_cmd(args,·cwd=None):22 def·run_cmd(args,·cwd=None):
23 ····proc·=·subprocess.Popen(args,·stdout=subprocess.PIPE,23 ····proc·=·subprocess.Popen(args,·stdout=subprocess.PIPE,
24 ····························stderr=subprocess.PIPE,24 ····························stderr=subprocess.PIPE,
25 ····························cwd=cwd)25 ····························cwd=cwd)
26 ····output,·error·=·(str(s.decode()).strip()·for·s·in·proc.communicate())26 ····output,·error·=·(str(s.decode()).strip()·for·s·in·proc.communicate())
  
27 ····if·proc.returncode·!=·0:27 ····if·proc.returncode·!=·0·or·len(error)·>·0:
28 ········raise·Exception(proc.returncode,·error)28 ········raise·Exception(proc.returncode,·error)
29 ····return·output29 ····return·output
  
  
  
30 class·Version(object):30 class·Version(object):
31 ····"""31 ····"""
3.93 KB
./usr/lib/python3/dist-packages/param-None.egg-info/PKG-INFO
    
Offset 1, 17 lines modifiedOffset 1, 22 lines modified
1 Metadata-Version:·2.11 Metadata-Version:·2.1
2 Name:·param2 Name:·param
3 Version:·None3 Version:·None
4 Summary:·Declarative·Python·programming·using·Parameters. 
5 Home-page:·http://ioam.github.com/param/ 
6 Author:·IOAM4 Summary:·Make·your·Python·code·clearer·and·more·reliable·by·declaring·Parameters.
 5 Home-page:·http://param.holoviz.org/
 6 Author:·HoloViz
7 Author-email:·developers@topographica.org7 Author-email:·developers@holoviz.org
8 Maintainer:·IOAM8 Maintainer:·HoloViz
9 Maintainer-email:·developers@topographica.org9 Maintainer-email:·developers@holoviz.org
10 License:·BSD10 License:·BSD
 11 Project-URL:·Documentation,·https://param.holoviz.org/
 12 Project-URL:·Releases,·https://github.com/holoviz/param/releases
 13 Project-URL:·Bug·Tracker,·https://github.com/holoviz/param/issues
 14 Project-URL:·Source·Code,·https://github.com/holoviz/param
 15 Project-URL:·Panel·Examples,·https://panel.holoviz.org/user_guide/Param.html
11 Description:·|LinuxTests|_·|WinTests|_·|Coverage|_·|PyPIVersion|_·|PyVersion|_·|License|_16 Description:·|LinuxTests|_·|WinTests|_·|Coverage|_·|PyPIVersion|_·|PyVersion|_·|License|_
12 ········17 ········
13 ········Param18 ········Param
14 ········=====19 ········=====
15 ········20 ········
16 ········Param·is·a·library·providing·Parameters:·Python·attributes·extended·to21 ········Param·is·a·library·providing·Parameters:·Python·attributes·extended·to
17 ········have·features·such·as·type·and·range·checking,·dynamically·generated22 ········have·features·such·as·type·and·range·checking,·dynamically·generated
Offset 19, 25 lines modifiedOffset 24, 25 lines modified
19 ········inherited·from·parent·classes·if·not·specified·in·a·subclass.24 ········inherited·from·parent·classes·if·not·specified·in·a·subclass.
20 ········25 ········
21 ········Param·contains·only·two·required·Python·files,·with·no·external26 ········Param·contains·only·two·required·Python·files,·with·no·external
22 ········dependencies,·and·is·provided·freely·for·both·non-commercial·and27 ········dependencies,·and·is·provided·freely·for·both·non-commercial·and
23 ········commercial·use·under·a·BSD·license,·so·that·it·can·easily·be·included28 ········commercial·use·under·a·BSD·license,·so·that·it·can·easily·be·included
24 ········as·part·of·other·projects.29 ········as·part·of·other·projects.
25 ········30 ········
26 ········Please·see·`param's·website·<http://param.pyviz.org>`_·for31 ········Please·see·`param's·website·<http://param.holoviz.org>`_·for
27 ········official·releases,·installation·instructions,·documentation,·and·examples.32 ········official·releases,·installation·instructions,·documentation,·and·examples.
28 ········33 ········
29 ········..·|LinuxTests|·image::·https://travis-ci.org/pyviz/param.svg?branch=master34 ········..·|LinuxTests|·image::·https://travis-ci.org/holoviz/param.svg?branch=master
30 ········..·_LinuxTests:·https://travis-ci.org/pyviz/param35 ········..·_LinuxTests:·https://travis-ci.org/holoviz/param
31 ········36 ········
32 ········..·|WinTests|·image::·https://ci.appveyor.com/api/projects/status/1p5aom8o0tfgok1r?svg=true37 ········..·|WinTests|·image::·https://ci.appveyor.com/api/projects/status/jv1j2036g0a5t5qx/branch/master?svg=true
33 ········..·_WinTests:·https://ci.appveyor.com/project/pyviz/param/branch/master38 ········..·_WinTests:·https://ci.appveyor.com/project/holoviz-developers/param/branch/master
34 ········39 ········
35 ········..·|Coverage|·image::·https://img.shields.io/coveralls/pyviz/param.svg40 ········..·|Coverage|·image::·https://coveralls.io/repos/github/holoviz/param/badge.svg?branch=master
36 ········..·_Coverage:·https://coveralls.io/r/pyviz/param?branch=master41 ········..·_Coverage:·https://coveralls.io/github/holoviz/param?branch=master
37 ········42 ········
38 ········..·|PyPIVersion|·image::·http://img.shields.io/pypi/v/param.svg43 ········..·|PyPIVersion|·image::·http://img.shields.io/pypi/v/param.svg
39 ········..·_PyPIVersion:·https://pypi.python.org/pypi/param44 ········..·_PyPIVersion:·https://pypi.python.org/pypi/param
40 ········45 ········
41 ········..·|PyVersion|·image::·https://img.shields.io/pypi/pyversions/param.svg46 ········..·|PyVersion|·image::·https://img.shields.io/pypi/pyversions/param.svg
42 ········..·_PyVersion:·https://pypi.python.org/pypi/param47 ········..·_PyVersion:·https://pypi.python.org/pypi/param
43 ········48 ········
Offset 51, 14 lines modifiedOffset 56, 16 lines modified
51 Classifier:·Development·Status·::·5·-·Production/Stable56 Classifier:·Development·Status·::·5·-·Production/Stable
52 Classifier:·Programming·Language·::·Python·::·257 Classifier:·Programming·Language·::·Python·::·2
53 Classifier:·Programming·Language·::·Python·::·2.758 Classifier:·Programming·Language·::·Python·::·2.7
54 Classifier:·Programming·Language·::·Python·::·359 Classifier:·Programming·Language·::·Python·::·3
55 Classifier:·Programming·Language·::·Python·::·3.460 Classifier:·Programming·Language·::·Python·::·3.4
56 Classifier:·Programming·Language·::·Python·::·3.561 Classifier:·Programming·Language·::·Python·::·3.5
57 Classifier:·Programming·Language·::·Python·::·3.662 Classifier:·Programming·Language·::·Python·::·3.6
 63 Classifier:·Programming·Language·::·Python·::·3.7
 64 Classifier:·Programming·Language·::·Python·::·3.8
58 Classifier:·Operating·System·::·OS·Independent65 Classifier:·Operating·System·::·OS·Independent
59 Classifier:·Intended·Audience·::·Science/Research66 Classifier:·Intended·Audience·::·Science/Research
60 Classifier:·Intended·Audience·::·Developers67 Classifier:·Intended·Audience·::·Developers
61 Classifier:·Natural·Language·::·English68 Classifier:·Natural·Language·::·English
62 Classifier:·Topic·::·Scientific/Engineering69 Classifier:·Topic·::·Scientific/Engineering
63 Classifier:·Topic·::·Software·Development·::·Libraries70 Classifier:·Topic·::·Software·Development·::·Libraries
64 Provides:·param71 Provides:·param
648 B
./usr/share/doc/python3-param/changelog.Debian.gz
550 B
changelog.Debian
    
Offset 1, 12 lines modifiedOffset 1, 11 lines modified
 1 python-param·(1.10.1-1~jan+nur1)·fresh-releases;·urgency=low
1 python-param·(1.9.3-2~jan+unchanged1)·unchanged;·urgency=low 
  
2 ··*·Build·for·debian-janitor·apt·repository.2 ··*·Build·for·debian-janitor·apt·repository.
  
3 ·--·Debian·Janitor·<janitor@jelmer.uk>··Fri,·18·Dec·2020·12:58:30·-00003 ·--·Debian·Janitor·<janitor@jelmer.uk>··Mon,·29·Mar·2021·04:01:05·-0000
  
4 python-param·(1.9.3-2)·unstable;·urgency=medium4 python-param·(1.9.3-2)·unstable;·urgency=medium
  
5 ··*·Source·only·upload·for·migration·to·testing5 ··*·Source·only·upload·for·migration·to·testing
  
6 ·--·Sebastien·Delafond·<seb@debian.org>··Mon,·30·Nov·2020·10:03:01·+01006 ·--·Sebastien·Delafond·<seb@debian.org>··Mon,·30·Nov·2020·10:03:01·+0100