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.11 or newer on Linux x86-64:

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.0a3

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

Built distributions (wheels)

Table of built distributions (wheels) for chargefw 3.0.0a3
File Actions
chargefw-3.0.0a3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for chargefw-3.0.0a3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
chargefw-3.0.0a3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for chargefw-3.0.0a3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
chargefw-3.0.0a3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for chargefw-3.0.0a3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
chargefw-3.0.0a3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for chargefw-3.0.0a3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Total release size: 11.8 MB

Release files / chargefw-3.0.0a3.tar.gz

Download URL chargefw-3.0.0a3.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
ddb83570a34f34ac2cf3c2a4bbd4f9277d00a0aec5b176ce32576df02e5ab9c4
BLAKE2b-256 checksum
How to use checksums
e33bb9c2dd303a18e37c743f3aa641c439750775a86381fb63ca5275d29a2e8f
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 26, 2026.

Transparency log

Release files / chargefw-3.0.0a3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL chargefw-3.0.0a3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
03d47ae1b28565acd95f85f82a4abaaac7832232b74da009b786311d14e8f0fc
BLAKE2b-256 checksum
How to use checksums
ddea93033037dd9b6a7991eb0dcb92808f15877ba2fc5ec33eeb09a92803066e
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 26, 2026.

Transparency log

Release files / chargefw-3.0.0a3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL chargefw-3.0.0a3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8b0b5e7b693b668734392c4a316c25856dadfa3056f6ee2773bdccf9f5dc9e5a
BLAKE2b-256 checksum
How to use checksums
964b4c0a5932120a2f9888f99bf7ab80c090d98c84cf23c32c89c3e65ce4a41d
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 26, 2026.

Transparency log

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

Download URL chargefw-3.0.0a3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
64399a321d98114a8276f3fd4df7077f2f16ead2c9ce575e7a01d709489bb700
BLAKE2b-256 checksum
How to use checksums
ae1b778d66dda2d9438b4aefc4fdbe7176ad6b2aa60acd0c244572d8cabd43f7
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 26, 2026.

Transparency log

Release files / chargefw-3.0.0a3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL chargefw-3.0.0a3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 2.4 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a2ca674b322f88c5c6a972a519a0d60195cffdf898ce0d0562beacbe08206a7a
BLAKE2b-256 checksum
How to use checksums
78f9eacce5423af9238632ee3b8549ac6e4e52d9854bfa5bfb3209b1c93d883f
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 26, 2026.

Transparency log

Security for chargefw 3.0.0a3

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.0a3.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 26, 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