packaged for PyPI

This commit is contained in:
2019-02-15 16:40:28 -05:00
parent d96c2acea9
commit c3c71bec0d
7 changed files with 3949 additions and 3931 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
webmail_domains/
build/
dist/

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
The MIT License
Copyright (c) 2012-2019 Douglas Tarr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@@ -1,15 +1,17 @@
This is a text file with a list of domains that you can sign up for a web based email account.
The idea is to use it as a blacklist if you want to require a "company domain" (using that term loosely)
This is a Python package containing a single module `webmail_domains.py`,
itself containing a list of webmail domains.
Feel free to make pull requests, and I'll add them in.
#MIT License#
Copyright (c) 2012 Douglas Tarr
# Installation
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
pip install webmail-domains
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Usage
import webmail_domains
if <some_email>.split('@')[1] in webmail_domains.WEBMAIL_DOMAINS:
# do something (reject signup, don't add the domain to a CRM, etc.)

File diff suppressed because it is too large Load Diff

17
setup.py Normal file
View File

@@ -0,0 +1,17 @@
from setuptools import setup, find_packages
with open('README.md') as file:
long_description = file.read()
setup(
name="webmail-domains",
version="0.1",
py_modules="webmail_domains",
url='https://github.com/zevaverbach/Webmail-Domains',
include_package_data=True,
packages=find_packages(),
description=('A list of webmail domains.'),
long_description_content_type='text/markdown',
long_description=long_description,
)

View File

@@ -1,29 +0,0 @@
"ahoo.com","yahoo.com"
"ayhoo.com","yahoo.com"
"cocast.net","comcast.net"
"comcsat.net","com"
"eathlink.net","earthlink.net"
"gmaill.com","gmail.com"
"gmial.com","gmail.com"
"homtail.com","hotmail.com"
"HOTAIL.COM","hotmail.com"
"hotamil.com","hotmail.com"
"hotmail.co","hotmail.com"
"hotmail.om","hotmail.com"
"hotmal.com","hotmail.com"
"hotmial.com","hotmail.com"
"hotmsil.com","hotmail.com"
"hotrmail.com","hotmail.com"
"htomail.com","hotmail.com"
"redifmail.com","rediffmail.com"
"sbcglobl.net","sbcglobal.net"
"sbclobal.net","sbcglobal.net"
"tahoo.com","yahoo.com"
"yahho.com","yahoo.com"
"yaho.cm","yahoo.com"
"yahoo.cm","yahoo.com"
"yahoo.com.com","yahoo.com"
"yahoo.om","yahoo.com"
"yahooo.com","yahoo.com"
"yhaoo.com","yahoo.com"
"yohoo.com","yahoo.com"

3898
web_domains.py Normal file

File diff suppressed because it is too large Load Diff