{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/6"}],"enrichment":{"capability":"Trafaret validates and transforms foreign data (JSON, configs, user input) against schemas you define, with support for custom error messages and async checking.","skillfed_tags":["validation","schema-checking","data-transformation"],"use_cases":["Validate JSON payloads in web APIs before processing, catching malformed or missing fields early","Check and transform configuration files (YAML, JSON, TOML) at startup to ensure required keys and correct types","Validate and normalize form submissions in web applications, converting string inputs to the correct types","Build data pipelines that require strict schema enforcement, transforming data as it flows through stages","Parse and validate user input in CLI tools, ensuring arguments and options meet expected formats"],"what_it_does":"Trafaret is a validation and data transformation library that lets you define schemas to check and convert incoming data\u2014configs, JSON, form submissions, or any structured input. You write a schema once (using a shorthand syntax or composable validator objects), then call it to validate and transform data; if the data doesn't match, you get detailed error messages showing exactly what failed and where.\n\nThe library supports custom error messages, context passing during validation, and async checking via async_check. It has no runtime dependencies, making it lightweight to add to a project. However, the package has been abandoned since April 2022 with no recent commits, so it receives no maintenance or security updates.","worth_installing":"Yes, if you need a lightweight, dependency-free validation library and can accept that the package is no longer maintained. The API is stable and works well for straightforward schema validation tasks. No, if you require active maintenance, security updates, or support for the latest Python versions\u2014consider an actively maintained alternative like Pydantic or Marshmallow instead."},"id":"trafaret","links":{"html":"https://skillfed.io/packages/trafaret","md":"https://skillfed.io/packages/trafaret.md","pypi":"https://pypi.org/project/trafaret/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-04-01","license_spdx":null,"license_treatment":"permissive","name":"trafaret","python_support":"unspecified","summary":"Validation and parsing library"},"popularity":{"monthly_downloads":964396,"position":4625,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.1.1"}
