Table des matières
Ceci est une ancienne révision du document !
Librairie Mendeleev
La librairie Mendeleev est complète et évoluée
- Package repository sur PyPI : https://pypi.org/project/mendeleev/
- Page officielle, description et code source : https://github.com/lmmentel/mendeleev
- Documentation complète : https://mendeleev.readthedocs.io/en/stable/
- Notebook Jupyter (exemples) :
- https://nbviewer.jupyter.org/github/lmmentel/mendeleev/blob/master/docs/source/notebooks/02_tables.ipynb (accessing the data in bulk)
- Installation via pip, ou la commande conda, ou l'interface de Anaconda, suivant l'environnement utilisé :
- pip install –user mendeleev
- conda install -c conda-forge mendeleev=0.5.2
- conda install -c lmmentel mendeleev=0.6.1 (version plus récente)
- Données utilisables, en ligne : http://mendeleev.herokuapp.com/
Exemples de programmes simples
- IonizationEnergy-01.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Library references : * https://pypi.org/project/mendeleev/ * https://mendeleev.readthedocs.io/en/stable/ * https://github.com/lmmentel/mendeleev """ from mendeleev import element import matplotlib.pyplot as plt x, y = range(1,108), [element(i).ionenergies[1] for i in range(1,108)] for i in range(1,108): print(x[i-1], y[i-1]) plt.figure() plt.plot(x, y) plt.savefig("ionenergies.png") plt.show()