Chem++ for Chemical System Programming
Project description
Chem++
Chem++ is a domain-specific programming language and runtime for computational chemistry, integrating a C++-like syntax with chemistry-specific types and functions and optional PubChem lookup support. This package provides:
- A fully functional interpreter (
chempp.interpreter) for the Chem++ language. - A Safe API wrapper (
chempp.safe_api) that enforces Parse → Analyze → Interpret order, provides PubChem caching + fallback, and exposes synchronous and asynchronous run helpers. - A chemistry registry with common types (Atom, Molecule, Reaction) and helper functions.
- Toolkit features for Jupyter notebook integration, static analysis hooks, and a small cache.
Quickstart
import chempp.safe_api as cs
code = '''
float main() {
// example: create a molecule object and fetch basic property
Molecule water("H2O");
float w = molecular_weight("H2O");
return 0;
}
'''
# synchronous run
result = cs.run(code)
# asynchronous run (useful in notebooks)
import asyncio
asyncio.run(cs.run_async(code))
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
chempp-0.1.1.tar.gz
(39.6 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
chempp-0.1.1-py3-none-any.whl
(40.2 kB
view details)
File details
Details for the file chempp-0.1.1.tar.gz.
File metadata
- Download URL: chempp-0.1.1.tar.gz
- Upload date:
- Size: 39.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d14d5f92e5f45d8ef284ce5b340ce89941b754dcd13804639483dde3678d9549
|
|
| MD5 |
32d556eb20a245bcb849e4aff38ae6fc
|
|
| BLAKE2b-256 |
280b8e466f1611f6d7a853b9d1d00e2e299207f9328ffad001cb6585d7e0473e
|
File details
Details for the file chempp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: chempp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 40.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80531e2269d626a1db03f2ff2fbc7d020e925476c0ef1b1ecead2edcf5f3f038
|
|
| MD5 |
3ffc7f32c3e15d81e06b9380abf87c96
|
|
| BLAKE2b-256 |
85728a2cf8852c21c46b4c6479647c315482f4710b57f5c63657cd4ca248b60e
|