Metadata-Version: 2.4
Name: stb_suite
Version: 2.1.0
Summary: Command-line tools for every stage of a SIESTA DFT project: inputs, structures, post-processing and property workflows.
Author: STB-SUITE team
License-Expression: MIT
Project-URL: Homepage, https://stb-suite.github.io/stb/
Project-URL: Documentation, https://stb-suite.github.io/stb/
Project-URL: Source, https://github.com/stb-suite/stb
Project-URL: Changelog, https://stb-suite.github.io/stb/changelog/
Project-URL: Issues, https://github.com/stb-suite/stb/issues
Keywords: SIESTA,DFT,density functional theory,materials science,computational chemistry,phonons,elastic constants,adsorption,NEB,machine-learning potentials,MACE
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: <3.13,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: ase
Requires-Dist: matplotlib
Requires-Dist: pymatgen>=2026.9.24
Requires-Dist: spglib>=2.2.0
Requires-Dist: sisl
Requires-Dist: pybader
Requires-Dist: setuptools
Requires-Dist: scipy
Requires-Dist: phonopy>=4.7.1
Requires-Dist: pandas
Requires-Dist: icet
Requires-Dist: pyxtal
Provides-Extra: ml
Requires-Dist: torch; extra == "ml"
Requires-Dist: mace-torch; extra == "ml"
Requires-Dist: torch-dftd; extra == "ml"
Dynamic: license-file

# 🧰 STB-SUITE — Siesta Toolbox Suite

**A unified command-line toolkit for SIESTA DFT workflows**

![Status](https://img.shields.io/badge/status-stable%2C%20under%20testing-yellowgreen.svg)
![License](https://img.shields.io/badge/license-MIT-green.svg)
![Python](https://img.shields.io/badge/python-3.11%20to%203.12-blue.svg)
![Compatibility](https://img.shields.io/badge/platform-Linux%20%7C%20macOS%20%7C%20Windows-lightgrey.svg)
[![Documentation](https://img.shields.io/badge/docs-stb--suite.github.io%2Fstb-informational.svg)](https://stb-suite.github.io/stb/)

**Authors:** [project lead and collaborators](https://stb-suite.github.io/stb/authors/)

📚 **Documentation: <https://stb-suite.github.io/stb/>** — a guide for every tool and a reference page for every command.

---

## 📖 Overview

**STB-SUITE (Siesta Toolbox Suite)** is a collection of command-line tools that assist users of the **SIESTA** DFT code through every step of a project: generating inputs, building and converting structures, post-processing results, and running complete prepare-and-analyze workflows for a specific property.

Every tool is a standalone `stb-*` command, and `stb-suite` is an interactive menu that wraps all of them.

SIESTA itself is not bundled: the Inputs and Workflow tools write ready-to-run calculation folders, and the Analysis tools read what SIESTA produced.

---

## 🚀 What's inside

The menu groups the tools into seven categories. Each tool has a guide with a runnable example in [`examples/`](https://github.com/stb-suite/stb/tree/main/examples) (published on the [documentation site](https://stb-suite.github.io/stb/)).

| # | Category | What it's for | Tools |
|---|----------|---------------|-------|
| 1 | **Inputs** | Set up a SIESTA run | `stb-inputfile` `stb-pseudo` `stb-kgrid` `stb-kpath` `stb-dftu` `stb-fetch` `stb-mlrelax` |
| 2 | **Analysis** | Analyze simulation results | `stb-bands` `stb-dos` `stb-convdos` `stb-structural` `stb-symmetry` `stb-bader` `stb-workfunction` `stb-density` `stb-xrd` `stb-fatbands` `stb-stm` `stb-wfdensity` `stb-sts` `stb-coop` `stb-ipr` `stb-effmass` `stb-spintexture` `stb-aimdAnalysis` `stb-nativecharges` |
| 3 | **Utils** | File management and format conversion | `stb-translate` `stb-clean` `stb-cube` `stb-siesta2wtb` `stb-ani2traj` `stb-status` `stb-archive` |
| 4 | **Structures** | Build, generate or transform structure files | `stb-2Dstacking` `stb-supercell` `stb-slab` `stb-nanotube` `stb-defect` `stb-sqs` `stb-unitcell` `stb-crystalbuilder` `stb-passivate` `stb-molecule` `stb-amorphize` `stb-crystalcast` |
| 5 | **Workflow** | Paired preparation + analysis pipelines for one property | Stress-strain, elastic constants, cohesive energy, phonons, convergence tests, structure solution (XRD), Hubbard U, adsorption, NEB, stacking fault, Raman, IR, GQCA, optical properties, equation of state, charge density difference, Hirshfeld-I |
| 6 | **Catalysis** | Catalysis workflows (HER, OER) | Provided by an extension package; the section is empty without it |
| 7 | **ML Simulations** | Train a MACE force field on SIESTA data, and run simulations with it or with the foundation model | Custom ML force field (workflow), `stb-mlmd` `stb-mlphonons` `stb-mlelastic` `stb-mlneb` `stb-mladsorb` |

A workflow is several commands used in order (for example `stb-strain` then `stb-strainAnalysis`); the [documentation](https://stb-suite.github.io/stb/) lists every command of each one.

---

## 🧠 Requirements

* **Python 3.11 to 3.12**
* Installed automatically: `numpy`, `ase`, `matplotlib`, `pymatgen`, `spglib`, `sisl`, `pybader`, `scipy`, `phonopy`, `pandas`, `icet`, `pyxtal`
* Optional **`ml` extra** (`torch`, `mace-torch`, `torch-dftd`) for the ML tools — see below

---

## 📦 Installation

From PyPI:

```bash
pip install stb-suite              # the suite
pip install "stb-suite[ml]"        # with the optional ML tools (PyTorch, mace-torch)
```

From source (`git clone -b dev ...` for the development version):

```bash
git clone https://github.com/stb-suite/stb.git
cd stb/stb-suite
pip install .                      # or ".[ml]"
```

---

## ▶️ Usage

Launch the interactive menu, then browse the categories or type a tool's code (for example `1.3`, or `5.1.2` for a workflow stage):

```bash
stb-suite
```

Or run any tool directly:

```bash
stb-inputfile structure.fdf --type relax
stb-kgrid -f structure.fdf -d 0.2
stb-symmetry --file structure.fdf --format fdf
```

Every tool prints its options with `--help` (for example `stb-kgrid --help`).

---

## 🗂️ Repository layout

* `stb-suite/` — the Python package (`src/stb/`) and its packaging metadata
* `examples/` — one tutorial per tool, with a runnable script and small input files
* `test/` — the developers' smoke tests
* `docs/`, `mkdocs.yml` — the documentation site, built from `examples/`

---

## 🧾 License

Distributed under the **MIT License** (see [LICENSE](LICENSE)).
