pyheck is a Python library that provides efficient case conversion functionalities, acting as a thin wrapper around the high-performance Rust library `heck`. It supports various case conversions like snake_case, camelCase, kebab-case, and their uppercase variants. Intended to be unicode-aware, consistent, and fast, it claims 5-10x performance benefits over Python's `inflection` library for similar tasks. The current version is 0.1.5, released on February 18, 2022, indicating an infrequent release cadence since its initial development.
pip install pyheckVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing individual case conversion functions and converting a single string, as well as using a `_many` function for a list of strings.
Consult `pyheck`'s documentation for specific function behavior and test critical edge cases during migration.
Use `from pyheck import function_many` and pass a list of strings for bulk conversions to maximize performance.
Ensure the specific function is imported: `from pyheck import snake`.
Import and use the specific conversion function, like `from pyheck import snake; snake('some text')`.