Skip to main content

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.2.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chempp-0.1.2-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file chempp-0.1.2.tar.gz.

File metadata

  • Download URL: chempp-0.1.2.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

Hashes for chempp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 68d95640efe1867eeb4c44d8287c6637295f956413bbacf5dafa3ceb495ac50c
MD5 5325896c022a4e7810f5f5176d935c92
BLAKE2b-256 132d8e048c292db1bfa79fc4f585c93b63b38f923ce1ce9234502e001f06b0c0

See more details on using hashes here.

File details

Details for the file chempp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: chempp-0.1.2-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

Hashes for chempp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 96e422ab35094f3b1f35aa74307f81e5a8a53d0b9ac3139638baeeff61fad1a9
MD5 eae42a988afc0a76c8fccd384b757ded
BLAKE2b-256 322bd740bcac3745ade6b88514fa7421a4edd329ecf00d78fc6729f2019a7a9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page