Skip to main content

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 filter_email_phone, filter_email, filter_phone
>>> filter_email("So please send me an email at name@domain.com, thanks!")
'So please send me an email at xxxx@xxxxx.xxx, 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 name@domain.com, thanks!'")
'So please call me at xxx-xxx-xxxx or email at xxxx@xxxxx.xxx, thanks!'

For legacy reason you can still use from email_phone_block import block

Format Recognized

Emails

Phone numbers

  • 333-333-3333

  • 3333333333

  • 333 333 3333

  • 333 333-3333

  • 333333-3333

  • 333-3333333

Metadata

Release files for email_phone_block 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for email_phone_block 0.5.1
File Size Uploaded Provenance Actions
email_phone_block-0.5.1.tar.gz 2.5 kB Without provenance Details for email_phone_block-0.5.1.tar.gz

Release files / email_phone_block-0.5.1.tar.gz

Download URL email_phone_block-0.5.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a1b7b86735eae1c127577608017b2b5e00d446ccd39baccb214316b4e2658f7a
BLAKE2b-256 checksum
How to use checksums
c82e4b0f84369d1c2101015ba466f91152110f006605e2a86a0c4bf11549c2b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for email_phone_block 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page