skillfed

casefy

Utilities for string case conversion.

casefy v1.1.0 2.4M downloads/30d#3,090 on PyPI31
Permissive 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) AGING released

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 casefy

uv

uv add casefy

poetry

poetry add casefy

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Text ProcessingTopic :: Utilities

Tags

string case conversioncamelcase snake_case convertertext casing utilitiescase converter librarystring formatting caseconvert between naming conventionspascalcase camelcase transformer
string-utilitiestext-processing

More Utilities packages