Skip to main content

pytextutils

Common string helpers - reverse, slugify, capitalize, remove punctuation.

Installation

pip install pytextutils

Usage

from pytextutils import reverse_string, slugify, capitalize_words

# Reverse a string
reverse_string("hello")  # "olleh"

# Create URL-friendly slug
slugify("Hello World")  # "hello-world"

# Capitalize words
capitalize_words("hello world")  # "Hello World"

Features

  • reverse_string() - Reverse a string
  • slugify() - Convert text to URL-friendly slug
  • capitalize_words() - Capitalize first letter of each word
  • remove_punctuation() - Remove all punctuation
  • remove_whitespace() - Remove all whitespace
  • truncate() - Truncate text to specified length
  • word_count() - Count words in text
  • is_palindrome() - Check if text is a palindrome

License

MIT

Metadata

Release files for pytextutils 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytextutils 0.1.0
File Size Uploaded Provenance Actions
pytextutils-0.1.0.tar.gz 2.6 kB Without provenance Details for pytextutils-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytextutils 0.1.0
File Interpreter ABI Platform Actions
pytextutils-0.1.0-py3-none-any.whl Python 3 none any Details for pytextutils-0.1.0-py3-none-any.whl

Total release size: 5.2 kB

Release files / pytextutils-0.1.0.tar.gz

Download URL pytextutils-0.1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
12aab2684410da84cc23dfe238843034be246badd11a8335defa8aa59577097a
BLAKE2b-256 checksum
How to use checksums
900f6f0dbb52c5187a55d50f0e166e1c969d9dfc41d7b3e50d7f52c7ec299352
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / pytextutils-0.1.0-py3-none-any.whl

Download URL pytextutils-0.1.0-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2f74fa56abc359887ccc486949df5db3c2d0338c414781b1a868dd6ce16e841
BLAKE2b-256 checksum
How to use checksums
f06e85f93e180548e5d7e89afac6f9c83198cd24e04f031ec41cb7547243b08f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for pytextutils 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page