{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/7"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"A pytest plugin that runs doctests embedded in Cython `.pyx` extension modules, enabling documentation-driven testing of C/C++ code compiled through Cython.","skillfed_tags":["cython","doctest","testing"],"use_cases":["Verify that code examples in Cython module docstrings execute correctly as part of your test suite.","Document C/C++ extension behavior through executable examples without maintaining separate test files.","Catch documentation drift in Cython projects by running doctests alongside unit tests in CI/CD.","Test the public API of compiled Cython modules by embedding doctests in `.pyx` files."],"what_it_does":"pytest-cython is a pytest plugin that extends pytest's doctest discovery and execution to Cython `.pyx` source files. It allows you to write and run doctests directly in docstrings of Cython extension modules, treating them as executable documentation that pytest can validate. This bridges the gap between Cython's compiled C/C++ extensions and Python's standard doctest workflow, letting developers verify that code examples in their Cython module documentation actually work.\n\nThe plugin integrates seamlessly with pytest's command-line interface via the `--doctest-cython` flag. It has a single runtime dependency on pytest itself, making installation straightforward. Compatibility is versioned: the current 0.4.x release targets pytest 9 and Cython 3. The package has been maintained since 2016 and remains actively developed, with no known security vulnerabilities.","worth_installing":"Yes, if you maintain Cython extensions and want to validate embedded documentation. The plugin is low-friction (one dependency, pure Python), actively maintained, and has no security issues. The main caveat: license terms are undocumented in the package metadata\u2014verify the actual license in the repository before use in proprietary or restricted contexts. Not applicable if you don't use Cython or don't write doctests."},"id":"pytest-cython","links":{"html":"https://skillfed.io/packages/pytest-cython","md":"https://skillfed.io/packages/pytest-cython.md","pypi":"https://pypi.org/project/pytest-cython/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-11","license_spdx":null,"license_treatment":"unclear","name":"pytest-cython","python_support":"supports_current","summary":"A plugin for testing Cython extension modules."},"popularity":{"monthly_downloads":281417,"position":8097,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.4.0"}
