Metadata-Version: 2.4
Name: ifpen.allotrope_models.dsc
Version: 2026.9.0b4
Summary: Differential Scanning Calorimetry models for reading and writing Allotrope Simple Model (ASM) REC/2026/09 JSON in Python.
Home-page: https://github.com/ifpen/AllotropeSimpleModelsClassGeneration
Author: Maxime Visconte
Author-email: Maxime Visconte <maxime.visconte@ifpen.fr>
Project-URL: Repository, https://github.com/ifpen/AllotropeSimpleModelsClassGeneration
Keywords: allotrope,asm,allotrope-simple-model,laboratory-data,chemistry,differential-scanning-calorimetry
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: ifpen.allotrope_models==2026.9.0b4
Requires-Dist: urllib3<3.0.0,>=2.1.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pydantic>=2.11
Requires-Dist: typing-extensions>=4.7.1
Dynamic: author
Dynamic: home-page

# Allotrope Simple Model Differential Scanning Calorimetry (Python)

A project from [IFP Energies Nouvelles][ifpen], a public research, innovation and
training organization in the fields of energy, transport and the environment.

Python classes (pydantic models) for reading and writing
[Allotrope Simple Model (ASM)](https://www.allotrope.org/asm) **Differential Scanning Calorimetry**
documents, release **REC/2026/09**. They are plain data models: deserialize an
ASM JSON file, navigate typed objects, and serialize it back without losing
content.

| | |
|---|---|
| ASM release | REC/2026/09 |
| ASM manifest | `http://purl.allotrope.org/manifests/dsc/REC/2026/09/differential-scanning-calorimetry.manifest` |
| Root model | `DifferentialScanningCalorimetrySimpleModel` |
| Package | `ifpen-allotrope-models-dsc` 2026.9.0b4 |
| Depends on | `ifpen-allotrope-models` 2026.9.0b4 (shared ASM models, installed automatically) |
| Requires | Python 3.9+ |

## Installation

```sh
pip install ifpen-allotrope-models-dsc==2026.9.0b4
```

## Usage

```python
from ifpen.allotrope_models.dsc import DifferentialScanningCalorimetrySimpleModel

with open("input.json", encoding="utf-8") as stream:
    document = DifferentialScanningCalorimetrySimpleModel.from_json(stream.read())
print(len(document.differential_scanning_calorimetry_aggregate_document.differential_scanning_calorimetry_document))

with open("output.json", "w", encoding="utf-8") as stream:
    stream.write(document.to_json())
```

Members follow the ASM JSON names: `"differential scanning calorimetry aggregate document"` is `differential_scanning_calorimetry_aggregate_document`.

## ASM conventions

- An unavailable number, written `"NaN"` in ASM JSON, is read as `math.nan` and
  written back as `"NaN"`.
- Values that ASM writes either as a primitive or as a typed object, such as
  date-times (`"2026-11-17T09:00:00Z"` or `{"@type": …, "value": …}`), keep
  the form they were read in.
- Named data cubes (`"… data cube"` members of diagnostic trace documents) are
  kept in `additional_properties`.

## Versioning

Version 2026.9.0b4 implements ASM REC/2026/09. The last version number is a
patch level of these packages, not of ASM. The technique packages depend on
exactly the same version of `ifpen-allotrope-models`.

## Packages

All packages are generated from the same OpenAPI description of the ASM
schemas, so their models match across languages.

| | Java | C# | Python | TypeScript |
|---|---|---|---|---|
| Commons | [Maven Central](https://central.sonatype.com/artifact/fr.ifpen.allotropeconverters/allotrope-models-commons) | [NuGet](https://www.nuget.org/packages/IFPEN.AllotropeConverters.AllotropeModels.Commons) | [PyPI](https://pypi.org/project/ifpen-allotrope-models/) | [npm](https://www.npmjs.com/package/@ifpen/allotrope-models-commons) |
| Gas Chromatography | [Maven Central](https://central.sonatype.com/artifact/fr.ifpen.allotropeconverters/allotrope-models-gc) | [NuGet](https://www.nuget.org/packages/IFPEN.AllotropeConverters.AllotropeModels.Gc) | [PyPI](https://pypi.org/project/ifpen-allotrope-models-gc/) | [npm](https://www.npmjs.com/package/@ifpen/allotrope-models-gc) |
| Differential Scanning Calorimetry | [Maven Central](https://central.sonatype.com/artifact/fr.ifpen.allotropeconverters/allotrope-models-dsc) | [NuGet](https://www.nuget.org/packages/IFPEN.AllotropeConverters.AllotropeModels.Dsc) | **[PyPI](https://pypi.org/project/ifpen-allotrope-models-dsc/)** | [npm](https://www.npmjs.com/package/@ifpen/allotrope-models-dsc) |
| Liquid Chromatography | [Maven Central](https://central.sonatype.com/artifact/fr.ifpen.allotropeconverters/allotrope-models-hplc) | [NuGet](https://www.nuget.org/packages/IFPEN.AllotropeConverters.AllotropeModels.Hplc) | [PyPI](https://pypi.org/project/ifpen-allotrope-models-hplc/) | [npm](https://www.npmjs.com/package/@ifpen/allotrope-models-hplc) |

## License

The source code is licensed under [CeCILL 2.1](https://opensource.org/license/cecill-2-1).
The models are derived from the ASM JSON schemas of the Allotrope Foundation,
licensed under [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/).

Source code and issues: <https://github.com/ifpen/AllotropeSimpleModelsClassGeneration>.

[ifpen]: https://www.ifpenergiesnouvelles.com/
