Python bindings for heck, the Rust case conversion library
Likely abandoned. No release or commit for years (last release over 4 years ago).
Consider insteadcamel-converterPythie’s Index: 841.7M downloads/moCompare →
pip install pyheckpyheck
PyHeck is a case conversion library (for converting strings to snake_case, camelCase etc). It is a thin wrapper around the Rust library heck.
Installation
pip install pyheck
Note: requires Python >= 3.7.
Example
>>> from pyheck import snake
>>> snake("We carry a new world here, in our hearts.")
'we_carry_a_new_world_here_in_our_hearts'
Development
Setup
- Install poetry
- Install dev dependencies:
poetry install
- Activate the poetry shell:
poetry shell
Testing
- Run
maturin developto compile the Rust code. - Run
make fmt,make lint, andmake test.