Skip to main content
https://badge.fury.io/py/npyi.svg https://travis-ci.com/andyh1203/npyi.svg?branch=master https://codecov.io/gh/andyh1203/npyi/branch/master/graph/badge.svg https://img.shields.io/badge/License-BSD%203--Clause-blue.svg https://img.shields.io/pypi/pyversions/npyi.svg Updates

NPyI

API wrapper around the NPPES API. https://npiregistry.cms.hhs.gov/registry/help-api

Install

pip install npyi

Examples

from npyi import npi

# sample search by first_name / last_name
response = npi.search(search_params={'first_name': 'Andrew', 'last_name': 'Jackson'})
print(response.keys()) # dict_keys(['result_count', 'results'])
first_entry = response['results'][0]
print(first_entry['basic']['first_name']) # ANDREW
print(first_entry['basic']['last_name']) # JACKSON

# sample search by NPI number
response = search(search_params={'number': '1417367343'})
print(response['result_count']) # 1
print(response['results'][0]['number']) # 1417367343

# sample search by city
response = search(search_params={'city': 'San Francisco'})
first_entry = response['results'][0]
print(len(first_entry['addresses'])) # 2 (different address purposes - LOCATION and MAILING)
print(first_entry['addresses'][0]['city']) # SAN FRANCISCO

# limit example
response = search(search_params={'first_name': 'Andrew', 'city': 'New York'}, limit=50)
print(response['result_count']) # 50
response = search(search_params={'first_name': 'Andrew', 'city': 'New York'}, limit=1000)
print(response['result_count']) # 200 (200 is the max)
response = search(search_params={'first_name': 'Andrew', 'city': 'New York'})
print(response['result_count']) # 10 (10 is the default)

Metadata

Release files for npyi 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for npyi 0.1.3
File Size Uploaded Provenance Actions
npyi-0.1.3.tar.gz 4.7 kB Without provenance Details for npyi-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for npyi 0.1.3
File Interpreter ABI Platform Actions
npyi-0.1.3-py3-none-any.whl Python 3 none any Details for npyi-0.1.3-py3-none-any.whl

Total release size: 11.0 kB

Release files / npyi-0.1.3.tar.gz

Download URL npyi-0.1.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a36c81a592d4945774a568b9c11f957f3b6d7197169928d21f5a6351eb554762
BLAKE2b-256 checksum
How to use checksums
12b5e81a80c05f652b5fbdf2ef0b34f493a4deccf94e6ec27622735491b809a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Release files / npyi-0.1.3-py3-none-any.whl

Download URL npyi-0.1.3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b61b2804be1eb0ce44424bfad25f4ff97bd5413a2204d5ac50030ec43744099
BLAKE2b-256 checksum
How to use checksums
6107780b3845ab39a0ecc488e3838ecdee2716bf03c78cef134eccb30f6dfff3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

Security for npyi 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page