https://github.com/zebradevs/dataservices-python-sdk
https://github.com/zebradevs/dataservices-python-sdk
data-services python sdk
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zebradevs/dataservices-python-sdk
- Owner: ZebraDevs
- License: mit
- Created: 2020-01-17T16:27:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T17:17:46.000Z (about 6 years ago)
- Last Synced: 2025-03-26T07:47:11.060Z (about 1 year ago)
- Topics: data-services, python, sdk
- Language: Python
- Size: 48.8 KB
- Stars: 1
- Watchers: 16
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Zebra Savanna Data Services Python SDK
======================================
This is the source code for the Savanna Python Software Development Kit (SDK).
The core of this SDK is a basic API connection call to the Zebra Savanna Data Services in the SavannaAPI class. Currently the API has public methods for the three public APIs that are part of the Barcode Intelligence product. These APIs are:
* Barcode Generate
* UPC Lookup
* FDA Recall
This SDK also has models for all the data sent and received by these APIs in order to make it easier to work with them.
API Key
-------
To get an API key to work with these APIs, use the [Getting Started Guide](https://developer.zebra.com/gsg) and select the Barcode Intelligence product.
Documentation
-------------
For more information on these APIs, go to [developer.zebra.com/apis](https://developer.zebra.com/apis) or visit the [Forums](https://developer.zebra.com/forum/search?keys=&field_zebra_curated_tags_tid%5B%5D=273)
Usage guide
-----------
Set Zebra Savanna API key
```python
SavannaAPI.APIKey = "..."
```
Create Barcode
```python
fileBytes = CreateBarcode.create_symbology_text(symbology, barcodeText.Text)
```
UPC Lookup
```python
upcLookupJson = UPCLookup.lookup(barcode)
```
FDA Food Recall
```python
foodUpcJson = FDARecall.foodUpc(barcode)
```
FDA Drug Recall
```python
drugUpcJson = FDARecall.drugUpc(barcode)
```
FDA Device Recall Search
```python
deviceSearchJson = FDARecall.deviceSearch(searchText.Text)
```
FDA Drug Recall Search
```python
drugSearchJson = FDARecall.drugSearch(searchText.Text)
```