360 Secure SkillHub
360 安全技能中心

Text Case Tool

这是一款纯Python编写的文本格式转换工具,无需API密钥,支持大写、小写、标题、驼峰、蛇形等9种格式互转。适用于编程命名规范统一、写作排版调整、数据格式转换等场景。用户通过命令行输入待转换文本及指定转换模式,即可快速得到对应格式的输出文本,操作便捷高效。

freedompixels
freedompixels
热度 16.10
最近更新 2026-05-14 06:56:46
分类:效率依赖:代码执行应用场景:数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add text-case-tool
Metadata
slug
text-case-tool
name
Text Case Converter
description
Convert text between different cases: UPPER, lower, Title, Sentence, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE. Pure Python, no API key required.
keywords
text, case, convert, uppercase, lowercase, camelcase, snake_case, kebab-case
version
1.0.0
author
Qiance
language
en

Text Case Converter

Convert text between different case formats. Useful for programming, writing, and data transformation.

Features

  • UPPER CASE: ALL CAPS
  • lower case: all lowercase
  • Title Case: First Letter Of Each Word
  • Sentence case: First letter only
  • camelCase: firstLetterLower
  • PascalCase: FirstLetterUpper
  • snake_case: words_with_underscores
  • kebab-case: words-with-hyphens
  • CONSTANT_CASE: WORDS_WITH_UNDERSCORES

Usage

# Upper case
python3 scripts/text_case.py "hello world" --upper

# Lower case
python3 scripts/text_case.py "HELLO WORLD" --lower

# Title case
python3 scripts/text_case.py "hello world" --title

# camelCase
python3 scripts/text_case.py "hello world" --camel

# snake_case
python3 scripts/text_case.py "HelloWorld" --snake

# kebab-case
python3 scripts/text_case.py "Hello World" --kebab

Examples

Input Mode Output
hello world --upper HELLO WORLD
HELLO WORLD --lower hello world
hello world --title Hello World
hello world --camel helloWorld
hello world --pascal HelloWorld
HelloWorld --snake hello_world
hello world --kebab hello-world

中文说明

文本大小写转换工具,支持多种格式:大写、小写、标题、驼峰、蛇形、短横线等。