email_phone_block-0.5.1
توضیحات
Substitute emails and phone numbers with dummy in your text.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | email_phone_block-0.5.1 |
| نام | email_phone_block |
| نسخه کتابخانه | 0.5.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mauro De Giorgi |
| ایمیل نویسنده | mauro.degiorgi@gmail.com |
| آدرس صفحه اصلی | https://github.com/mdgart/email_phone_block |
| آدرس اینترنتی | https://pypi.org/project/email_phone_block/ |
| مجوز | UNKNOWN |
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
------
- 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
نحوه نصب
نصب پکیج whl email_phone_block-0.5.1:
pip install email_phone_block-0.5.1.whl
نصب پکیج tar.gz email_phone_block-0.5.1:
pip install email_phone_block-0.5.1.tar.gz