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:
- First calculation: an example with its output.
- Preparing input: what a molecule needs before a calculation.
- Methods and parameter sets: the available methods and how to choose one.
- Python: the complete Python interface.
- Examples: complete scripts.
The source code is at github.com/sb-ncbr/chargefw. ChargeFW is distributed under the MIT license.
Metadata
Release files for chargefw 3.0.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chargefw-3.0.0rc1.tar.gz | 2.4 MB | With provenance | Details for chargefw-3.0.0rc1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| chargefw-3.0.0rc1-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details for chargefw-3.0.0rc1-cp312-abi3-win_amd64.whl |
| chargefw-3.0.0rc1-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.0rc1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
| chargefw-3.0.0rc1-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.0rc1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
| chargefw-3.0.0rc1-cp312-abi3-macosx_14_0_arm64.whl | CPython 3.12 | abi3 | macOS 14.0+ ARM64 | Details for chargefw-3.0.0rc1-cp312-abi3-macosx_14_0_arm64.whl |
Total release size: 11.7 MB
Release files / chargefw-3.0.0rc1.tar.gz
| Download URL | chargefw-3.0.0rc1.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4149bbdc28d4f837e6aa232244d23170a289ff511c1edd216b293b3f1ad62a8
|
|
BLAKE2b-256 checksum How to use checksums |
e668fa7b7b1a84e175585236b1e4758076b91135b4b6a579fef5b91ec73f5140
|
| 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 29, 2026.
Transparency logRelease files / chargefw-3.0.0rc1-cp312-abi3-win_amd64.whl
| Download URL | chargefw-3.0.0rc1-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6fd47aed18143e3a90004212c1ea63290f9eb098ea84d2c7849d0c1db5eacf4e
|
|
BLAKE2b-256 checksum How to use checksums |
8791677b42a4cd0dcdd4bc7bf5071bd8a59d95b5686e3b23b0362bd6a2953848
|
| 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 29, 2026.
Transparency logRelease files / chargefw-3.0.0rc1-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | chargefw-3.0.0rc1-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 |
80edb66fc3b206f974c322923f8a397585e0ab22e745ade5f2e242f6aede01cd
|
|
BLAKE2b-256 checksum How to use checksums |
02f119400dee5e002bc7b5c3d439426801967940c03c99b2e83940f6c38d7786
|
| 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 29, 2026.
Transparency logRelease files / chargefw-3.0.0rc1-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | chargefw-3.0.0rc1-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 |
c8baf8cba63e685a29da79c149294853f5bb738014ac450aa61668ddfdcd10b6
|
|
BLAKE2b-256 checksum How to use checksums |
4028dc1fcafe59e349195e6aa0d885b7af305f04d68023b1993267b621a2d2fd
|
| 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 29, 2026.
Transparency logRelease files / chargefw-3.0.0rc1-cp312-abi3-macosx_14_0_arm64.whl
| Download URL | chargefw-3.0.0rc1-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 |
2e01abb25cb6fe954e6f25aefd268e987e8dcea49ebe663ff71e425db2bc82e0
|
|
BLAKE2b-256 checksum How to use checksums |
013eca4e1105f8215aaecb43ba31d4308d74f3de760ce00732ecde598634c048
|
| 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 29, 2026.
Transparency logSecurity for chargefw 3.0.0rc1
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.
Attestation for chargefw-3.0.0rc1.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 29, 2026.
Transparency logA 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.