--- id: traitlets version: "5.16.1" license: BSD 3-Clause License - Copyright (c) 2001-, IPython Development Team All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that… (full text in the JSON record) license_treatment: permissive maintenance: active --- # traitlets — Traitlets Python configuration system License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install traitlets uv add traitlets poetry add traitlets ## Description # Traitlets [![Tests](https://github.com/ipython/traitlets/actions/workflows/tests.yml/badge.svg)](https://github.com/ipython/traitlets/actions/workflows/tests.yml) [![Documentation Status](https://readthedocs.org/projects/traitlets/badge/?version=latest)](https://traitlets.readthedocs.io/en/latest/?badge=latest) [![Tidelift](https://tidelift.com/subscription/pkg/pypi-traitlets)](https://tidelift.com/badges/package/pypi/traitlets) | | | | ------------- | ------------------------------------ | | **home** | https://github.com/ipython/traitlets | | **pypi-repo** | https://pypi.org/project/traitlets/ | | **docs** | https://traitlets.readthedocs.io/ | | **license** | Modified BSD License | Traitlets is a pure Python library enabling: - the enforcement of strong typing for attributes of Python objects (typed attributes are called _"traits"_); - dynamically calculated default values; - automatic validation and coercion of trait attributes when attempting a change; - registering for receiving notifications when trait values change; - reading configuring values from files or from command line... ## AI interpretation — verify before relying Traitlets provides typed attributes for Python objects with automatic validation, coercion, dynamic defaults, and change notifications—a lightweight pure-Python alternative to the Enthought traits library that powers IPython and Jupyter configuration. Verdict: Traitlets is a mature, actively maintained library with zero known vulnerabilities, no external dependencies, and permissive licensing. It is well-suited for projects requiring declarative attribute typing and validation, particularly those integrating with IPython or Jupyter ecosystems. [View on SkillFed](https://skillfed.io/packages/traitlets) · [View on PyPI](https://pypi.org/project/traitlets/)