Skip to main content

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

datamodelsFrontier-1.2.5.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

datamodelsFrontier-1.2.5-py3-none-any.whl (3.7 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