Spaces:
Runtime error
Runtime error
metadata
title: RDKit API
emoji: 🔬
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.44.1
app_file: app.py
pinned: false
RDKit API
This is a Hugging Face Space providing API access to various RDKit cheminformatics functions.
Endpoints
POST /api/name_to_smiles: Convert chemical name to SMILESPOST /api/name_to_3d_molecule: Generate 3D molecule visualizationPOST /api/smiles_to_mol: Convert SMILES to canonical SMILESPOST /api/molecular_weight: Calculate molecular weightPOST /api/logp: Calculate logP (partition coefficient)POST /api/tpsa: Calculate topological polar surface areaPOST /api/tpsa: Calculate TPSA (topological polar surface area)POST /api/mol_image: Generate 2D molecule image (returns PIL Image)
Usage
To deploy on Hugging Face Spaces, upload this repository.
For local testing, run:
pip install -r requirements.txt
python app.py
The API endpoints can be accessed programmatically using the Gradio client or HTTP requests.