Skip to main content

NHANES pyTOOL API

The NHANES pyTOOL 'API' is a Python library designed to simplify the process of accessing and analyzing data from the National Health and Nutrition Examination Survey (NHANES). NHANES is a program of studies conducted by the National Center for Health Statistics (NCHS), part of the Centers for Disease Control and Prevention (CDC), to assess the health and nutritional status of adults and children in the United States.

This tool provides an easy-to-use interface for retrieving NHANES datasets, allowing researchers, data science professionals, health professionals, developers and other stakeholders to explore NHANES data efficiently, enabling a wide range of health-related analyses and applications.

Attention: Please take a look at the Disclaimer before using the tool

Features

  • List Data Categories: Retrieve a list of available NHANES data categories.
  • List Cycle Years: Get a list of available NHANES cycle years.
  • Retrieve Variable Tables: Fetch variable tables for specific data categories.
  • Get Data File Descriptions: Obtain unique data file descriptions for a given data category and cycle years.
  • Retrieve Data: Fetch data for specific data categories, cycle years, and data file descriptions.
  • Join Data Files: Join data files based on common variables.
  • Find Common and Uncommon Variables: Identify common and uncommon variables across multiple cycle years.

Installation

To install the NHANES pyTOOL API, use pip:

pip install nhanes_pytool_api

Important Note

Attention: In the current version of the NHANES pyTOOL API (version 0.1.1), we do not provide a command-line interface (CLI) for direct use from the terminal. This means that you cannot run the API from the command line to access NHANES data. Instead, the API is designed for use as a library in Python scripts or applications.

Future Updates - We are continuously improving the NHANES Data API, and in future versions, we may consider adding a command-line interface for easier interaction with the API from the terminal. Until then, please use the API in your Python scripts or applications.

Documentation

For detailed information on how to use the NHANES pyTOOL API, check out the documentation.

Contributing

Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.

GitHub Issue

If you encounter any issues, bugs, or have suggestions for improvements, please use our GitHub Issue. Our development team actively monitors this repository, and this is the recommended way to report problems or suggest enhancements. To help us address your issue effectively, please follow these guidelines:

  1. Search Existing Issues: Before creating a new issue, please search the existing issues to check if someone has already reported a similar problem or request. If you find a related issue, you can contribute to the existing discussion.

  2. Provide Details: When reporting a bug, provide as much detail as possible about the problem you encountered. Include information about your environment, code, and any error messages you received. For feature requests, explain your use case and how the proposed feature would benefit the project.

  3. Be Respectful: Remember to be respectful and constructive in your interactions with other contributors. A positive and collaborative environment helps improve the project for everyone.

  4. Use Labels: Our issue tracker uses labels to categorize and prioritize issues. These labels help us identify the nature of each issue. You can use labels such as "bug," "enhancement," or "question" to classify your issue.

Our team will review and respond to issues as soon as possible. Thank you for your contributions and feedback!

GitHub Issue

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for nhanes-pytool-api 0.1.1

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

Source distribution (sdist)

Source distribution for nhanes-pytool-api 0.1.1
File Size Uploaded
nhanes_pytool_api-0.1.1.tar.gz 11.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nhanes-pytool-api 0.1.1
File Interpreter ABI Platform
nhanes_pytool_api-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.1 kB

Release files / nhanes_pytool_api-0.1.1.tar.gz

Download URL nhanes_pytool_api-0.1.1.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
13e718fd20babb3de5c561c62c1018c4b81619115d4e10731e062e524167626b
BLAKE2b-256 checksum
How to use checksums
67aec2bec39a4a28f048b55d04d319444bea30fd487f4f53196e747e88f04e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / nhanes_pytool_api-0.1.1-py3-none-any.whl

Download URL nhanes_pytool_api-0.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f0c528793b7791f9a7d61972be2ce31fb63490079884dcc8cd9131e25b66107
BLAKE2b-256 checksum
How to use checksums
55af77e68ff2c3da977c8882160f5861f06162419cbb318664192672c92bddcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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