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() {
print 2+3;
}
'''
# 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.3.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.3-py3-none-any.whl
(40.1 kB
view details)
File details
Details for the file chempp-0.1.3.tar.gz.
File metadata
- Download URL: chempp-0.1.3.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 |
8703d0430efacb134936cad5c7a5d1113cf2dcbc4ce5cec6ffa4685d47f0f989
|
|
| MD5 |
7644cd0827c661005ca720eba8a62abb
|
|
| BLAKE2b-256 |
80d8c496b3c3fc993ea4439cadc82b24e05c0b2f8e68200e4b9ad8180a6afd5c
|
File details
Details for the file chempp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: chempp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 40.1 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 |
cda3ccc87228abab2119538917d7db08ab8a876426f3e2894850b329295b245e
|
|
| MD5 |
e8c2607da98516185b10972c65c27822
|
|
| BLAKE2b-256 |
c522f5a27c3813ecc76922328356f9ac2186453c3bec82f3d447fefd426f1643
|