Datamodels needed for Frontier API
Project description
Data Models
Description
This package contains three pydantic data models Datamodels for use in the API tier and Processing tier
How to Install
This package is a simple package with three pydantic data models. The module is called datamodels.
Example imports:
Command Line
$ pip install datamodelsFrontier
Python
from datamodelsFrontier.external import Barcode
from datamodelsFrotnier.downstream import ChildProduct
Code Information
Example Code:
InventoryItemDimension(height_mm=3, width_mm=4, depth_mm=5, mass_kg=5)
Each Model and Input Value
External
The models that can be imported are:
-
InventoryItemDimension:
- height_mm: int
- width_mm: int
- depth_mm: int
- mass_kg: int
-
Barcode:
- barcode_type: str
- barcode: str
-
InventoryItem:
- inventory_item_id: str
- sku: str
- name: str
- country_of_origin: str
- harmonized_system_code: str
- has_hazmat: bool
- barcodes: list[Barcode]
- dimensions: InventoryItemDimension
- alternative_inventory_items: list[str]
- thg_id: str
- status: str
Downstream
- ChildProduct:
- id: str
- title: str
- barcode: str
- releaseDate: str
- rrp: str
- length: str
- height: str
- width: str
- weight: str
- releaseDateEstimated: bool
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
Built Distribution
Close
Hashes for datamodelsFrontier-1.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0053473cc3ce790357acbb80f58b4b1942775def748b8849a337e3665734ccb |
|
MD5 | c8edef5df5b45c5c8665e3481463b4b1 |
|
BLAKE2b-256 | 7050a49150ad38f2e39959e7dc340b3f07bd868d5f3873d3305b83f83c37cfbd |