New upstream snapshot.
Kali Janitor
1 year, 6 months ago
0 | Copyright © Val Neekman ([Neekware Inc.](http://neekware.com)) [ [email protected], [@vneekman](https://twitter.com/vneekman) ] | |
1 | ||
2 | All rights reserved. | |
3 | ||
4 | Redistribution and use in source and binary forms, with or without modification, | |
5 | are permitted provided that the following conditions are met: | |
6 | ||
7 | 1. Redistributions of source code must retain the above copyright notice, | |
8 | this list of conditions and the following disclaimer. | |
9 | ||
10 | 2. Redistributions in binary form must reproduce the above copyright | |
11 | notice, this list of conditions and the following disclaimer in the | |
12 | documentation and/or other materials provided with the distribution. | |
13 | ||
14 | 3. Neither the name of this project nor the names of its contributors may be | |
15 | used to endorse or promote products derived from this software without | |
16 | specific prior written permission. | |
17 | ||
18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | |
19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | |
20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | |
21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | |
22 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | |
24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | |
25 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | |
27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
5 | 5 | Author: Val Neekman and Félix Brezo |
6 | 6 | Author-email: [email protected] |
7 | 7 | License: BSD |
8 | Description: Python Email Ahoy 3 | |
9 | ==================== | |
10 | ||
11 | **A Python email utility that verifies existence of an email address** | |
12 | ||
13 | ||
14 | Overview | |
15 | ======== | |
16 | ||
17 | A Python email utility that verifies existence of an email address. | |
18 | This package is based on [this](https://github.com/un33k/python-emailahoy) package which only run in Python 2. | |
19 | It has been refactored to work in Python 3. | |
20 | ||
21 | How to install | |
22 | ================== | |
23 | ||
24 | Use Pip (note that it works only for Python 3.6+ sicne it uses f-strings): | |
25 | ||
26 | ``` | |
27 | pip3 install python-emailahoy3 --user | |
28 | ``` | |
29 | ||
30 | How to use | |
31 | ================= | |
32 | ||
33 | Use the shorthand function for quick check: | |
34 | ||
35 | ``` | |
36 | from emailahoy3 import verify_email_address | |
37 | status =verify_email_address('[email protected]') | |
38 | print(status) | |
39 | ``` | |
40 | ||
41 | Codes are defined as follows: | |
42 | - `1`. The email exists. | |
43 | - `0`. The email does not exist. | |
44 | - `-1`. The existence of the email could not be verified. | |
45 | ||
46 | You can also use the class for more control & more granular return status: | |
47 | ||
48 | ``` | |
49 | from emailahoy3 import VerifyEmail | |
50 | e = VerifyEmail() | |
51 | status = e.verify_email_smtp( | |
52 | email='[email protected]', | |
53 | from_host='mydomain.com', | |
54 | from_email='[email protected]' | |
55 | ) | |
56 | if e.was_found(status): | |
57 | print >> sys.stderr, "Found:", status | |
58 | elif e.not_found(status): | |
59 | print >> sys.stderr, "Not Found:", status | |
60 | else: | |
61 | print >> sys.stderr, "Unverifiable:", status | |
62 | ``` | |
63 | ||
64 | ||
65 | ||
66 | Notes | |
67 | ================= | |
68 | ||
69 | 1. Not all email servers will return the correct status | |
70 | 2. Checking an invalid email address returns within 1 second | |
71 | 3. Checking a valid email address returns within 4 seconds or more | |
72 | ||
73 | Running the tests | |
74 | ================= | |
75 | ||
76 | To run the tests against the current environment: | |
77 | ||
78 | ``` | |
79 | python3 -m unittest discover | |
80 | ``` | |
81 | ||
82 | License | |
83 | ==================== | |
84 | ||
85 | Released under a ([BSD](LICENSE.md)) license. | |
86 | ||
87 | Platform: UNKNOWN | |
88 | 8 | Classifier: Development Status :: 3 - Alpha |
89 | 9 | Classifier: Intended Audience :: Developers |
90 | 10 | Classifier: License :: OSI Approved :: BSD License |
93 | 13 | Classifier: Topic :: Software Development :: Libraries :: Python Modules |
94 | 14 | Classifier: Topic :: Communications :: Email |
95 | 15 | Description-Content-Type: text/markdown |
16 | License-File: LICENSE.md | |
17 | ||
18 | Python Email Ahoy 3 | |
19 | ==================== | |
20 | ||
21 | **A Python email utility that verifies existence of an email address** | |
22 | ||
23 | ||
24 | Overview | |
25 | ======== | |
26 | ||
27 | A Python email utility that verifies existence of an email address. | |
28 | This package is based on [this](https://github.com/un33k/python-emailahoy) package which only run in Python 2. | |
29 | It has been refactored to work in Python 3. | |
30 | ||
31 | How to install | |
32 | ================== | |
33 | ||
34 | Use Pip (note that it works only for Python 3.6+ sicne it uses f-strings): | |
35 | ||
36 | ``` | |
37 | pip3 install python-emailahoy3 --user | |
38 | ``` | |
39 | ||
40 | How to use | |
41 | ================= | |
42 | ||
43 | Use the shorthand function for quick check: | |
44 | ||
45 | ``` | |
46 | from emailahoy3 import verify_email_address | |
47 | status =verify_email_address('[email protected]') | |
48 | print(status) | |
49 | ``` | |
50 | ||
51 | Codes are defined as follows: | |
52 | - `1`. The email exists. | |
53 | - `0`. The email does not exist. | |
54 | - `-1`. The existence of the email could not be verified. | |
55 | ||
56 | You can also use the class for more control & more granular return status: | |
57 | ||
58 | ``` | |
59 | from emailahoy3 import VerifyEmail | |
60 | e = VerifyEmail() | |
61 | status = e.verify_email_smtp( | |
62 | email='[email protected]', | |
63 | from_host='mydomain.com', | |
64 | from_email='[email protected]' | |
65 | ) | |
66 | if e.was_found(status): | |
67 | print >> sys.stderr, "Found:", status | |
68 | elif e.not_found(status): | |
69 | print >> sys.stderr, "Not Found:", status | |
70 | else: | |
71 | print >> sys.stderr, "Unverifiable:", status | |
72 | ``` | |
73 | ||
74 | ||
75 | ||
76 | Notes | |
77 | ================= | |
78 | ||
79 | 1. Not all email servers will return the correct status | |
80 | 2. Checking an invalid email address returns within 1 second | |
81 | 3. Checking a valid email address returns within 4 seconds or more | |
82 | ||
83 | Running the tests | |
84 | ================= | |
85 | ||
86 | To run the tests against the current environment: | |
87 | ||
88 | ``` | |
89 | python3 -m unittest discover | |
90 | ``` | |
91 | ||
92 | License | |
93 | ==================== | |
94 | ||
95 | Released under a ([BSD](LICENSE.md)) license. |
0 | python-emailahoy3 (0.1.3+git20190615.1.07db6ca-0kali1) UNRELEASED; urgency=low | |
1 | ||
2 | * New upstream snapshot. | |
3 | ||
4 | -- Kali Janitor <[email protected]> Thu, 17 Nov 2022 00:31:30 -0000 | |
5 | ||
0 | 6 | python-emailahoy3 (0.1.3-0kali1) kali-dev; urgency=medium |
1 | 7 | |
2 | 8 | * Initial release |
5 | 5 | Author: Val Neekman and Félix Brezo |
6 | 6 | Author-email: [email protected] |
7 | 7 | License: BSD |
8 | Description: Python Email Ahoy 3 | |
9 | ==================== | |
10 | ||
11 | **A Python email utility that verifies existence of an email address** | |
12 | ||
13 | ||
14 | Overview | |
15 | ======== | |
16 | ||
17 | A Python email utility that verifies existence of an email address. | |
18 | This package is based on [this](https://github.com/un33k/python-emailahoy) package which only run in Python 2. | |
19 | It has been refactored to work in Python 3. | |
20 | ||
21 | How to install | |
22 | ================== | |
23 | ||
24 | Use Pip (note that it works only for Python 3.6+ sicne it uses f-strings): | |
25 | ||
26 | ``` | |
27 | pip3 install python-emailahoy3 --user | |
28 | ``` | |
29 | ||
30 | How to use | |
31 | ================= | |
32 | ||
33 | Use the shorthand function for quick check: | |
34 | ||
35 | ``` | |
36 | from emailahoy3 import verify_email_address | |
37 | status =verify_email_address('[email protected]') | |
38 | print(status) | |
39 | ``` | |
40 | ||
41 | Codes are defined as follows: | |
42 | - `1`. The email exists. | |
43 | - `0`. The email does not exist. | |
44 | - `-1`. The existence of the email could not be verified. | |
45 | ||
46 | You can also use the class for more control & more granular return status: | |
47 | ||
48 | ``` | |
49 | from emailahoy3 import VerifyEmail | |
50 | e = VerifyEmail() | |
51 | status = e.verify_email_smtp( | |
52 | email='[email protected]', | |
53 | from_host='mydomain.com', | |
54 | from_email='[email protected]' | |
55 | ) | |
56 | if e.was_found(status): | |
57 | print >> sys.stderr, "Found:", status | |
58 | elif e.not_found(status): | |
59 | print >> sys.stderr, "Not Found:", status | |
60 | else: | |
61 | print >> sys.stderr, "Unverifiable:", status | |
62 | ``` | |
63 | ||
64 | ||
65 | ||
66 | Notes | |
67 | ================= | |
68 | ||
69 | 1. Not all email servers will return the correct status | |
70 | 2. Checking an invalid email address returns within 1 second | |
71 | 3. Checking a valid email address returns within 4 seconds or more | |
72 | ||
73 | Running the tests | |
74 | ================= | |
75 | ||
76 | To run the tests against the current environment: | |
77 | ||
78 | ``` | |
79 | python3 -m unittest discover | |
80 | ``` | |
81 | ||
82 | License | |
83 | ==================== | |
84 | ||
85 | Released under a ([BSD](LICENSE.md)) license. | |
86 | ||
87 | Platform: UNKNOWN | |
88 | 8 | Classifier: Development Status :: 3 - Alpha |
89 | 9 | Classifier: Intended Audience :: Developers |
90 | 10 | Classifier: License :: OSI Approved :: BSD License |
93 | 13 | Classifier: Topic :: Software Development :: Libraries :: Python Modules |
94 | 14 | Classifier: Topic :: Communications :: Email |
95 | 15 | Description-Content-Type: text/markdown |
16 | License-File: LICENSE.md | |
17 | ||
18 | Python Email Ahoy 3 | |
19 | ==================== | |
20 | ||
21 | **A Python email utility that verifies existence of an email address** | |
22 | ||
23 | ||
24 | Overview | |
25 | ======== | |
26 | ||
27 | A Python email utility that verifies existence of an email address. | |
28 | This package is based on [this](https://github.com/un33k/python-emailahoy) package which only run in Python 2. | |
29 | It has been refactored to work in Python 3. | |
30 | ||
31 | How to install | |
32 | ================== | |
33 | ||
34 | Use Pip (note that it works only for Python 3.6+ sicne it uses f-strings): | |
35 | ||
36 | ``` | |
37 | pip3 install python-emailahoy3 --user | |
38 | ``` | |
39 | ||
40 | How to use | |
41 | ================= | |
42 | ||
43 | Use the shorthand function for quick check: | |
44 | ||
45 | ``` | |
46 | from emailahoy3 import verify_email_address | |
47 | status =verify_email_address('[email protected]') | |
48 | print(status) | |
49 | ``` | |
50 | ||
51 | Codes are defined as follows: | |
52 | - `1`. The email exists. | |
53 | - `0`. The email does not exist. | |
54 | - `-1`. The existence of the email could not be verified. | |
55 | ||
56 | You can also use the class for more control & more granular return status: | |
57 | ||
58 | ``` | |
59 | from emailahoy3 import VerifyEmail | |
60 | e = VerifyEmail() | |
61 | status = e.verify_email_smtp( | |
62 | email='[email protected]', | |
63 | from_host='mydomain.com', | |
64 | from_email='[email protected]' | |
65 | ) | |
66 | if e.was_found(status): | |
67 | print >> sys.stderr, "Found:", status | |
68 | elif e.not_found(status): | |
69 | print >> sys.stderr, "Not Found:", status | |
70 | else: | |
71 | print >> sys.stderr, "Unverifiable:", status | |
72 | ``` | |
73 | ||
74 | ||
75 | ||
76 | Notes | |
77 | ================= | |
78 | ||
79 | 1. Not all email servers will return the correct status | |
80 | 2. Checking an invalid email address returns within 1 second | |
81 | 3. Checking a valid email address returns within 4 seconds or more | |
82 | ||
83 | Running the tests | |
84 | ================= | |
85 | ||
86 | To run the tests against the current environment: | |
87 | ||
88 | ``` | |
89 | python3 -m unittest discover | |
90 | ``` | |
91 | ||
92 | License | |
93 | ==================== | |
94 | ||
95 | Released under a ([BSD](LICENSE.md)) license. |
0 | LICENSE.md | |
0 | 1 | README.md |
1 | 2 | setup.py |
2 | 3 | emailahoy3/__init__.py |
3 | 4 | emailahoy3/email.py |
4 | 5 | emailahoy3/exceptions.py |
5 | emailahoy3/__pycache__/__init__.cpython-37.pyc | |
6 | emailahoy3/__pycache__/exceptions.cpython-37.pyc | |
7 | 6 | python_emailahoy3.egg-info/PKG-INFO |
8 | 7 | python_emailahoy3.egg-info/SOURCES.txt |
9 | 8 | python_emailahoy3.egg-info/dependency_links.txt |