Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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.


pip install email_phone_block


easy_install email_phone_block


>>> from email_phone_block import filter_email_phone, filter_email, filter_phone
>>> filter_email("So please send me an email at, thanks!")
'So please send me an email at, thanks!'
>>> filter_phone("So please call me at 333-333-3333, thanks!'")
'So please call me at xxx-xxx-xxxx, thanks!'
>>> filter_email_phone("So please call me at 333-333-3333 or email me at, thanks!'")
'So please call me at xxx-xxx-xxxx or email at, thanks!'

For legacy reason you can still use from email_phone_block import block

Format Recognized


Phone numbers

  • 333-333-3333
  • 3333333333
  • 333 333 3333
  • 333 333-3333
  • 333333-3333
  • 333-3333333
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
email_phone_block-0.5.1.tar.gz (2.5 kB) Copy SHA256 Checksum SHA256 Source Jun 19, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting