Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
traits / METADATA
Size: Mime:
Metadata-Version: 2.1
Name: traits
Version: 6.4.1
Summary: Observable typed attributes for Python classes
Home-page: http://docs.enthought.com/traits
Download-URL: https://pypi.python.org/pypi/traits
Author: Enthought
Author-email: info@enthought.com
License: BSD
Project-URL: Issue Tracker, https://github.com/enthought/traits/issues
Project-URL: Documentation, https://docs.enthought.com/traits
Project-URL: Source Code, https://github.com/enthought/traits
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
License-File: LICENSE-CC-BY-3.0.txt
License-File: LICENSE.txt
Provides-Extra: docs
Requires-Dist: enthought-sphinx-theme ; extra == 'docs'
Requires-Dist: Sphinx (>=2.1.0) ; extra == 'docs'
Requires-Dist: sphinx-copybutton ; extra == 'docs'
Provides-Extra: examples
Requires-Dist: numpy ; extra == 'examples'
Requires-Dist: pillow ; extra == 'examples'
Provides-Extra: test
Requires-Dist: Cython ; extra == 'test'
Requires-Dist: flake8 ; extra == 'test'
Requires-Dist: flake8-ets ; extra == 'test'
Requires-Dist: mypy ; extra == 'test'
Requires-Dist: numpy ; extra == 'test'
Requires-Dist: pyface ; extra == 'test'
Requires-Dist: setuptools ; extra == 'test'
Requires-Dist: Sphinx (>=2.1.0) ; extra == 'test'
Requires-Dist: traitsui ; extra == 'test'
Requires-Dist: PySide2 ; (python_version < "3.8") and extra == 'test'
Requires-Dist: PySide6 ; (python_version >= "3.8" and python_version < "3.11") and extra == 'test'

======================================================
Traits: observable typed attributes for Python classes
======================================================

http://docs.enthought.com/traits

The Traits project is at the center of all Enthought Tool Suite development
and has changed the mental model used at Enthought for programming in the
already extremely efficient Python programming language. We encourage everyone
to join us in enjoying the productivity gains from using such a powerful
approach.

The Traits project allows Python programmers to use a special kind of type
definition called a *trait*, which gives object attributes some additional
characteristics:

- **Initialization**: A trait has a *default value*, which is
  automatically set as the initial value of an attribute before its
  first use in a program.
- **Validation**: The type of a trait attribute is *explicitly declared*. The
  type is evident in the code, and only values that meet a
  programmer-specified set of criteria (i.e., the trait definition) can
  be assigned to that attribute.
- **Delegation**: The value of a trait attribute can be contained either
  in the defining object or in another object *delegated* to by the
  trait.
- **Notification**: Setting the value of a trait attribute can *notify*
  other parts of the program that the value has changed.
- **Visualization**: User interfaces that allow a user to *interactively
  modify* the value of a trait attribute can be automatically
  constructed using the trait's definition. (This feature requires that
  a supported GUI toolkit be installed. If this feature is not used, the
  Traits project does not otherwise require GUI support.)

A class can freely mix trait-based attributes with normal Python attributes,
or can opt to allow the use of only a fixed or open set of trait attributes
within the class. Trait attributes defined by a class are automatically
inherited by any subclass derived from the class.

Dependencies
------------

Traits requires Python >= 3.6.

Traits has the following optional dependencies:

* `NumPy <http://pypi.python.org/pypi/numpy>`_ to support the trait types
  for arrays.
* `TraitsUI <https://pypi.python.org/pypi/traitsui>`_ to support GUI
  Views.

To build the full documentation one needs:

* `Sphinx <https://pypi.org/project/Sphinx>`_ version 2.1 or later.
* The `Enthought Sphinx Theme <https://pypi.org/project/enthought-sphinx-theme>`_.
  (A version of the documentation can be built without this, but
  some formatting may be incorrect.)