Skip to main content

Profanity filter, based on Shutterstock dictionary

Project description

LeoProfanity

Travis

Python version of leo-profanity, "Shutterstock" dictionary based filter.

Installation

pip install leoprofanity

# or
git clone https://github.com/jojoee/leo-profanity-python
cd leo-profanity-python
python setup.py install

Usage

CLI

python -m leoprofanity "I have boob"

Python

from leoprofanity import LeoProfanity

fil = LeoProfanity()
fil.check("I have BoOb, etc.")
fil.clean("I have BoOb, etc.")

Contribution

# env
conda env list
conda create --name leoprofanity python=3.7

# test
python -m unittest tests/*.py # run unit test

# format
flake8 --max-line-length=120 --exclude=__*.py
black . --check
pytype ./leoprofanity

# publishing
pip install twine # package for publishing
python setup.py sdist bdist_wheel # build the package
tar tzf dist/leoprofanity-0.0.1.tar.gz # check published file in the published package
twine check dist/* # if the package render correctly
python -m pip install dist/leoprofanity-0.0.1-py3-none-any.whl # for testing, install local to global
python -m leoprofanity "I have boob, etc." # testing the package via cli
twine upload --repository-url https://test.pypi.org/legacy/ dist/* --verbose # publishing (test)
twine upload dist/* # publishing
pip install leoprofanity -U # force update module to test after publishing

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

leoprofanity-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

leoprofanity-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file leoprofanity-0.0.2.tar.gz.

File metadata

  • Download URL: leoprofanity-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for leoprofanity-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d2e3904755be4e84df566139a5db89624cb9fd2e0c9b0f8ec601714b2762dbc6
MD5 e194858c79853fffeba7422e6f34abd8
BLAKE2b-256 e1482b5b0d71904cc54b6aa049e1bf58820c1f434889f558361362767afbc793

See more details on using hashes here.

File details

Details for the file leoprofanity-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: leoprofanity-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for leoprofanity-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c53e17c6ce9f93c0a1d412c06f5881b76ab8cec9b5314b4d8d5d74946ed5da00
MD5 7cb9b1c1da342587590848a518982202
BLAKE2b-256 035534c35bebaec1671123fa9b7def6e0e4edaf3216e23265583a4558fc035cd

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