Skip to main content

Substitute emails and phone numbers with dummy in your text.

Project description

email/phone block

A simple python function to substitute emails and phone number with dummies.

Unittest included.

Install

pip install email_phone_block

or

easy_install email_phone_block

Usage

>>> from email_phone_block import block
>>> block("So please send me an email at name@domain.com, thanks!")
'So please send me an email at xxxx@xxxxx.xxx, thanks!'
>>> block("So please call me at 333-333-3333, thanks!'")
'So please call me at xxx-xxx-xxxx, thanks!'

Format Recognized

Emails

name@domain.com name(at)domain.com name at domain.com

Phone numbers

333-333-3333 3333333333 333 333 3333 333 333-3333 333333-3333 333-3333333

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

email_phone_block-0.2.tar.gz (1.5 kB view hashes)

Uploaded Source

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