Skip to main content

No project description provided

Project description

foodreversefda

This API client package provides some basic search functionalities on FDA's open api.

Description

All following functions generate accordingly json file containing FDA food reverse events.

Getting Started

Dependencies

  • python = "^3.10"
  • requests = "^2.31.0"
  • vcrpy = "^5.1.0"
  • pytest = "^7.3.1"

Installing

  • pip install foodreversefda

Executing program

Functions include:

  • id_get()
  • date_get()
  • class_get()
  • city_get()

First, pass parameters to Class, then call function inside Class. Classes include:

  • ID
  • Date
  • Classification
  • City
#Example for id_get()
import foodreversefda

id_instance = ID["000000", "111111"] 
info = id_instance.id_get()
# "000000" and "111111" are placeholders for actual 'event_id'
# You can search for multiple 'event_id's

Author

Yifei Chen
yc4307@columbia.edu

License

MIT

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

foodreversefda-0.1.8.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

foodreversefda-0.1.8-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

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