textcase
Python library for text case conversions.
Decision gist · record as of 2026-08-14
Yes. textcase is lightweight (zero dependencies), actively maintained, well-tested, and solves a common string-manipulation task cleanly. Install it if you need reliable case conversion; the low friction and permissive license make it a safe addition to any project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with zero runtime dependencies and active maintenance.
- Last commit 2026-08-08, 236 repository stars, and 125731 monthly downloads indicate steady adoption.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.
last release 2025-10-10 (308 days) · last repo commit 2026-08-08 · 236 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 125,731 downloads/mo, #11,803 on PyPI
Alternatives
Verify before relying
pip install textcase
import textcase
textcase.snake("Hello, world!") # hello_world
textcase.camel("Hello, world!") # helloWorld
textcase.pascal("Hello, world!") # HelloWorld- Whether the library's handling of acronyms and non-ASCII boundaries covers all real-world edge cases beyond the documented examples
- Performance characteristics when processing very large strings or high-volume batch conversions
What it is and what it does
textcase is a pure-Python library for converting strings between different text case formats—snake_case, kebab-case, camelCase, PascalCase, CONSTANT_CASE, and others. It handles word boundary detection automatically, including acronyms (e.g., "HTTPRequest"), non-ASCII characters, and punctuation, without requiring regex or external dependencies. The library is fully type-annotated and carries 100% test coverage.
You import it and call functions like `textcase.snake()`, `textcase.camel()`, or `textcase.pascal()` on any string. It's useful when you need to normalize identifiers across different naming conventions—for instance, converting API response field names to Python variable names, or generating code identifiers from user input. With zero dependencies and a small footprint, it's safe to add to any project.
Use it for
- Convert API response field names (often snake_case) to camelCase for JavaScript or PascalCase for C#
- Generate valid Python variable or function names from user-provided strings or external data
- Normalize configuration keys or environment variable names across different naming conventions
- Transform database column names to match code style conventions in ORM or data mapping layers
- Build code generators or template systems that need to adapt identifiers to target language conventions
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
textcase is lightweight (zero dependencies), actively maintained, well-tested, and solves a common string-manipulation task cleanly. Install it if you need reliable case conversion; the low friction and permissive license make it a safe addition to any project.
Install
textcase on PyPI
Before you install
Low friction: pure Python wheel with zero runtime dependencies and active maintenance. Last commit 2026-08-08, 236 repository stars, and 125731 monthly downloads indicate steady adoption.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install textcase
import textcase
textcase.snake("Hello, world!") # hello_world
textcase.camel("Hello, world!") # helloWorld
textcase.pascal("Hello, world!") # HelloWorld
Verify before relying
- Whether the library's handling of acronyms and non-ASCII boundaries covers all real-world edge cases beyond the documented examples
- Performance characteristics when processing very large strings or high-volume batch conversions
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 308 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 125,731 / month, #11,803 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishNatural Language :: RussianOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text ProcessingTopic :: Text Processing :: LinguisticTyping :: Typed |
Evidence: textcase-0.4.5-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 › “text case conversion”
- textcaseConverts strings between different text case formats (snake_case,…
- pyheckConverts strings between case styles (snake_case, camelCase, etc.)…
- humpsConverts strings to camelCase format, handling spaces, case…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also case-conversion · case-converter · jinja2-strcase · casefy · stringcase · humps · pyheck · case-convert · boa-str · StrEnum