Skip to main content

Text purify

Project description

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 :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text_purify-1.0.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

text_purify-1.0.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file text_purify-1.0.0.tar.gz.

File metadata

  • Download URL: text_purify-1.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for text_purify-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fd6edfda9d4eb79af33f44950e4abf0b3322b437a8128361c90fc67554e1516c
MD5 f868cdfa5ca09e573f401f36290d2a54
BLAKE2b-256 c7b305c564a15c704fac559d9a8f5be64513b7b875b538935debd838a0be289f

See more details on using hashes here.

File details

Details for the file text_purify-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: text_purify-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for text_purify-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5701c9ede8a6171e2e3ae35a07eb64045e840a60d97c95f689949d62f63255ed
MD5 b6e894f163278edffe9fa2312b23c199
BLAKE2b-256 621cf2da89a56feec26f9a754eb446ca825a55391fc58d96709908a927817299

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page