Cell Specification#
Client for managing cell specifications.
Cell specification client for managing cell type definitions.
This module provides the CellSpecificationClient for creating,
reading, updating, and deleting cell specifications, which define the
properties of battery cell types (manufacturer, chemistry, ratings, etc.).
- class ionworks.cell_specification.CellSpecificationClient(client)[source]#
Bases:
objectClient for managing cell specifications.
Provides methods to create, read, update, and delete cell specifications, which define the properties of battery cell types (manufacturer, chemistry, ratings, etc.).
- Parameters:
client (Any)
- __init__(client)[source]#
Initialize the CellSpecificationClient.
- Parameters:
client (Any) – The HTTP client instance for making API requests.
- Return type:
None
- get(cell_spec_id)[source]#
Get a specific cell specification by ID.
- Parameters:
cell_spec_id (str) – The ID of the cell specification to retrieve.
- Returns:
The requested cell specification object.
- Return type:
- list(include_components=False)[source]#
List all cell specifications.
- Parameters:
include_components (bool, optional) – If True, returns each specification with its nested component and material data. Defaults to False (metadata only).
- Returns:
A list of all cell specification objects.
- Return type:
- create(data)[source]#
Create a new cell specification.
- create_or_get(data)[source]#
Create a new cell specification or get an existing one.
Creates a new cell specification if it doesn’t exist, otherwise returns the existing one.