Skip to main content

Text purify

Remove special characters

import text_purify

text = "Jakiś! tekst? z #różnymi$ znakami& specjalnymi*."

cleanText = text_purify.remove_special_characters(text)
print(cleanText) # Jakiś tekst z różnymi znakami specjalnymi

Remove html tags

import text_purify

text_with_html = "To jest <strong>ważny</strong> tekst z <a href='link' target = '_blank'>linkiem</a>."
clean_text = text_purify.remove_html_tags(text_with_html)
print(clean_text) # To jest ważny tekst z linkiem.

Remove double spaces

import text_purify

text = 'this   is test  text :)'
clean_text = text_purify.remove_double_spaces(text)
print(clean_text) # this is test text :)

Metadata

Release files for text-purify 1.0.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 text-purify 1.0.0
File Size Uploaded
text_purify-1.0.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for text-purify 1.0.0
File Interpreter ABI Platform
text_purify-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / text_purify-1.0.0.tar.gz

Download URL text_purify-1.0.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fd6edfda9d4eb79af33f44950e4abf0b3322b437a8128361c90fc67554e1516c
BLAKE2b-256 checksum
How to use checksums
c7b305c564a15c704fac559d9a8f5be64513b7b875b538935debd838a0be289f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / text_purify-1.0.0-py3-none-any.whl

Download URL text_purify-1.0.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5701c9ede8a6171e2e3ae35a07eb64045e840a60d97c95f689949d62f63255ed
BLAKE2b-256 checksum
How to use checksums
621cf2da89a56feec26f9a754eb446ca825a55391fc58d96709908a927817299
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

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