Skip to main content

Pallet simulation library developed at THWS

Project description

Pallet Simulator

Pallet Simulator is a Python package that provides functionalities for visualizing pallets inside orders and simulating their stability.

Installation

You can install the Pallet Simulator package using pip:

pip install pallet-sim

Usage

Please refer to the examples folder for detailed examples on how to use the Pallet Simulator. The examples demonstrate how to visualize pallets within orders and simulate their stability.

Data Structures

The Pallet Simulator uses a JSON-based data structure to represent orders. An order object contains the following fields:

{
    "orderID": "order_id",
    "pallets": [
        {
            "palletNr": "palletNr",
            "palletType": "EURO_PALLET",
            "palletDimension": {
                "x": 800.0,
                "y": 1200.0
            },
            "boxes": [
                {
                    "product_code": "0",
                    "anchor": {
                        "x": 313.0,
                        "y": 606.0,
                        "z": 0.0
                    },
                    "dimension": {
                        "x": 159.0,
                        "y": 298.0,
                        "z": 211.0
                    },
                    "approach": "9"
                }
            ]
        }
    ],
    "articles": {
        "0": {
            "description": "description",
            "weight": 5054.0,
            "shippingGroup": "A"
        }
    }
}

In this structure, an order consists of multiple pallets, each identified by a palletNr. Each pallet has a type (palletType), dimensions (palletDimension), and a list of boxes (boxes). Each box is defined by a product code (product_code), anchor coordinates (anchor), dimensions (dimension), and an approach value (approach).

The articles field represents the articles or products included in the order. Each article is identified by a numeric key (e.g., "0") and has a description, weight, and shipping group.

The Pallet Simulator utilizes this order structure to generate visual representations of pallets and perform stability simulations.

Feel free to modify and adapt this structure based on your specific requirements and use cases.

For more details on how to use the Pallet Simulator, please refer to the documentation and examples provided with the package.

Example files are located under pallet_data/generic_data.

License

This project is licensed under the MIT License. See the LICENSE file for details.

The MIT License is a permissive open-source license that allows you to use, modify, and distribute the software for both commercial and non-commercial purposes. It provides you with the freedom to adapt the codebase to suit your needs while providing attribution to the original authors.

For more information about the MIT License, please visit opensource.org/licenses/MIT.

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

pallet_sim-0.0.22.tar.gz (402.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pallet_sim-0.0.22-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file pallet_sim-0.0.22.tar.gz.

File metadata

  • Download URL: pallet_sim-0.0.22.tar.gz
  • Upload date:
  • Size: 402.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pallet_sim-0.0.22.tar.gz
Algorithm Hash digest
SHA256 805bac11d3888440004518920d24f31e62df6abd1c424a74acd4590f588a7480
MD5 c072c396561496b14d969392dbb5b830
BLAKE2b-256 2702dcaeb2ab17cae0260a44cfedfe472603fe412fdfa3da742a90965279a664

See more details on using hashes here.

File details

Details for the file pallet_sim-0.0.22-py3-none-any.whl.

File metadata

  • Download URL: pallet_sim-0.0.22-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pallet_sim-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 306d8b832c4105c26d3e662c913a2c340916b1bd7b352638374d5619f5c411ad
MD5 0535b1db2a07c13cd22f77b78ce16e4a
BLAKE2b-256 c6918281c486a71300df3437f8afdff64af6affac3f9312c3874cefdc5801517

See more details on using hashes here.

Supported by

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