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 details)

Uploaded Source

Built Distribution

datamodelsFrontier-1.2.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file datamodelsFrontier-1.2.5.tar.gz.

File metadata

  • Download URL: datamodelsFrontier-1.2.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for datamodelsFrontier-1.2.5.tar.gz
Algorithm Hash digest
SHA256 5d5a3ca935bfeef36962b16a299028ea6cf58e0ef5cbba2c20cce6d767ed2167
MD5 a1792d15fb12f7cb7d3bfde65715a74c
BLAKE2b-256 957420ea0e4de969b3ced36a6bfdc36627adb63ae9d13a58886603ba5d7d9dfc

See more details on using hashes here.

File details

Details for the file datamodelsFrontier-1.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for datamodelsFrontier-1.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e0053473cc3ce790357acbb80f58b4b1942775def748b8849a337e3665734ccb
MD5 c8edef5df5b45c5c8665e3481463b4b1
BLAKE2b-256 7050a49150ad38f2e39959e7dc340b3f07bd868d5f3873d3305b83f83c37cfbd

See more details on using hashes here.

Supported by

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