case-conversion
Convert between different types of cases (unicode supported)
Decision gist · record as of 2026-08-14
Yes. The package is stable (production-rated), has zero dependencies, supports modern Python versions, and solves a common string-manipulation problem cleanly. The MIT license poses no barriers. The only minor note is that it's aging (352 days since last release), but the recent repository activity and lack of open issues suggest it's mature rather than abandoned. Install it if you need case conversion; it's lightweight and reliable.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: zero runtime dependencies, pure Python wheel, supports Python 3.10+.
- Last commit was recent (2025-08-27), though the package is marked as aging with 352 days since the last release.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows use in most projects without restriction. No license-based barriers to adoption.
last release 2025-08-27 (352 days) · last repo commit 2025-08-27 · 18 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 614,227 downloads/mo, #5,749 on PyPI
Alternatives
Verify before relying
pip install case-conversion
from case_conversion import Converter
converter = Converter()
print(converter.camel("FOO_BAR_STRING")) # 'fooBarString'
# Or use convenience functions:
import case_conversion
print(case_conversion.snake("fooBarString")) # 'foo_bar_string'- Performance characteristics on very large strings or bulk conversions are not documented.
- Whether the acronym detection algorithm handles all edge cases or has known limitations.
What it is and what it does
case-conversion is a Python package that converts text between different naming conventions—camelCase, snake_case, kebab-case, PascalCase, CONST_CASE, and many others—without requiring you to specify which format the input is in. It automatically detects the source case, handles acronyms intelligently (so HTTPError stays together rather than splitting on each capital letter), and fully supports Unicode characters including accented letters. The package is dependency-free and works by exposing both a Converter class for fine-grained control and top-level convenience functions for quick conversions.
It originated as a port of a Sublime Text plugin and has been maintained since 2016. The core use case is anywhere you need to normalize or transform identifier names—code generation, API clients, configuration tools, or any system that needs to convert between naming conventions while preserving meaning. You can initialize a Converter with custom acronyms if the built-in detection doesn't match your domain's terminology.
Use it for
- Generate code or variable names in different languages that use different case conventions (e.g., Python snake_case from camelCase API responses).
- Normalize user input or configuration keys to a canonical case format for comparison or storage.
- Build CLI tools or code generators that output identifiers in the target language's preferred case style.
- Parse and convert between naming conventions in API clients or data transformation pipelines.
- Handle acronyms correctly when converting domain-specific terms (e.g., HTTPError, XMLParser) across case formats.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is stable (production-rated), has zero dependencies, supports modern Python versions, and solves a common string-manipulation problem cleanly. The MIT license poses no barriers. The only minor note is that it's aging (352 days since last release), but the recent repository activity and lack of open issues suggest it's mature rather than abandoned. Install it if you need case conversion; it's lightweight and reliable.
Install
case-conversion on PyPI
Before you install
Low friction: zero runtime dependencies, pure Python wheel, supports Python 3.10+. Last commit was recent (2025-08-27), though the package is marked as aging with 352 days since the last release.
Requires Python 3.10 or later.
License in practice
MIT license (permissive) allows use in most projects without restriction. No license-based barriers to adoption.
Quickstart
pip install case-conversion
from case_conversion import Converter
converter = Converter()
print(converter.camel("FOO_BAR_STRING")) # 'fooBarString'
# Or use convenience functions:
import case_conversion
print(case_conversion.snake("fooBarString")) # 'foo_bar_string'
Verify before relying
- Performance characteristics on very large strings or bulk conversions are not documented.
- Whether the acronym detection algorithm handles all edge cases or has known limitations.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 352 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 614,227 / month, #5,749 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13 |
Evidence: case_conversion-3.0.2-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 › “convert between case formats”
- case-conversionConverts strings between any case format (camelCase, snake_case,…
- textcaseConverts strings between different text case formats (snake_case,…
- camel-converterConverts strings and dictionary keys between camelCase, snake_case,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also case-convert · casefy · textcase · titlecase · boa-str · pyhumps · camel-converter · pyheck · humps · vokativ