Skip to main content

CharStripper

PyPI - Downloads PyPI - License PyPI - Python Version PyPI PyPI - Wheel PyPI - Implementation

This program replaces multiple characters in a text and also optionally lowers it.

Installation

pip install CharStripper

Usage

You can import this script and use it like this:

from CharStripper.core import CharStripper

cs = CharStripper({'o': 'e', 'r': 't', ' ': ''}, True)
cs.strip('Bo aR L  OS')  # returns 'beatles'

CharStripper class takes one mandatory and one optional input.

  • charsDict Gets a dictionary which replaces the dictionary keys with the dictionary values.
  • isLowercase Is a boolean which returns the value lowercased.

After defining the class, you can call cs.strip('YOUR_TEXT_HERE') for every repetition.

Release files for CharStripper 0.1.2

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

Source distribution (sdist)

Source distribution for CharStripper 0.1.2
File Size Uploaded
CharStripper-0.1.2.tar.gz 2.9 kB Details

Built distribution (wheel)

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

Total release size: 6.3 kB

Release files / CharStripper-0.1.2.tar.gz

Download URL CharStripper-0.1.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
42123909833151f8ce532f481d55f055e8cc1c6f7142207fdff0a26b02eb2ea9
BLAKE2b-256 checksum
How to use checksums
c81ad5a2000612b1243aa805cdc0fcf363efe19bf8c06e0bede5e595082eb8b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release files / CharStripper-0.1.2-py3-none-any.whl

Download URL CharStripper-0.1.2-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f339079f7916701cd8c9f99a2713b603b23b8d93c76d9824248c9a02b55813a
BLAKE2b-256 checksum
How to use checksums
86b94dd00ef8ff395125e25843a84cc4977d4011dfa92c8b9bb0362afc106b21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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