Skip to main content

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 to support the trait types for arrays.

  • TraitsUI to support GUI Views.

To build the full documentation one needs:

  • Sphinx version 2.1 or later.

  • The Enthought Sphinx Theme. (A version of the documentation can be built without this, but some formatting may be incorrect.)

Release files for traits 6.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for traits 6.2.0
File Size Uploaded
traits-6.2.0.tar.gz 9.5 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for traits 6.2.0
File
traits-6.2.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
traits-6.2.0-cp39-cp39-win32.whl CPython 3.9 CPython 3.9 Windows x86-32 Details
traits-6.2.0-cp39-cp39-manylinux2010_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.12+ x86-64 Details
traits-6.2.0-cp39-cp39-manylinux1_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.5+ x86-64 Details
traits-6.2.0-cp39-cp39-macosx_10_14_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.14+ x86-64 Details
traits-6.2.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
traits-6.2.0-cp38-cp38-win32.whl CPython 3.8 CPython 3.8 Windows x86-32 Details
traits-6.2.0-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details
traits-6.2.0-cp38-cp38-manylinux1_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.5+ x86-64 Details
traits-6.2.0-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details
traits-6.2.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
traits-6.2.0-cp37-cp37m-win32.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-32 Details
traits-6.2.0-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details
traits-6.2.0-cp37-cp37m-manylinux1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 Details
traits-6.2.0-cp37-cp37m-macosx_10_14_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64 Details
traits-6.2.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
traits-6.2.0-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
traits-6.2.0-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details
traits-6.2.0-cp36-cp36m-manylinux1_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 Details
traits-6.2.0-cp36-cp36m-macosx_10_14_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64 Details

Total release size: 109.8 MB

Release files / traits-6.2.0.tar.gz

Download URL traits-6.2.0.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
16fa1518b0778fd53bf0547e6a562b1787bf68c8f6b7995a13bd1902529fdb0c
BLAKE2b-256 checksum
How to use checksums
44f32fd5d25717536009cbc967449b5598fab7fe9466b84a758fc2f83ebd2c7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp39-cp39-win_amd64.whl

Download URL traits-6.2.0-cp39-cp39-win_amd64.whl
Size 5.0 MB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
6d8bad9e61a6c7eb282d6d60c6158fbfe9b22c6857a793affdf8b75a50fcd373
BLAKE2b-256 checksum
How to use checksums
46e4ad3bbba0c71d7069907dbebc99b4de95086e46d910b4db06b1e928252f42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp39-cp39-win32.whl

Download URL traits-6.2.0-cp39-cp39-win32.whl
Size 5.0 MB
Tags CPython 3.9 Windows x86-32
SHA-256 checksum
How to use checksums
9788017f02ba194591db84fce28eb83fbd910dd784cb98ae558c3305c9702914
BLAKE2b-256 checksum
How to use checksums
cfff649d334cc4f07076a2335de972ad9ee4f8bc263992c7d1085a82a4354c19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp39-cp39-manylinux2010_x86_64.whl

Download URL traits-6.2.0-cp39-cp39-manylinux2010_x86_64.whl
Size 5.1 MB
Tags CPython 3.9 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
7e080c5916d99bd9980a30cd6b4798c7b966d98f090c907dbf243cf5b3548899
BLAKE2b-256 checksum
How to use checksums
2af5ce3e4bcf0803033d090e0dffbababd9c31894bc6d3274684a98a9c63654e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp39-cp39-manylinux1_x86_64.whl

Download URL traits-6.2.0-cp39-cp39-manylinux1_x86_64.whl
Size 5.1 MB
Tags CPython 3.9 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
ad91cf6f8c5452febbc0087b6dd2c20581bdce695f52619826df9b345a02324b
BLAKE2b-256 checksum
How to use checksums
4c46c5aa45c4afd07a241d821eb237674045a9a2c76b63b53277abd7826b3246
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp39-cp39-macosx_10_14_x86_64.whl

Download URL traits-6.2.0-cp39-cp39-macosx_10_14_x86_64.whl
Size 5.0 MB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
71e78dec4ffe1ae0073fa1d96983a9a0fa43249f679c1cb8e3354d4ed6cd4d7c
BLAKE2b-256 checksum
How to use checksums
d7d744300ed86e76ddeecdc85ffd5ba76a0e00e6934c6f9131910ec0e7a9ea7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp38-cp38-win_amd64.whl

Download URL traits-6.2.0-cp38-cp38-win_amd64.whl
Size 5.0 MB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
9caf7edcde0d000c96971a719091f69d5f00fd6f04d9515f6b7ed20342b9032d
BLAKE2b-256 checksum
How to use checksums
4559787e0e0787a6d1a16f1e2242b71dead8884a4f53f8ae46d5f866bd58d9f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Release files / traits-6.2.0-cp38-cp38-win32.whl

Download URL traits-6.2.0-cp38-cp38-win32.whl
Size 5.0 MB
Tags CPython 3.8 Windows x86-32
SHA-256 checksum
How to use checksums
1077a97cb2f89a713b2bafd6d7800b2e623629e742e35bad96fd0d808b7011cd
BLAKE2b-256 checksum
How to use checksums
6c074da7ee884782960878d2bc05687538349885483ddbccd12d016b73095c8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Release files / traits-6.2.0-cp38-cp38-manylinux2010_x86_64.whl

Download URL traits-6.2.0-cp38-cp38-manylinux2010_x86_64.whl
Size 5.1 MB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
5e161352cf1fea7248f09e68bbb8c8ca6996482c8657f83da19a9e461829b0c3
BLAKE2b-256 checksum
How to use checksums
cd25610b3eda1b00f69fe2765b047deb16bc6b07f89f19d2f031309750e222d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp38-cp38-manylinux1_x86_64.whl

Download URL traits-6.2.0-cp38-cp38-manylinux1_x86_64.whl
Size 5.1 MB
Tags CPython 3.8 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
f42dd271169a6354ddbe1dc7b907a893a22ef594f9670dcb35b13979b6141804
BLAKE2b-256 checksum
How to use checksums
579b26a98bf06b735477ded8a5e23f4c9aa5900b9a81957dea6c27c7b4395d8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp38-cp38-macosx_10_14_x86_64.whl

Download URL traits-6.2.0-cp38-cp38-macosx_10_14_x86_64.whl
Size 5.0 MB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
8b5f6df6ce01ed9d12cab53b33fdfee52af220e7be55a2614764d7d889bed510
BLAKE2b-256 checksum
How to use checksums
4e456fc1c2a910435c1b98c6af3d9e4f7c33fa8ecbde1ea041492e07da16abb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

Release files / traits-6.2.0-cp37-cp37m-win_amd64.whl

Download URL traits-6.2.0-cp37-cp37m-win_amd64.whl
Size 5.0 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
3c2e3fdc8f9b50055a6793e98f402ff79386ac0a0b1db50f662df54b5331d182
BLAKE2b-256 checksum
How to use checksums
8e0099269352864856f906dd356f8abd30ceb8752a79ed674d75468218ba3c9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release files / traits-6.2.0-cp37-cp37m-win32.whl

Download URL traits-6.2.0-cp37-cp37m-win32.whl
Size 5.0 MB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
a600c53ecbcd0fcc7942d21218e2eeb232d20db466bbb0fd04f4ac3a9134ea9e
BLAKE2b-256 checksum
How to use checksums
1753d2c5b72cf01f7114de11e745d5b16b63534632df6be7fd33f189dc3ee50d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release files / traits-6.2.0-cp37-cp37m-manylinux2010_x86_64.whl

Download URL traits-6.2.0-cp37-cp37m-manylinux2010_x86_64.whl
Size 5.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
2934ce9c02d233d04cffd97d166f832da526a881f49989237c43d2a65e715095
BLAKE2b-256 checksum
How to use checksums
c540225cc2bba4c0466fdb5d9d67aac164bbe6320428eb11a71084be4338aceb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp37-cp37m-manylinux1_x86_64.whl

Download URL traits-6.2.0-cp37-cp37m-manylinux1_x86_64.whl
Size 5.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
2d68f6713f4cf53ff5db7f9670764682f8ed4cb79661b82506f268e1cd4e76e4
BLAKE2b-256 checksum
How to use checksums
fdd8f000b3df64afdba826931c4f5e9b6c0424e79b7e1b7ea361753f471b9167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp37-cp37m-macosx_10_14_x86_64.whl

Download URL traits-6.2.0-cp37-cp37m-macosx_10_14_x86_64.whl
Size 5.0 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
157b47dd3d1b5855c17f7e5fa5bdc76b553f26e8e671625128beb1d11c546f7c
BLAKE2b-256 checksum
How to use checksums
bfc0d7475939853f5df1a5e15508b0e6f201bcc60620f411f79596251381f492
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

Release files / traits-6.2.0-cp36-cp36m-win_amd64.whl

Download URL traits-6.2.0-cp36-cp36m-win_amd64.whl
Size 5.0 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
edb475bee3c84e90c198d1fbbaed8de74caf75327907b8df79246dcdef96db88
BLAKE2b-256 checksum
How to use checksums
c19dfbfd16bd73b1069635633c5044133f69ea6cd16dd5bf283238ff7e512f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

Release files / traits-6.2.0-cp36-cp36m-win32.whl

Download URL traits-6.2.0-cp36-cp36m-win32.whl
Size 5.0 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
e6a59af6da6f2bb8326d548be7f3f36d923134fa76b8ce99569cc0444b40b936
BLAKE2b-256 checksum
How to use checksums
bcb18a5ce8a8e057ce46f2218913a6f6ba2029746c8b28658fbc5ea3c1ef1a82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.8

Release files / traits-6.2.0-cp36-cp36m-manylinux2010_x86_64.whl

Download URL traits-6.2.0-cp36-cp36m-manylinux2010_x86_64.whl
Size 5.1 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
9fb6c7bdb95e7750a8a5c3ff09f5b51db0306a2fea5d108ecfdb800756fc6a6e
BLAKE2b-256 checksum
How to use checksums
16c2237decfb7d26bafcf2e758ec5c47d38fac60a596ab2ee370f005d654c9f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp36-cp36m-manylinux1_x86_64.whl

Download URL traits-6.2.0-cp36-cp36m-manylinux1_x86_64.whl
Size 5.1 MB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
0a27b4a836907b893b747c16bd6395d85e31d145e4464183b1eb8a281294165e
BLAKE2b-256 checksum
How to use checksums
b90f0bcafecc434fc2853b69bfbb3299103dfe735eef435265330cb4e1e41318
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / traits-6.2.0-cp36-cp36m-macosx_10_14_x86_64.whl

Download URL traits-6.2.0-cp36-cp36m-macosx_10_14_x86_64.whl
Size 5.0 MB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
7f5569ae105e9b6814027143f0f863a9ae92513f71cef509dab39709ca3f1503
BLAKE2b-256 checksum
How to use checksums
8a7d7454729e6dac28be8a5debde1e813be9be633157a8c008a1dd8fdaf33e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

Release history Release notifications | RSS feed

7.2.0

49 release files

7.1.0

49 release files

7.0.2

49 release files

7.0.1

49 release files

7.0.0

13 release files

6.4.1

59 release files

6.4.0

34 release files

6.3.2

34 release files

6.3.1

34 release files

This release

6.2.0 This release

21 release files

6.1.1

1 release file

6.1.0

1 release file

6.0.0

1 release file

5.2.0

1 release file

5.1.2

1 release file

5.1.1

1 release file

5.1.0

1 release file

5.0.0

1 release file

4.6.0

3 release files

4.5.0

1 release file

4.4.0

1 release file

4.3.0

4.2.0

4.1.0

4.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page