Skip to main content

A tool for programmatic access to NHANES downloadable datasets

Project description

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.

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

nhanes_pytool_api-0.1.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nhanes_pytool_api-0.1.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file nhanes_pytool_api-0.1.1.tar.gz.

File metadata

  • Download URL: nhanes_pytool_api-0.1.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for nhanes_pytool_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 13e718fd20babb3de5c561c62c1018c4b81619115d4e10731e062e524167626b
MD5 3e863e0667e376c7a8ee64c0628f20c1
BLAKE2b-256 67aec2bec39a4a28f048b55d04d319444bea30fd487f4f53196e747e88f04e9f

See more details on using hashes here.

File details

Details for the file nhanes_pytool_api-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nhanes_pytool_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f0c528793b7791f9a7d61972be2ce31fb63490079884dcc8cd9131e25b66107
MD5 3c119128882f96c54bc7394c8f9fa086
BLAKE2b-256 55af77e68ff2c3da977c8882160f5861f06162419cbb318664192672c92bddcb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page