CharStripper
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.
charsDictGets a dictionary which replaces the dictionary keys with the dictionary values.isLowercaseIs a boolean which returns the value lowercased.
After defining the class, you can call cs.strip('YOUR_TEXT_HERE') for every repetition.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CharStripper-0.1.2.tar.gz | 2.9 kB | Without provenance | Details for CharStripper-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CharStripper-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for CharStripper-0.1.2-py3-none-any.whl |
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
|
Security for CharStripper 0.1.2
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.