Skip to main content

ChargeFW for Python

ChargeFW calculates empirical partial atomic charges for small molecules and biomolecular structures.

ChargeFW is the new implementation of ChargeFW2, the calculation core of Atomic Charge Calculator III (Raček et al., 2026). It calculates charges with the 20 methods and the parameter sets of ChargeFW2, works with molecules in memory and with RDKit and Gemmi objects, gives charges for every conformer, explains why a method does not apply, and records every calculation. Differences from ChargeFW2 describes what changed and how to move over.

Installation

ChargeFW requires Python 3.12 or newer on Linux (x86-64 or aarch64), macOS 14 or newer on Apple silicon, or 64-bit Windows:

pip install chargefw

The RDKit and Gemmi integrations are optional:

pip install "chargefw[rdkit]"
pip install "chargefw[gemmi]"

Usage

import chargefw

molecules = chargefw.io.read("molecule.sdf", format="sdf")
result = chargefw.calculate(molecules, method="eem", parameter_set="EEM_Cheminf_b3lyp_npa")
print(result.assignments[0].values)

chargefw.io.write("charges.json", result, format="result-json")

Molecules can also be built from NumPy arrays:

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")

Name both the method and the parameter set when the results must be reproducible.

Documentation

The documentation is at chargefw.readthedocs.io:

The source code is at github.com/sb-ncbr/chargefw. ChargeFW is distributed under the MIT license.

Metadata

Release files for chargefw 3.0.0

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 3.0.0
File Size Uploaded Provenance Actions
chargefw-3.0.0.tar.gz 2.7 MB With provenance Details for chargefw-3.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for chargefw 3.0.0
File Actions
chargefw-3.0.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for chargefw-3.0.0-cp312-abi3-win_amd64.whl
chargefw-3.0.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for chargefw-3.0.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
chargefw-3.0.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for chargefw-3.0.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
chargefw-3.0.0-cp312-abi3-macosx_14_0_arm64.whl CPython 3.12 abi3 macOS 14.0+ ARM64 Details for chargefw-3.0.0-cp312-abi3-macosx_14_0_arm64.whl

Total release size: 14.5 MB

Release files / chargefw-3.0.0.tar.gz

Download URL chargefw-3.0.0.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
fdaed5d6d21a20df865b25e1ab247687fbdd0aba1a4bf19d09396ec762d9b1e5
BLAKE2b-256 checksum
How to use checksums
f835bddfd639f6573b23e232611f0ef71bd4b4a68fdde70d64db313522af8bbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / chargefw-3.0.0-cp312-abi3-win_amd64.whl

Download URL chargefw-3.0.0-cp312-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d9412f7aba1df663b7edfe8e282ce74f45d8551a449d284938632091d899d44e
BLAKE2b-256 checksum
How to use checksums
72a6947abf919a49fb894ca1211e1cc92861762a67e5221268554b30f75c2cc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / chargefw-3.0.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL chargefw-3.0.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 3.2 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
bd4e94249cc8d757131c0f2795adbfea3fb8063771564aa476b14c90394305ca
BLAKE2b-256 checksum
How to use checksums
dfc23dd327b6cba5abff2322094c9d685cc1c973e9288300f848fd23b60779f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / chargefw-3.0.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL chargefw-3.0.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 2.9 MB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
e79b792cec866aebfb347acb0aeeeac3d3b9590bfe00dd38df6ea85b9fd603e0
BLAKE2b-256 checksum
How to use checksums
4242ed5bcc42a7d4edcba54070e6781729686dec68ac9e67482fec1629830dd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / chargefw-3.0.0-cp312-abi3-macosx_14_0_arm64.whl

Download URL chargefw-3.0.0-cp312-abi3-macosx_14_0_arm64.whl
Size 2.7 MB
Tags CPython 3.12 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
7997f033445c5b9cbd6d1374f9945ff38ae4abef9789e5f77ec65c24ce337759
BLAKE2b-256 checksum
How to use checksums
fc6d64b9c9e0891ff0d901edb174cb62a641273b2da6e9074ffa75c5fb906779
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for chargefw 3.0.0

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.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for chargefw-3.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

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