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 through Python bindings to its native C++ calculation engine. It provides bundled methods and parameter sets, deterministic applicability and execution planning, source-ordered result mapping, molecular-file input, result JSON, MOL2 and mmCIF output, and optional Gemmi and RDKit integration.

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

Installation

ChargeFW requires Python 3.11 or newer:

pip install chargefw

Install an optional toolkit integration when converting existing toolkit objects:

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

The base package can read PDB and mmCIF text through its compiled Gemmi dependency without installing the Gemmi Python package.

Python usage

From a molecular file

import chargefw

molecules = chargefw.io.read("molecule.sdf", format="sdf")
result = chargefw.calculate(
    molecules,
    method="qeq",
    parameter_set="QEq_original",
    execution="full",
)
print(result.assignments[0].values)

For reproducible scientific work, select both the method and its parameter set when the method uses one. Automatic selection is deterministic, but catalog priority is not a recommendation that a model or parameterization is scientifically preferable for a particular molecule.

From arrays

import chargefw

molecule = chargefw.Molecule(
    atomic_numbers=[8, 1, 1],
    formal_charges=[0, 0, 0],
    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],
    ],
    name="water",
)

result = chargefw.calculate(
    molecule,
    method="qeq",
    parameter_set="QEq_original",
    execution="full",
)
print(result.assignments[0].values)

Write a complete result record with chargefw.io.write():

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

Documentation

The full documentation is at chargefw.readthedocs.io:

  • Python API - read molecules, calculate charges, and inspect methods and results.
  • Python recipes - run complete SDF, Gemmi, RDKit, and parameter-set workflows.
  • Molecular formats - check supported input, output, parsing, and mapping semantics.
  • Project design - understand the architecture and scientific scope.
  • Source repository - browse the source and report issues.

ChargeFW is distributed under the MIT license.

Metadata

Release files for chargefw 3.0.0a2

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

Built distributions (wheels)

Table of built distributions (wheels) for chargefw 3.0.0a2
File Actions
chargefw-3.0.0a2-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.0a2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
chargefw-3.0.0a2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for chargefw-3.0.0a2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
chargefw-3.0.0a2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for chargefw-3.0.0a2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
chargefw-3.0.0a2-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.0a2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Total release size: 11.8 MB

Release files / chargefw-3.0.0a2.tar.gz

Download URL chargefw-3.0.0a2.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7bc68b5ba410c829f63788d09e82d78b44d22c2f36f97e926e54b0745fbb842f
BLAKE2b-256 checksum
How to use checksums
aa6abedf067592e0f1bfc0087cfcb0e6e40762ca9952cd0b0a23b2f4bd8d2d24
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.0a2-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL chargefw-3.0.0a2-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
832d5be1ac100044603278c0158a3b7517c753574979d7432de1485428ab788d
BLAKE2b-256 checksum
How to use checksums
c8beaa7a9ab9b87193758825c779c2df1deeeba3cbb91b7517505a043c2448b4
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.0a2-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL chargefw-3.0.0a2-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
08a3fd39f009d52a7caf843b54b1670b3c3fab8d30e7395654ad52a18368c236
BLAKE2b-256 checksum
How to use checksums
d6efe4c7080274feffe63a524a73c6de9bb206d2b10bf03b8d7019b833ade9cc
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.0a2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL chargefw-3.0.0a2-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
bd013b7332a7ab77b562903749f221ccde07c8b94ae96868ea1ad30ab2d90d35
BLAKE2b-256 checksum
How to use checksums
0ac28f7483d90507a96365f3c8d1f377c5b4673629d4c7dc8fe4407259cad0b8
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.0a2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL chargefw-3.0.0a2-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
b7673cca3aca80638356fa7bda24721fc3cc9f045b435be8b7b9867fc131616e
BLAKE2b-256 checksum
How to use checksums
e14d22497231cb254ffc668a95167688d5cbffd74c068fe66fd295f72ea86c0f
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.0a2

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