Basic functionality. Enter event_id and retrieve event directory.
Project description
This python package 'foodreversefda' provides some basic search functionalities on FDA's open api.
Available functions: id_get() Example: 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
date_get()
Example:
import foodreversefda
date_instance = Date(start = 20040101, end = 20131231, limit = 5)
info = date_instance.date_get()
### 'start'/'end' stand for the range of your desired report date.
### 'limit' stands for how many events you want to show, 'limit' must be entered to incorporate with API formatting
class_get()
Example:
import foodreversefda
class_instance = Classification(class_type = 1, limit = 4)
info = class_instance.class_get()
### 'class_type' stands for the severity of the recalled event. Levels for 'class_type' include 1, 2, and 3.
### 'limit' stands for how many events you want to show, 'limit' must be entered to incorporate with API formatting
city_get()
Example:
import foodreversefda
city_instance = City(city = ["New York", "Austin"], limit = 2)
info = city_instance.city_get()
### 'city' stands for the city you want to search for recalled events.
### 'limit' stands for how many events you want to show for each city, 'limit' must be entered to incorporate with API formatting
Project details
Release history Release notifications | RSS feed
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.6.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for foodreversefda-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fa7e7e35857b8fd649ac289be5f6112a87b06efc62d6a2848291100876ac723 |
|
MD5 | c3171978a0657429a758b9caa828fdfc |
|
BLAKE2b-256 | f4f62d41275491890f03fa050d37ebcaad2f97a90986594196136f9bbcbb6fac |