py2opsin
Simple Python interface to OPSIN: Open Parser for Systematic IUPAC nomenclature
Decision gist · record as of 2026-08-14
Yes. py2opsin is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real problem (batch IUPAC-to-structure conversion) faster and more reliably than network-based alternatives. Install it if you work with chemical nomenclature and need local, offline name resolution; the only prerequisite is Java 8+.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Java 8 or later must be installed and available on the system PATH to execute OPSIN at runtime.
- Low friction: pure Python wheel with a single runtime dependency (typing_extensions).
- OPSIN v2.9.0 is bundled, so no external Java installation is needed at install time, though Java 8+ is required at runtime.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in commercial and private projects, with only attribution and license notice required.
last release 2026-03-16 (151 days) · last repo commit 2026-03-16 · 81 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 221,234 downloads/mo, #9,283 on PyPI
Alternatives
Verify before relying
from py2opsin import py2opsin
smiles = py2opsin("ethane", output_format="SMILES")
# Returns: "CC"
# Batch processing (recommended for multiple names):
smiles_list = py2opsin(["pyridine", "aniline"], output_format="SMILES")- Whether the bundled OPSIN v2.9.0 is the latest available version and how frequently it is updated.
- Performance characteristics for very large batch operations (thousands+ of molecules).
- Behavior and error handling when Java is not available or OPSIN fails unexpectedly.
What it is and what it does
py2opsin is a lightweight Python wrapper around OPSIN, an open-source chemical nomenclature parser. It translates IUPAC chemical names into standardized molecular representations like SMILES, InChI, and CML. The package bundles OPSIN v2.9.0, so installation requires only Python and a runtime Java 8+ environment; it has minimal Python dependencies (only typing_extensions).
The primary use case is batch conversion of chemical names to structures, which is dramatically faster than making individual network requests to external services. The package accepts single names or lists of names and supports multiple output formats and parsing options (acid interpretation, radical handling, stereochemistry strictness). It is designed for cheminformatics workflows where you need to resolve chemical nomenclature locally without external API calls.
Use it for
- Convert a list of IUPAC names from a research paper into SMILES strings for molecular property analysis or machine learning.
- Batch-process chemical datasets where names are the primary identifier, converting them to canonical structures for downstream analysis.
- Resolve chemical nomenclature in automated workflows without relying on network calls or rate-limited external APIs.
- Explore chemical space by translating historical chemical names or nomenclature variants into modern structure formats.
- Support cheminformatics pipelines that require local, deterministic name-to-structure resolution with configurable parsing rules.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
py2opsin is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It solves a real problem (batch IUPAC-to-structure conversion) faster and more reliably than network-based alternatives. Install it if you work with chemical nomenclature and need local, offline name resolution; the only prerequisite is Java 8+.
Install
py2opsin on PyPI
Before you install
Low friction: pure Python wheel with a single runtime dependency (typing_extensions). OPSIN v2.9.0 is bundled, so no external Java installation is needed at install time, though Java 8+ is required at runtime. Repository is active with recent commits.
Java 8 or later must be installed and available on the system PATH to execute OPSIN at runtime.
License in practice
MIT license permits unrestricted use, modification, and distribution in commercial and private projects, with only attribution and license notice required.
Quickstart
from py2opsin import py2opsin
smiles = py2opsin("ethane", output_format="SMILES")
# Returns: "CC"
# Batch processing (recommended for multiple names):
smiles_list = py2opsin(["pyridine", "aniline"], output_format="SMILES")
Verify before relying
- Whether the bundled OPSIN v2.9.0 is the latest available version and how frequently it is updated.
- Performance characteristics for very large batch operations (thousands+ of molecules).
- Behavior and error handling when Java is not available or OPSIN fails unexpectedly.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyping_extensions |
| Maintenance | Actively maintained 151 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 221,234 / month, #9,283 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3 |
Evidence: py2opsin-1.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “IUPAC name to SMILES”
- py2opsinpy2opsin converts IUPAC chemical names to molecular structure…
- PubChemPyPubChemPy is a Python wrapper around the PubChem REST API that lets…
- selfiesConverts between SELFIES (Self-Referencing Embedded Strings) and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also PubChemPy · str2bool · selfies · padelpy · epam-indigo · aimsim-core · chemprop · pdbeccdutils · domain2idna · rdkit