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.4.tar.gz (39.0 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.4-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chempp-0.1.4.tar.gz
  • Upload date:
  • Size: 39.0 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.4.tar.gz
Algorithm Hash digest
SHA256 deaead5cf52b2539cc7f59b8fe62c2f41254ed0871c2f6b5a7b4a59ef34943c4
MD5 4cfea9ab0ac503307aa505f46126679c
BLAKE2b-256 9453ca454e08b79bfc1628821b47c9c9d0ecfeca094d3ae8530156902dd9e173

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chempp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 40.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d888c5a310d661eeb03c06138840540af3daea2e4a01f6632c0efc1a898c42b8
MD5 3de95232cbaa5bbff1d389415b9987ee
BLAKE2b-256 5eae99bf926954d984f8f7a310ed73b1b3f37cd6b69fd3a93fee66a6ec6f6ee3

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