pyhumps
🐫 Convert strings (and dictionary keys) between snake case, camel case and pascal case in Python. Inspired by Humps for Node
Decision gist · record as of 2026-08-14
Yes. pyhumps is a stable, zero-dependency utility with no known vulnerabilities, permissive licensing, and broad Python version support. It solves a common data-transformation problem cleanly. The dormant maintenance status is acceptable for a mature utility that does one thing well; however, if you need active support or expect breaking changes in future Python versions, flag this for periodic review.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction install with no runtime dependencies.
- Maintenance is dormant—last release was 2022-10-21 and last commit 2024-08-03—but the package remains available and stable.
License · maintenance · safety
The Unlicense (Unlicense) (permissive) — Licensed under The Unlicense (Unlicense), a permissive public-domain-equivalent license with no restrictions on use, modification, or distribution.
last release 2022-10-21 (1393 days) · last repo commit 2024-08-03 · 356 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,095,085 downloads/mo, #1,787 on PyPI
Alternatives
Verify before relying
pip install pyhumps
import pyhumps
pyhumps.camelize("jack_in_the_box") # jackInTheBox
pyhumps.decamelize("rubyTuesdays") # ruby_tuesdays
pyhumps.pascalize("red_robin") # RedRobin
pyhumps.kebabize("white_castle") # white-castle- Whether the dormant maintenance status (last release 2022-10-21) poses a risk for future Python version compatibility or edge-case bug fixes.
- Support for Python versions beyond 3.10 given the last release date.
What it is and what it does
pyhumps is a lightweight string and dictionary-key case converter for Python. It transforms between snake_case, camelCase, PascalCase, and kebab-case, and provides checker functions to validate what case a string is already in. The package has no runtime dependencies and works across Python 3.6, 3.7, 3.8, 3.9, and 3.10 on both CPython and PyPy.
Typical use cases include normalizing API responses (e.g., converting camelCase JSON keys from external APIs into snake_case for Python code), preparing data for external services that expect a different naming convention, and validating or asserting the case of identifiers. The description includes a cookbook example of wrapping Boto3 to transparently convert between AWS API conventions and Pythonic naming.
Use it for
- Normalize camelCase JSON responses from REST APIs into snake_case Python dictionaries for idiomatic code.
- Convert snake_case Python function arguments to camelCase before sending to external APIs or services.
- Validate that configuration keys or identifiers conform to an expected naming convention.
- Wrap third-party libraries to transparently convert between their naming conventions and yours.
- Handle acronyms and abbreviations correctly when converting between cases (e.g., APIResponse → api_response).
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pyhumps is a stable, zero-dependency utility with no known vulnerabilities, permissive licensing, and broad Python version support. It solves a common data-transformation problem cleanly. The dormant maintenance status is acceptable for a mature utility that does one thing well; however, if you need active support or expect breaking changes in future Python versions, flag this for periodic review.
Install
pyhumps on PyPI
Before you install
Low friction install with no runtime dependencies. Maintenance is dormant—last release was 2022-10-21 and last commit 2024-08-03—but the package remains available and stable.
License in practice
Licensed under The Unlicense (Unlicense), a permissive public-domain-equivalent license with no restrictions on use, modification, or distribution.
Quickstart
pip install pyhumps
import pyhumps
pyhumps.camelize("jack_in_the_box") # jackInTheBox
pyhumps.decamelize("rubyTuesdays") # ruby_tuesdays
pyhumps.pascalize("red_robin") # RedRobin
pyhumps.kebabize("white_castle") # white-castle
Verify before relying
- Whether the dormant maintenance status (last release 2022-10-21) poses a risk for future Python version compatibility or edge-case bug fixes.
- Support for Python versions beyond 3.10 given the last release date.
Package facts
| License | The Unlicense (Unlicense) permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,393 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,095,085 / month, #1,787 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: pyhumps-3.8.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “camelcase pascalcase snake case”
- pyhumpsConverts strings and dictionary keys between snake_case, camelCase,…
- boa-strConverts strings to snake_case by normalizing case, stripping…
- case-conversionConverts strings between any case format (camelCase, snake_case,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also camel-converter · humps · pyheck · case-convert · stringcase · case-conversion · pockets · djangorestframework-camel-case · boa-str · casefy