Metadata-Version: 2.4
Name: imas-simdb
Version: 0.14.1
Summary: ITER Simulation Management Tool
Author: ITER Organization
Author-email: imas-support@iter.org
Maintainer: ITER Organization
Maintainer-email: imas-support@iter.org
Project-URL: Homepage, https://simdb.iter.org/dashboard/
Project-URL: Documentation, https://simdb.readthedocs.io/en/latest/
Project-URL: Repository, https://github.com/iterorganization/SimDB
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: System Administrators
Classifier: Natural Language :: English
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: Cerberus>=1.3.2
Requires-Dist: PyJWT>=1.4.0
Requires-Dist: appdirs>=1.4
Requires-Dist: appdirs>=1.4.0
Requires-Dist: argcomplete>=1.9.4
Requires-Dist: backports-datetime-fromisoformat>=1.0
Requires-Dist: click<=8.1.8,>=7.0
Requires-Dist: click_option_group>=0.5
Requires-Dist: distro>=1.8.0
Requires-Dist: email-validator>=1.1
Requires-Dist: numpy>=1.14
Requires-Dist: python-dateutil>=2.6
Requires-Dist: pyyaml>=3.13
Requires-Dist: requests>=2.27.0
Requires-Dist: semantic-version>=2.8
Requires-Dist: sqlalchemy<2.0,>=1.2.12
Requires-Dist: urllib3>=1.26
Requires-Dist: imas-python
Provides-Extra: build-test
Requires-Dist: pytest>=6.0; extra == "build-test"
Requires-Dist: pytest-cov>=2.0; extra == "build-test"
Requires-Dist: mypy>=0.910; extra == "build-test"
Requires-Dist: flake8>=3.9; extra == "build-test"
Requires-Dist: tox>=3.24; extra == "build-test"
Requires-Dist: Flask>=2.0; extra == "build-test"
Requires-Dist: flask-cors>=3; extra == "build-test"
Requires-Dist: flask-compress>=1.12; extra == "build-test"
Requires-Dist: Werkzeug==2.0.3; extra == "build-test"
Requires-Dist: python-magic~=0.4; extra == "build-test"
Requires-Dist: flask-caching>=1.10; extra == "build-test"
Requires-Dist: flask-restx==0.5; extra == "build-test"
Requires-Dist: flask-mail~=0.9.1; extra == "build-test"
Requires-Dist: simplejson~=3.0; extra == "build-test"
Requires-Dist: easyad>=1.0; extra == "build-test"
Provides-Extra: server
Requires-Dist: Flask>=2.0; extra == "server"
Requires-Dist: Werkzeug==2.0.3; extra == "server"
Requires-Dist: flask-caching>=1.10; extra == "server"
Requires-Dist: flask-compress>=1.12; extra == "server"
Requires-Dist: flask-cors>=3; extra == "server"
Requires-Dist: flask-mail~=0.9.1; extra == "server"
Requires-Dist: flask-restx==0.5; extra == "server"
Requires-Dist: python-magic~=0.4; extra == "server"
Requires-Dist: simplejson~=3.0; extra == "server"
Provides-Extra: auth-ad
Requires-Dist: easyad>=1.0; extra == "auth-ad"
Provides-Extra: auth-keycloak
Requires-Dist: python-keycloak>=4.0; extra == "auth-keycloak"
Provides-Extra: auth-ldap
Requires-Dist: python-ldap>=3.4; extra == "auth-ldap"
Provides-Extra: imas-validator
Requires-Dist: imas-validator>=1.0.0; extra == "imas-validator"
Provides-Extra: build-docs
Requires-Dist: sphinx>=4.5; extra == "build-docs"
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "build-docs"
Requires-Dist: sphinx-autodoc-typehints>=1.12.0; extra == "build-docs"
Requires-Dist: myst-parser>=0.18.0; extra == "build-docs"
Requires-Dist: nbsphinx>=0.8.0; extra == "build-docs"
Requires-Dist: docutils>=0.17; extra == "build-docs"
Requires-Dist: recommonmark>=0.7.0; extra == "build-docs"
Provides-Extra: postgres
Requires-Dist: psycopg2-binary>=2.8.0; extra == "postgres"
Provides-Extra: all
Requires-Dist: simdb[imas-validator,postgres,server]; extra == "all"
Dynamic: license-file

# SimDB simulation management tool

[![PyPI](https://img.shields.io/pypi/v/imas-simdb.svg)](https://pypi.org/project/imas-simdb/)
[![Documentation Status](https://readthedocs.org/projects/simdb/badge/?version=latest)](https://simdb.readthedocs.io/en/latest/)
[![CI](https://github.com/iterorganization/SimDB/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/iterorganization/SimDB/actions)

---

## Overview

**SimDB** is a powerful tool designed to track, manage, upload, and query simulations. Simulation data can be tagged with metadata, managed locally, and seamlessly transferred to remote SimDB services. Uploaded simulations can then be queried based on metadata.

---

## Features

- **CLI Tool:** Intuitive command line tool for all major operations.
- **Metadata Tagging:** Associate simulations with flexible, searchable metadata.
- **Remote Sync:** Transfer data to/from remote SimDB servers.
- **Developer Friendly:** Easy setup for contributing & extending codebase.

---

## Quickstart

Install SimDB (requires Python 3.11+):

```bash
pip install imas-simdb
```

SimDB version:

```bash
simdb --version
simdb remote [NAME] version
```

Ingest and upload your first simulation:

```bash
simdb simulation ingest -a SIM_ID MANIFEST_FILE
simdb simulation push [REMOTE] SIM_ID
```

Query simulations by metadata:

```bash
simdb simulation query [OPTIONS] [CONSTRAINTS]
simdb remote [REMOTE] query [OPTIONS] [CONSTRAINTS]
```
_where:_
- `SIM_ID` — UUID or alias for your simulation  
- `REMOTE` — The remote server name (as configured locally)  
- `MANIFEST_FILE` — YAML document that describes your simulation and its associated data
- `OPTION` - Additional optional parameters for the given command (see `--help` output)

[See full installation guide in the documentation &rarr;](https://simdb.readthedocs.io/en/latest/install_guide.html)

---

## Command Line Interface

SimDB provides a CLI tool to manage your simulation workflow.  
To view help and subcommands:

```bash
simdb --help
```

[Full CLI usage reference &rarr;](https://simdb.readthedocs.io/en/latest/cli.html)

---

## Usage Examples

- Uploading data:
  ```bash
  simdb simulation ingest -a my_simulation my_sim_manifest.yaml
  simdb simulation push ITER my_simulation
  ```
- Querying simulations:
  ```bash
  simdb simulation query code.name=ITER
  simdb remote ITER query code.name=ITER
  alias     code.name  
  --------------------
  103027/3  SOLPS-ITER 
  103028/3  SOLPS-ITER
  ```

---

## Accessing ITER Remotes

To access data from the ITER remotes outside ITER systems, you'll need to [configure a SimDB remote](https://simdb.readthedocs.io/en/latest/iter_remotes.html).

---

## Server Setup

Setting up and maintaining a remote CLI server is documented [here](https://simdb.readthedocs.io/en/latest/maintenance_guide.html).

---

## Developer Guide

Want to contribute or run SimDB from source?  
[See the developer guide &rarr;](https://simdb.readthedocs.io/en/latest/developer_guide.html)

---

## License

The software is licensed under the **LGPLv3** License which allows for extensive freedom in using, modifying, and distributing it, provided that the license terms are met.
Details can be found in [LICENSE-LGPL](LICENSE.txt).

---

## Contact

- Issues & Feature Requests: [GitHub Issues](https://github.com/deepakmaroo/SimDB/issues)
- Documentation: [simdb.readthedocs.io](https://simdb.readthedocs.io/en/latest/)

---
