traitlets
issue294
  • Using Traitlets
  • Trait Types
  • Defining new trait types
  • Traitlets API reference
  • Configurable objects with traitlets.config
  • Utils
  • Migration from Traitlets 4.0 to Traitlets 4.1
  • Changes in Traitlets
traitlets
  • Docs »
  • Traitlets
  • Edit on GitHub

TraitletsΒΆ

Release:4.3.0.b1
Date:Sep 07, 2016

Traitlets is a framework that lets Python classes have attributes with type checking, dynamically calculated default values, and ‘on change’ callbacks.

The package also includes a mechanism to use traitlets for configuration, loading values from files or from command line arguments. This is a distinct layer on top of traitlets, so you can use traitlets in your code without using the configuration machinery.

  • Using Traitlets
    • Default values, and checking type and value
    • observe
    • Validation
  • Trait Types
    • Numbers
    • Strings
    • Containers
    • Classes and instances
    • Miscellaneous
  • Defining new trait types
  • Traitlets API reference
    • Dynamic default values
    • Callbacks when trait attributes change
    • Validating proposed changes
  • Configurable objects with traitlets.config
    • The main concepts
    • Configuration objects and files
    • Configuration files inheritance
    • Class based configuration inheritance
    • Command-line arguments
    • Design requirements
  • Utils
  • Migration from Traitlets 4.0 to Traitlets 4.1
    • Separation of metadata and keyword arguments in TraitType contructors
    • Deprecation of on_trait_change
    • The new @observe decorator
    • Deprecation of magic method for dynamic defaults generation
    • Deprecation of magic method for cross-validation
    • Backward-compatible upgrades
  • Changes in Traitlets
    • 4.3
    • 4.2
    • 4.1
    • 4.0
Next

© Copyright 2015, The IPython Development Team. Revision ea447538.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: issue294
Versions
latest
stable
issue303
issue294
changelog-redux
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.