{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/2"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"PyHamcrest provides a framework for writing declarative matcher objects that enable flexible, readable assertions in unit tests and data validation scenarios.","skillfed_tags":["testing","matchers","assertions"],"use_cases":["Write unit tests with readable, composable assertions that fail precisely when behavior changes.","Validate UI or form input by matching against patterns for strings and regular expressions.","Filter or validate data structures using reusable matcher logic across multiple test cases.","Create custom matchers for domain-specific validation rules to eliminate test code duplication.","Build flexible test suites that distinguish between critical behavior changes and minor implementation details."],"what_it_does":"PyHamcrest is a matcher framework that lets you write test assertions as declarative rules rather than imperative comparisons. Instead of writing brittle equality checks, you compose matchers to express exactly what aspect of an object you're testing and to what precision. This helps tests stay readable and maintainable: they fail when behavior deviates from expectations but pass through minor, unrelated changes.\n\nThe library comes with matchers for objects, numbers, text, sequences, dictionaries, and logical combinations. You can also write custom matchers by subclassing BaseMatcher. PyHamcrest integrates naturally with unittest and other test frameworks. It has no runtime dependencies and supports Python 3.6 and later across CPython, PyPy, and Jython.","worth_installing":"Yes. PyHamcrest is stable (Production/Stable status), widely used (6393524 monthly downloads), has no dependencies, and carries a permissive BSD License. The aging maintenance status (last release 2023-10-22) is not a blocker for a mature, focused library\u2014it indicates stability rather than abandonment. Install it if you want more readable, maintainable test assertions."},"id":"pyhamcrest","links":{"html":"https://skillfed.io/packages/pyhamcrest","md":"https://skillfed.io/packages/pyhamcrest.md","pypi":"https://pypi.org/project/pyhamcrest/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2023-10-22","license_spdx":null,"license_treatment":"permissive","name":"PyHamcrest","python_support":"supports_current","summary":"Hamcrest framework for matcher objects"},"popularity":{"monthly_downloads":6393524,"position":1916,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.1.0"}
