Python client for the LCMD molecular database
Project description
LCMD-DB
Python client for the LCMD molecular database.
Installation
uv add lcmd-db
# or
pip install lcmd-db
Usage
from lcmd_db import load_dataset
# Load a dataset
df = load_dataset("spahm_l11")
# Load with XYZ structures (adds structure_path column)
df = load_dataset("spahm_l11", include_structures=True)
print(df["structure_path"][0])
# Force re-download (bypass cache)
df = load_dataset("spahm_l11", force_download=True)
# Clear cache
from lcmd_db import clear_cache
clear_cache() # Clear all
clear_cache("spahm_l11") # Clear specific dataset
Options
| Parameter | Description | Default |
|---|---|---|
subset |
Dataset slug (e.g., "spahm_l11", "qm9") | required |
data_format |
Output format: "parquet", "csv", "json", "xlsx", "tsv" | "parquet" |
include_structures |
Download XYZ files and add structure_path column |
False |
cache_dir |
Custom cache directory | OS-dependent |
force_download |
Bypass cache and re-download | False |
Available Datasets
Browse datasets at lcmd-app.epfl.ch.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lcmd_db-0.3.0.tar.gz
(302.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lcmd_db-0.3.0-py3-none-any.whl
(29.5 kB
view details)
File details
Details for the file lcmd_db-0.3.0.tar.gz.
File metadata
- Download URL: lcmd_db-0.3.0.tar.gz
- Upload date:
- Size: 302.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eab605bde692d5e8eff3c8ecf9a77f8dc70eaec423d6960f5e4006781e961ef
|
|
| MD5 |
d4396009ab6107353fd189349b700d86
|
|
| BLAKE2b-256 |
052e02f952959b3090992a8f41e244341ce776d0ebb8337167adb899887651ae
|
File details
Details for the file lcmd_db-0.3.0-py3-none-any.whl.
File metadata
- Download URL: lcmd_db-0.3.0-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c26b324fe9f27800ec4ca87c6f87508b01e2f15f9bbfe5dca8e1600f9ede01ad
|
|
| MD5 |
3e66e527ad10d7781becc33a4bdd8dc7
|
|
| BLAKE2b-256 |
16c69fe2a9a124c5f9ffcc2973bc2487ee829aede0212be592a79cbcb22f2c73
|