Add python bindings and package info

This commit is contained in:
Allard Stijnman
2016-03-16 11:55:45 +01:00
parent 0c92f9f80e
commit 748b86b901
4 changed files with 141 additions and 1 deletions
+21 -1
View File
@@ -5,7 +5,7 @@
A database of free and [disposable](http://en.wikipedia.org/wiki/Disposable_email_address)
email domains and a handy Node.js module for querying it.
Use the Node.js module or access the files in the `./data` directory and parse
Install via npm or pip or access the files in the `./data` directory and parse
with your language of choice.
In an effort to create the most up-to-date list of domains, the database can be
@@ -49,3 +49,23 @@ freemail.isDisposable('jack@mailinater.com');
> true
```
## Python
### Install
```
pip install freemail
```
```python
>>> import freemail
>>> freemail.is_free('jack@mailinater.com')
True
>>> freemail.is_free('jack@mailinater.com')
True
>>> freemail.is_disposable('smith@gmail.com')
False
>>> freemail.is_disposable('jack@mailinater.com')
True
```