Skip to main content

ChargeFW

ChargeFW is a C++23 framework for empirical partial atomic-charge calculation. It provides a toolkit-neutral native library, a command-line application, and Python bindings over the same assessment and calculation engine.

The current implementation includes 22 charge methods, bundled parameter sets, deterministic applicability and execution planning, source-ordered result mapping, native molecular-file adapters, and full or explicit reduced calculations. It is not yet the production backend for Atomic Charge Calculator III.

ChargeFW expects a molecular graph, formal charges, and any coordinates required by the selected method. It does not parse SMILES, add hydrogens, assign protonation states, perceive arbitrary bonds, or generate coordinates.

Quick start

Build and install the native library and CLI:

cmake --preset gcc-release -DCMAKE_INSTALL_PREFIX="$PWD/_install"
cmake --build --preset gcc-release
cmake --install build/gcc-release --strip

Calculate charges for an SDF file:

_install/bin/chargefw calculate molecule.sdf output

Build a Python wheel from the source tree:

uv build --quiet --wheel
uv pip install --link-mode=copy --reinstall dist/chargefw-*.whl
import chargefw

molecule = chargefw.Molecule(
    atomic_numbers=[8, 1, 1],
    bonds=[[0, 1, 1], [0, 2, 1]],
    coordinates=[[0.0, 0.0, 0.0], [0.96, 0.0, 0.0], [-0.24, 0.93, 0.0]],
)
result = chargefw.calculate(molecule, method="eem", execution="full")
charges = result.assignments[0].values

The Python package is pre-release and does not yet have a qualified binary wheel matrix.

Documentation

ChargeFW is distributed under the MIT license.

Metadata

Release files for chargefw 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chargefw 0.1
File Size Uploaded Provenance Actions
chargefw-0.1.tar.gz 2.2 MB Without provenance Details for chargefw-0.1.tar.gz

Release files / chargefw-0.1.tar.gz

Download URL chargefw-0.1.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
1affe1e148574743830df2a2a6f555d7fa3b0e79970f8da3f5aa432026aa9d03
BLAKE2b-256 checksum
How to use checksums
7671f76e99fbcc88cde3f9bc38390144f7f65e075e40cba5c81e32f880b57f4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for chargefw 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page