python-traits4 – Manifest typing and reactive programming for Python

The traits package provides a metaclass with special attributes that are called traits. A trait is a type definition that can be used for normal Python object attributes, giving the attributes some additional characteristics:

  • Initialization: A trait attribute can have a default value
  • Validation: A trait attribute is manifestly typed.
  • Delegation: The value of a trait attribute can be contained in another object
  • Notification: Setting the value of a trait attribute can fired callbacks
  • Visualization: With the TraitsUI package, GUIs can be generated automatically from traited objects.
Package availability chart
Distribution Base version Our version Architectures
Debian GNU/Linux 7.0 (wheezy) 4.1.0-1 4.0.0-1~cbp0~nd70+1  
Debian GNU/Linux 8.0 (jessie) 4.4.0-1 4.0.0-1~cbp0~nd70+1  
Debian GNU/Linux 9.0 (stretch) 4.6.0-1 4.0.0-1~cbp0~nd70+1+nd90+1 i386, amd64
Debian testing (buster) 4.6.0-1    
Debian unstable (sid) 4.6.0-1    
Ubuntu 12.04 LTS “Precise Pangolin” (precise) 4.0.0-1build1 4.0.0-1~cbp1~nd11.04+1+nd11.10+1+nd12.04+1 i386, amd64
Ubuntu 14.04 “Trusty Tahr” (trusty) 4.1.0-1ubuntu4    
Ubuntu 16.04 “Xenial Xerus” (xenial) 4.5.0-1ubuntu2    
Ubuntu 16.10 “Yakkety Yak” (yakkety) 4.5.0-1ubuntu2    
Ubuntu 17.04 “Zesty Zapus” (zesty) 4.6.0-1    
Ubuntu 17.10 “Artful Aardvark” (artful) 4.6.0-1ubuntu2    

Comments

blog comments powered by Disqus