casefy
Utilities for string case conversion.
What it is and what it does
Casefy is a lightweight string-casing utility that converts text between naming conventions like camelCase, snake_case, kebab-case, PascalCase, CONST_CASE, Title Case, and several others. It handles Unicode characters and offers options like keeping certain substrings together during conversion or using custom separators. The package has no third-party dependencies, making it a minimal addition to any project that needs to normalize or transform string casing—common in code generation, API design, configuration handling, and data transformation pipelines.
The API is straightforward: each casing style has a dedicated function (e.g., `casefy.camelcase()`, `casefy.snakecase()`), and most conversions work by parsing the input string into tokens and reassembling them according to the target convention. The package supports Python 3.6 through 3.13 and is marked Production/Stable, though maintenance activity has slowed since its 2022 launch.
Use it for:
- Convert API response field names from snake_case to camelCase for JavaScript clients.
- Normalize database column names to PascalCase for code generation or ORM mapping.
- Transform user input or configuration keys between naming conventions in data pipelines.
- Generate variable or function names programmatically in code generation tools.
- Standardize log output or report headers by converting identifiers to Title Case or CONST_CASE.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Casefy converts strings between different casing conventions (camelCase, snake_case, kebab-case, PascalCase, CONST_CASE, and others) with Unicode support and no external dependencies.
Yes. Casefy is a stable, zero-dependency utility that solves a common string-handling problem. Its lightweight design and broad Python version support make it a safe choice for projects needing case conversion. The aging maintenance status (525 days since last release) is not a blocker—the package is feature-complete and has no known vulnerabilities—but do not expect rapid updates if issues arise.
Install
casefy on PyPI
pip
pip install casefyuv
uv add casefypoetry
poetry add casefyInstalling casefy
Before you install
Installs with zero runtime dependencies as a pure Python wheel. Last release was 525 days ago; the repository remains active with a recent commit on 2025-03-07, though the project is aging relative to its initial release in 2022.
License in practice
MIT License permits commercial and private use, modification, and redistribution with minimal restrictions—only requiring preservation of copyright and license notices. No compliance burden for most use cases.
Quickstart
pip install casefy
import casefy
string = casefy.camelcase("foo_bar")
print(string) # fooBar
string = casefy.snakecase("fooBar")
print(string) # foo_bar
Package facts
| License | MIT License Copyright (c) 2022-2025 Diego Miguel Lozano Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 525 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,388,626/month — #3,090 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: casefy-1.1.0-py3-none-any.whl
Keywords: case, case-converter, casefy, casing
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
case-conversionConverts strings between any case format…
permissive · top 15,000 on PyPI
stringcaseConverts strings between different naming…
permissive · top 5,000 on PyPI
textcaseConverts strings between different text case…
permissive · top 15,000 on PyPI
case-converterConverts strings between different naming…
permissive · top 15,000 on PyPI
pyhumpsConverts strings and dictionary keys between…
permissive · top 5,000 on PyPI
boa-strConverts strings to snake_case by normalizing…
permissive · top 5,000 on PyPI
pyheckConverts strings between case styles…
permissive · top 15,000 on PyPI
inflectionInflection singularizes and pluralizes English…
permissive · top 1,000 on PyPI
StrEnumStrEnum is a string-based enum class that…
permissive · top 1,000 on PyPI
humpsConverts strings to camelCase format, handling…
copyleft · top 15,000 on PyPI