Metadata-Version: 2.4
Name: mat3ra-jode
Version: 2026.10.22.post0
Summary: JOb DEsign elements — non-visual Job class, enums, and utilities.
Author-email: "Exabyte Inc." <info@mat3ra.com>
License: # LICENSE
        
        Copyright 2026 Exabyte Inc. (Mat3ra.com)
        
        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at
        
           http://www.apache.org/licenses/LICENSE-2.0
        
        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
        
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Development Status :: 3 - Alpha
Classifier: Topic :: Software Development
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: mat3ra-code
Requires-Dist: mat3ra-esse
Requires-Dist: mat3ra-made
Requires-Dist: mat3ra-wode>=2026.10.22.post0
Provides-Extra: dev
Requires-Dist: pre-commit; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: isort; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: pip-tools; extra == "dev"
Provides-Extra: tests
Requires-Dist: coverage[toml]>=5.3; extra == "tests"
Requires-Dist: pytest; extra == "tests"
Requires-Dist: pytest-cov; extra == "tests"
Provides-Extra: all
Requires-Dist: mat3ra-jode[tests]; extra == "all"
Requires-Dist: mat3ra-jode[dev]; extra == "all"
Dynamic: license-file

[![npm version](https://badge.fury.io/js/%40mat3ra%2Fjode.svg)](https://badge.fury.io/js/%40mat3ra%2Fjode)
[![License: Apache](https://img.shields.io/badge/License-Apache-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)

# JoDe

JOb DEsign elements — non-visual Job class, enums, and utilities.

## Installation

```bash
npm install @mat3ra/jode
```

## Python

```bash
pip install mat3ra-jode
```

Create a job from a WoDe workflow and a MADE material, then render explicitly:

```python
from mat3ra.jode import Job

job = Job.create_from_workflow(
    workflow,
    material,
    _project={"_id": "project-id"},
    compute={"queue": "D", "nodes": 1, "ppn": 1, "timeLimit": "01:00:00"},
)
job.render()
job_json = job.to_json()
```

The factory keeps the ordinary Pydantic constructor and accepts additional job
configuration as keyword arguments. Rendering delegates to WoDe; execution belongs
to a job runtime. It does not change the supplied workflow.

For `workflow.isMultiMaterial`, pass an ordered list of materials (or one material).
The factory binds the list with `set_materials()` and rendering passes both the primary
material and the full list to WoDe. As in JavaScript, a single-material workflow uses
the first material when given a list. Empty lists fail.

Live materials are private and excluded from serialization. `_material` contains a
single entity reference when available; `_materials` contains the ordered references
only when every material has an ID, avoiding a partial list that changes indexing.
After loading JSON, call `set_material()` or `set_materials()` before rendering again.
WoDe supports QE SCF rendering; STANDATA's `pw_scf_volume_scaled` flavor handles
material-index selection. The ordinary `pw_scf` flavor is unchanged. Unsupported
providers and geometry raise errors.

Python rendering requires `mat3ra-wode>=2026.10.22.post0`, the published release of
[WoDe #169](https://github.com/mat3ra/wode/pull/169).
WoDe uses the published utils `2026.10.22.post0` and STANDATA `2026.10.22.post1` releases.
