Metadata-Version: 2.4
Name: pyphyschemtools
Version: 0.12.3
Summary: A comprehensive Python toolbox for physical chemistry and cheminformatics
Author-email: "Romuald POTEAU, LPCNO" <romuald.poteau@utoulouse.fr>
License-Expression: GPL-3.0-or-later
Project-URL: Repository, https://github.com/rpoteau/pyphyschemtools
Project-URL: Changelog, https://github.com/rpoteau/pyphyschemtools/blob/main/CHANGELOG.md
Project-URL: Documentation, https://pyphyschemtools.readthedocs.io/en/latest/
Project-URL: Issues, https://github.com/rpoteau/pyphyschemtools/issues
Project-URL: Try on Colab, https://colab.research.google.com/github/rpoteau/pyphyschemtools/blob/main/Examples_pyPCT.ipynb
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ase
Requires-Dist: bokeh
Requires-Dist: CageCavityCalc
Requires-Dist: cclib
Requires-Dist: ipympl
Requires-Dist: ipython
Requires-Dist: ipywidgets
Requires-Dist: jupyter
Requires-Dist: jupyter_bokeh
Requires-Dist: matplotlib
Requires-Dist: mendeleev
Requires-Dist: molmass
Requires-Dist: numpy
Requires-Dist: odfpy
Requires-Dist: openpyxl
Requires-Dist: pandas
Requires-Dist: Pillow
Requires-Dist: pipdeptree
Requires-Dist: plotly
Requires-Dist: pubchempy
Requires-Dist: py3Dmol
Requires-Dist: pymatgen
Requires-Dist: pyvis
Requires-Dist: qrcode
Requires-Dist: requests
Requires-Dist: rdkit
Requires-Dist: scikit-learn
Requires-Dist: scipy
Requires-Dist: seaborn
Requires-Dist: sympy
Requires-Dist: tqdm
Requires-Dist: wordcloud
Requires-Dist: xarray
Provides-Extra: docs
Requires-Dist: sphinx; extra == "docs"
Requires-Dist: sphinx_rtd_theme; extra == "docs"
Requires-Dist: myst-parser; extra == "docs"
Requires-Dist: nbsphinx; extra == "docs"
Requires-Dist: ipykernel; extra == "docs"
Requires-Dist: pandoc; extra == "docs"
Requires-Dist: numpydoc; extra == "docs"
Requires-Dist: sphinx-copybutton; extra == "docs"
Provides-Extra: ml
Requires-Dist: keras; extra == "ml"
Requires-Dist: tensorflow; extra == "ml"
Requires-Dist: shap; extra == "ml"
Dynamic: license-file

<div style="text-align:center">
<img src="https://raw.githubusercontent.com/rpoteau/pyphyschemtools/main/pyphyschemtools/resources/svg/tools4pyPC_banner.png" alt="t4pyPCbanner" width="800"/>
</div>

<br>

**pyphyschemtools** is a collection of Python utilities designed to facilitate data processing and analysis in the field of physical chemistry

This library is an integral part of the broader [**pyPhysChem project**](https://github.com/rpoteau/pyPhysChem/), aimed at integrating Python programming into physical chemistry education, spanning from Bachelor's level to PhD students and early-career researchers. The pyPhysChem project is strategically positioned at the interface between higher education and cutting-edge research.

The pyPhysChem notebooks provide commented and illustrated examples covering fundamental topics — such as derivatives, integrals, NMR, or the hydrogen atom — while extending into advanced research applications. Among them, **ULR_DigitalChem1** (Université de La Réunion, L3 Chemistry) is a full semester-long TD/TP course built entirely on `pyphyschemtools`: fundamental constants and units, the hydrogen atom and atomic orbitals, loading and analyzing experimental data, measurement statistics, calibration and regression, and molecular symmetry (point groups, Lewis/VSEPR structures, SMILES, molecular orbitals). The repository also includes comprehensive resources for machine learning in chemistry, including artificial neural networks and autoencoders, bridging the gap between classroom theory and modern laboratory practice.

---

**Installation**

Activate your python environment and run:

```bash
pip install pyphyschemtools
```

[![PyPI version](https://img.shields.io/pypi/v/pyphyschemtools.svg)](https://pypi.org/project/pyphyschemtools/)
[![Documentation Status](https://readthedocs.org/projects/pyphyschemtools/badge/?version=latest)](https://pyphyschemtools.readthedocs.io/en/latest/?badge=latest)
[![License](https://img.shields.io/github/license/rpoteau/pyphyschemtools)](https://github.com/rpoteau/pyphyschemtools/blob/main/LICENSE)
[![Downloads](https://img.shields.io/pypi/dm/pyphyschemtools)](https://pypi.org/project/pyphyschemtools/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.18644730.svg)](https://doi.org/10.5281/zenodo.18644730)

**Main Tutorial**: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/rpoteau/pyphyschemtools/blob/main/Examples_pyPCT.ipynb)

---

## Quick start

### 1. Installation

**Jupyter / Google Colab** (first cell of your notebook):

```python
!pip install pyphyschemtools
```

**Environments without the `!` syntax** (claude.ai code sandbox, plain scripts):

```python
import subprocess, sys

result = subprocess.run(
    [sys.executable, "-m", "pip", "install", "pyphyschemtools", "-q"],
    capture_output=True, text=True
)
print("✅ pyphyschemtools installed" if result.returncode == 0
      else f"⚠️ Installation problem:\n{result.stdout}\n{result.stderr}")
```

### 2. First steps

Modules are loaded on demand (lazy loading): there is no need for `import pyphyschemtools as ppct`, simply import the names you need.

```python
from pyphyschemtools import Energy, plot_radial, HMO

# Units: convert 1 eV to kJ/mol
print(Energy(1, "eV").to("kJ/mol"))                  # 96.4853 kJ/mol

# Hydrogen-like atomic orbitals: radial probability density of 1s, 2s, 2p
plot_radial([(1, 0), (2, 0), (2, 1)], density=True)

# Hückel molecular orbitals from a SMILES string (butadiene)
mol = HMO("C=CC=C")
mol.show()                  # molecule with its π system
mol.plot_energy_diagram()   # MO energy diagram with occupations
```

Bundled example data are available through `get_ppct_data`:

```python
from pyphyschemtools import get_ppct_data
path = get_ppct_data("Molecules/betaCD-closed.xyz")
```

### 3. Kinetics on Google Colab, with your own data

```python
!pip install pyphyschemtools
```

```python
from pyphyschemtools import kbasic

kb = kbasic()
kb.read(colab=True)   # opens an upload dialog: pick your Excel file
                      # (2 columns: time, property G)
kb.fit(ordre=1)       # prints the optimal k and the RMSD
kb.plot()             # data + model, and the RMSD landscape
```

Not on Colab, or just want to try it? Use the bundled example file:

```python
from pyphyschemtools import kbasic, get_ppct_data

kb = kbasic()
kb.read(get_ppct_data("Kinetics/kbasic.xlsx"))
kb.fit(ordre=1)
kb.plot()
```

The full tutorial is in [`Examples_pyPCT.ipynb`](https://colab.research.google.com/github/rpoteau/pyphyschemtools/blob/main/Examples_pyPCT.ipynb).
