Skip to main content

A utility library for string manipulation

Project description

stringutils

stringutils is a Python library for various string manipulation tasks.

Features

  • Convert strings to snake_case
  • Convert strings to camelCase
  • Remove special characters from strings
  • Normalize whitespace in strings

Installation

You can install the library using pip:

pip install stringutils

Usage

Here are some examples of how to use the library:

from stringutils import to_snake_case, to_camel_case, remove_special_characters, normalize_whitespace

# Convert to snake_case
print(to_snake_case('CamelCaseString'))  # Output: camel_case_string

# Convert to camelCase
print(to_camel_case('snake_case_string'))  # Output: snakeCaseString

# Remove special characters
print(remove_special_characters('Hello, World!'))  # Output: Hello World

# Normalize whitespace
print(normalize_whitespace('Hello   World'))  # Output: Hello World

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stringutils_happy-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stringutils_happy-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file stringutils_happy-0.1.0.tar.gz.

File metadata

  • Download URL: stringutils_happy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.12

File hashes

Hashes for stringutils_happy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 68371b73ad027ce5c6ef7cc9a58c2f685b461f25420c67e268de5a681d9fc8fc
MD5 043eadb2b84f6f901d1ea767b7b8e494
BLAKE2b-256 e48661365d72a798105b23c024e8660e225439f9d82168b52b160742d26ccc98

See more details on using hashes here.

File details

Details for the file stringutils_happy-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stringutils_happy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75049a035d68f164129a332eeb2f84668189b8d72ac08a8095cbe2081f2ef9cc
MD5 c1e1a8513c82f261c989cd482124e1c6
BLAKE2b-256 1bed310e864bea30fbaa78ac34feb7376f57235dc42ebaaa9bbe0d570d901585

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page