skillfed

pyheck

Python bindings for heck, the Rust case conversion library

pyheck v0.1.5 285.3K downloads/30d#8,055 on PyPI50
Permissive license MIT License Copyright (c) 2022 Kevin Heavey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal… (full text in the JSON record) Abandoned released

What it is and what it does

PyHeck is a thin Python wrapper around the Rust heck library that converts strings between different naming conventions. It provides functions to transform text into snake_case, camelCase, and other case styles commonly used in code generation, API design, and data serialization. The package is implemented as compiled Rust bindings, making it fast for bulk conversions.

The package has been abandoned since early 2022 with no maintenance or updates since then. While it carries no known vulnerabilities, its lack of active development means bug fixes and feature additions are unlikely. It works with Python 3.7 and later across common platforms via precompiled wheels.

Use it for:

  • Convert API response field names from snake_case to camelCase for JavaScript clients.
  • Transform database column names to Python variable naming conventions during ORM mapping.
  • Normalize user input or configuration keys to a consistent case style for comparison.
  • Generate code or configuration files that require specific naming conventions.
  • Batch-process strings in data pipelines where case conversion is a preprocessing step.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Converts strings between case styles (snake_case, camelCase, etc.) via Python bindings to the Rust heck library.

Yes, if you need lightweight case conversion and can accept an unmaintained package. The library is stable, has no known vulnerabilities, and the core functionality is unlikely to break. However, do not use it if you require ongoing maintenance, bug fixes, or support for new Python versions beyond 3.7. For active projects, consider a maintained pure-Python alternative.

Install

pyheck on PyPI

pip

pip install pyheck

uv

uv add pyheck

poetry

poetry add pyheck

Installing pyheck

Before you install

Medium install friction due to compiled wheels; package is abandoned (last release 2022-02-18, no commits since 2022-07-18), so no maintenance or security updates are forthcoming.

License in practice

MIT License permits commercial and private use with minimal restrictions; you must retain the copyright notice and license text.

Quickstart

pip install pyheck

from pyheck import snake
result = snake("We carry a new world here, in our hearts.")
print(result)  # 'we_carry_a_new_world_here_in_our_hearts'

Requires Python >= 3.7; wheels are precompiled for common platforms but installation may require a Rust toolchain on unsupported architectures.

Verify before relying

  • What case conversion functions are available beyond snake() (e.g., camelCase, PascalCase, kebab-case support).
  • Whether the package handles edge cases like consecutive capitals, numbers, or special characters consistently.
  • Performance characteristics compared to pure-Python alternatives for large-scale conversions.

Package facts

License MIT License Copyright (c) 2022 Kevin Heavey Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.7)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance abandoned — 1,638 days since the last release
Last repo commit
First released
Downloads 285,285/month — #8,055 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyheck-0.1.5-cp37-abi3-macosx_10_7_x86_64.whl; pyheck-0.1.5-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl; pyheck-0.1.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; pyheck-0.1.5-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; pyheck-0.1.5-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; pyheck-0.1.5-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl; pyheck-0.1.5-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl; pyheck-0.1.5-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl; pyheck-0.1.5-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl; pyheck-0.1.5-cp37-abi3-musllinux_1_2_aarch64.whl; pyheck-0.1.5-cp37-abi3-musllinux_1_2_armv7l.whl; pyheck-0.1.5-cp37-abi3-musllinux_1_2_i686.whl; pyheck-0.1.5-cp37-abi3-musllinux_1_2_x86_64.whl; pyheck-0.1.5-cp37-abi3-win32.whl; pyheck-0.1.5-cp37-abi3-win_amd64.whl

Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Rust

Tags

case conversion librarysnake case camel casestring case conversiontext case transformationnaming convention convertercase style converterstring formatting case
string-utilitiesrust-bindingsabandoned

More Text Processing packages