Metadata-Version: 2.4
Name: daitum-model
Version: 1.0.1
Summary: Model and formula generation library for the Daitum platform
Author: Daitum
License-Expression: Apache-2.0
Project-URL: Homepage, https://daitum.com
Project-URL: Documentation, https://daitum-core.readthedocs.io
Project-URL: Repository, https://github.com/daitumapi/daitum-core
Keywords: optimisation,modelling,daitum
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typeguard>=4.4
Dynamic: license-file

# daitum-model

Model and formula generation library for the [Daitum](https://daitum.com) optimisation platform.

`daitum-model` provides a fluent builder API for defining optimisation models: tables, fields,
formulas, and formula functions. The model is serialised to JSON and packaged for upload to the
Daitum platform.

## Installation

```bash
pip install daitum-model
```

## Usage

```python
from daitum_model import ModelBuilder, DataType
from daitum_model import formulas

model = ModelBuilder()
table = model.add_table("locations")
table.add_data_field("id", DataType.INTEGER)
table.add_data_field("name", DataType.STRING)
```

## Documentation

Full documentation is available at [daitum-core.readthedocs.io](https://daitum-core.readthedocs.io).

## Changelog

See [CHANGELOG.md](https://github.com/daitumapi/daitum-core/blob/main/daitum-model/CHANGELOG.md) for version history.

## Licence

Apache 2.0 — see [LICENSE](https://github.com/daitumapi/daitum-core/blob/main/LICENSE).
