FunStrings

A comprehensive Python package for string manipulation, analysis, and transformation

PyPI VersionPyPI DownloadsLicenseGitHub Stars
New in v0.1.2

What's New in FunStrings

The latest version brings powerful new functions to make your string operations even more efficient.

  • remove_html_tags

    Strip all HTML tags from text

  • remove_emojis

    Remove emojis from text

  • expand_contractions

    Convert "don't" → "do not"

Example Code
import funstrings

# Data Cleaning
html = "<p>Hello <b>World</b></p>"
clean_text = funstrings.remove_html_tags(html)
print(clean_text)  # Hello World

# Text Analysis
text = "Hello world hello python"
common = funstrings.most_common_word(text)
print(common)  # hello

# ML/NLP Preprocessing
text = "café"
plain = funstrings.strip_accents(text)
print(plain)  # cafe

# Validation
email = "user@example.com"
is_valid = funstrings.is_valid_email(email)
print(is_valid)  # True

Try FunStrings in Action

Experiment with some of our most popular functions directly in your browser

Reverse String

Reverse any string with a single function call.

Function Categories

Explore the various function categories available in FunStrings

Basic Operations

Fundamental string manipulations like reversal, case conversion, and counting

  • Reverse String
  • Count Vowels
  • Check Palindrome
  • Case Conversion

Text Analysis

Analyze text content with word frequencies, length analysis, and more

  • Word Frequencies
  • Longest/Shortest Word
  • Average Word Length
  • Pangram Check

Pattern-based

Extract patterns from text like emails, URLs, and numbers

  • Extract Emails
  • Extract URLs
  • Extract Numbers
  • Mask Sensitive Data

Data Cleaning

Clean and normalize text data for analysis and processing

  • Remove HTML Tags
  • Remove Emojis
  • Expand Contractions
  • Correct Whitespace

Get Started in Seconds

FunStrings is designed to be easy to install and use

Installation

Install with pip
pip install funstrings
Install from source
pip install git+https://github.com/nilkanth02/funstrings.git

Quick Start

Basic usage example
import funstrings

# Basic operations
text = "Hello, World!"
print(funstrings.reverse_string(text))  # !dlroW ,olleH
print(funstrings.count_vowels(text))    # 3

# Text analysis
sentence = "The quick brown fox jumps over the lazy dog"
print(funstrings.is_pangram(sentence))  # True
print(funstrings.longest_word(sentence))  # jumps

Join the Community

Get help, share your projects, and contribute to the development of FunStrings