Skip to main content

Text filtering tool

Project description

Python version

Bleep-it

Text filtering tool

:clipboard: Table Of Content

Installation
Quickstart
Documentation
Bleep-it Tools
License

Installation

pip install bleep-it

:: for Latest (unstable)
pip install git+https://github.com/Marseel-E/bleep-it

Quickstart

import asyncio
import bleep


async def main():
  while True:
    text = input("text: ")

    filtered_text = await bleep.filter(text=text, strickness=2)

    print("filtered_text:", filtered_text)


if __name__ == '__main__':
  asyncio.run(main())

Documentation

async filter

await filter(text, strickness=2, action=Censor())

This function is a coroutine.

Filters the text given and returns the filtered test.

Parameters

  • text ( str ) - The text to be filtered.
  • strickness ( int ) - The level of strickness of the filtering.
  • action ( Censor | Remove ) - The action to take when filtering a word.

Returns

The filtered text.

Return type

str


class Censor

Sensors the filtered word.

Methods

  • async generate

await generate(word)

This function is a coroutine.

Generates the censorship to replace the word with.

Parameters
  • word ( str ) - The word to be censored.
Returns

The censored replacement for the word.

Return type

str


class Remove

Removes the filtered word from the text.

Bleep-it Tools

Bleep-it Tools is an extension for Bleep-it that allows you to

  • Create custom words.
  • Generate other languages. soon

:scroll: License

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

bleep-it-0.2.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bleep_it-0.2.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file bleep-it-0.2.2.tar.gz.

File metadata

  • Download URL: bleep-it-0.2.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for bleep-it-0.2.2.tar.gz
Algorithm Hash digest
SHA256 38037128240a5a1af09646434f0c68e16cd21eba5472268a7aadb1995266dce4
MD5 e88959ddab84ca476cb38bf2d09281f2
BLAKE2b-256 a4e8606bfcfd01fc7822cf6dd58e9676317ae90c12c96f25f013f9dd8deb0195

See more details on using hashes here.

File details

Details for the file bleep_it-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: bleep_it-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for bleep_it-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ea0e3fb19a4460417a952cfc895c1e1972d2cab3ad93d06af721bce70b8568d
MD5 4992f781dc01fa812c2b7677b1060890
BLAKE2b-256 c3b2ff89419c19dd746accb1aa42d63e15917988c3e386201b1a08f8acede6cc

See more details on using hashes here.

Supported by

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