--- id: traittypes version: "0.2.3" license: BSD license_treatment: permissive maintenance: aging --- # traittypes — Scipy trait types License: permissive · Maintenance: aging · Downloads: 1.4M/mo ## What it is and what it does traittypes extends the traitlets validation framework with custom attribute types designed for scientific computing workflows. It sits on top of traitlets, which provides a system for declaring typed, validated attributes on Python classes; traittypes adds domain-specific types that are commonly needed in scientific and numerical work. The package is typically used within interactive environments or frameworks that rely on traitlets for configuration and attribute management—such as Jupyter, IPython, or scientific applications. It allows developers to declare attributes with scientific semantics (arrays, matrices, etc.) that automatically validate and coerce input data, reducing boilerplate validation code in scientific applications. Use it for: - Define validated array or matrix attributes in scientific model classes without manual type-checking. - Build interactive scientific tools in Jupyter or IPython that need type-safe numerical data attributes. - Extend traitlets-based frameworks with scipy-aware attribute types for data science workflows. - Create configuration classes for scientific applications that require validated numerical inputs. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides custom trait types for scientific computing, extending the traitlets validation framework with domain-specific attribute types. Yes, if you are already using traitlets in a scientific computing context and need validated scientific data types. The low install friction and permissive license make it a safe addition. However, the aging maintenance status (296 days since last release) means you should verify that the trait types you need are already implemented and stable; expect no active development or rapid responses to issues. ## Install pip install traittypes uv add traittypes poetry add traittypes ## Installing traittypes Before you install: Low install friction with a single dependency on traitlets. Maintenance status is aging—last release was 296 days ago—so expect no active development or rapid bug fixes. License in practice: BSD license is permissive, allowing commercial and private use with minimal restrictions; attribution required. Quickstart: pip install traittypes from traittypes import Array from traitlets import HasTraits class Model(HasTraits): data = Array() Verify before relying: - Specific trait types provided (e.g., Array, DataFrame) and their exact signatures are not detailed in the fact sheet. - Whether scipy is an optional or required runtime dependency beyond traitlets is unclear. - Current maintenance status and whether the package is actively maintained or in maintenance-only mode. ## Package facts - License: BSD (permissive) - Python support: unspecified - Install friction: low - Maintenance: aging - Downloads: 1.4M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags trait types scientific computing, traitlets extensions scipy, custom attribute validation, scientific data types, trait validation framework, scientific-computing, type-validation [View on SkillFed](https://skillfed.io/packages/traittypes) · [View on PyPI](https://pypi.org/project/traittypes/)