Discover contact details such as phone numbers, email addresses and social links using Nymeria's service.
Project description
Nymeria
The official python package to interact with the Nymeria service and API.
Nymeria makes it easy to enrich data with contact information such as email addresses, phone numbers and social links. The ruby gem wraps Nymeria's public API so you don't have to.
Usage
Installation
$ pip install nymeria
Set and Check an API Key.
from nymeria import api
client = api.Client('ny_apikey')
client.check_authentication() # => True | False
All API endpoints assume an api key has been set. You should set the api key early in your program. The key will automatically be added to all future requests.
Verify an Email Address
from nymeria import api
client = api.Client('ny_apikey')
if client.check_authentication():
client.verify('foo@bar.com') # => dict (see below)
{
'data': {
'result': 'catchall',
'tags': ['has_dns', 'has_dns_mx', 'smtp_connectable', 'accepts_all', 'has_dns']
},
'usage': {
'used': 861,
'limit': 10000
}
}
Enrich a Profile
from nymeria import api
client = api.Client('ny_apikey')
# Single Enrichment
if client.check_authentication():
client.enrich({ 'url': 'linkedin.com/in/wozniaksteve' }) # => dict (see below)
# Bulk Enrichment (pass n-queries to enrich)
client.enrich({ 'email': 'woz@steve.org' }, { 'url': 'github.com/nymeriaio' }) # => dict (see below)
Single Enrichment Response
{
"usage": {
"used": 4,
"limit": 100
},
"data": {
"bio": {
"first_name": "Steve",
"last_name": "Wozniak",
"title": "Chief Scientist",
"company": "Sandisk",
"company_website": "sandisk.com"
},
"emails": [
{
"type": "professional",
"name": "steve",
"domain": "woz.org",
"address": "steve@woz.org"
},
...
],
"phone_numbers": [
...
],
"social": [
{
"type": "linkedin",
"id": "wozniaksteve",
"url": "https://www.linkedin.com/in/wozniaksteve"
}
]
}
}
Bulk Enrichment Response
{
"usage": {
"used": 4,
"limit": 100
},
"data": [
{
'meta': {
'email': 'steve@woz.org'
},
'result': {
"bio": {
"first_name": "Steve",
"last_name": "Wozniak",
"title": "Chief Scientist",
"company": "Sandisk",
"company_website": "sandisk.com"
},
"emails": [
{
"type": "professional",
"name": "steve",
"domain": "woz.org",
"address": "steve@woz.org"
},
...
],
"phone_numbers": [
...
],
"social": [
{
"type": "linkedin",
"id": "wozniaksteve",
"url": "https://www.linkedin.com/in/wozniaksteve"
}
]
}
},
{
'meta': {
'url': 'github.com/nymeriaio'
},
'result': {
...
}
},
...
]
}
License
MIT License
Copyright (c) 2022, Nymeria LLC.
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nymeria-1.0.2.tar.gz.
File metadata
- Download URL: nymeria-1.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.11.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71f3e81cf7bb54a22c984ea544fa3f731aa8564ab7829dc3e5aece8355a0e596
|
|
| MD5 |
e140a49ef6b9cef903eb3645ca7d605e
|
|
| BLAKE2b-256 |
fab6f7a0af69086969fca03310c5ff7f808c38b389bd048f5447316148636a85
|