Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 3 is currently a pre-release, so pip needs --pre. It 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 --pre chargefw

The RDKit and Gemmi integrations are optional:

pip install --pre "chargefw[rdkit]"
pip install --pre "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.0rc2

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

Built distributions (wheels)

Table of built distributions (wheels) for chargefw 3.0.0rc2
File Actions
chargefw-3.0.0rc2-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for chargefw-3.0.0rc2-cp312-abi3-win_amd64.whl
chargefw-3.0.0rc2-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.0rc2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
chargefw-3.0.0rc2-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for chargefw-3.0.0rc2-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
chargefw-3.0.0rc2-cp312-abi3-macosx_14_0_arm64.whl CPython 3.12 abi3 macOS 14.0+ ARM64 Details for chargefw-3.0.0rc2-cp312-abi3-macosx_14_0_arm64.whl

Total release size: 11.7 MB

Release files / chargefw-3.0.0rc2.tar.gz

Download URL chargefw-3.0.0rc2.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
e34200f5e70b8571cb2baf77d54b4fa7c1c63354bdd3999d252d83641b4a1acb
BLAKE2b-256 checksum
How to use checksums
48a27499534281a58fea8db6ad5466fcdab0dfe4f0ef2665ab8e74984195d8f9
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 Oct 31, 2026.

Transparency log

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

Download URL chargefw-3.0.0rc2-cp312-abi3-win_amd64.whl
Size 2.6 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
8bc389029584d25d35bae92f78e0b9c38abb739ec30a07fa9700e923c35a9d1a
BLAKE2b-256 checksum
How to use checksums
a7c1aaa2df7fc43a651cb3c656edd3a6983814565cb0333d40d81f234df8ddc6
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 Oct 31, 2026.

Transparency log

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

Download URL chargefw-3.0.0rc2-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.5 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
020355550873e14cc817dd6f981ea61031ef959cc267dac92c63e542f0894ef9
BLAKE2b-256 checksum
How to use checksums
0b1bc9b3077b9d9e7135560893b1185406ae38ccbae35f9cfafa17294143c6e1
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 Oct 31, 2026.

Transparency log

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

Download URL chargefw-3.0.0rc2-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 2.2 MB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
7837431105fa98b3f20427b573e10c431bcee838f29f6a8cddb7e9bdb09cdd4d
BLAKE2b-256 checksum
How to use checksums
e5c446ccf2e58dccdd17ca837ab46fcec3bd358ec5aa7916c0574e51a66e0c39
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 Oct 31, 2026.

Transparency log

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

Download URL chargefw-3.0.0rc2-cp312-abi3-macosx_14_0_arm64.whl
Size 2.0 MB
Tags CPython 3.12 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
44c4698fa13472bf1b97f97a334d4000a707d987c06272695bb83656abe03607
BLAKE2b-256 checksum
How to use checksums
fbb6ca79c6bb17fcc16ac966a81757bbef3f05bc4b576b75a96b66d19f0c388c
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 Oct 31, 2026.

Transparency log

Security for chargefw 3.0.0rc2

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.0rc2.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 Oct 31, 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