PyCPET
Python-based Computation of Protein Electric Field Topology: high-throughput calculation of electric fields, electrostatic potentials and field topologies at enzyme active sites, from single structures or whole simulations. Most analyses run from one options file, and the library can be scripted for others.
Documentation: pycpet.readthedocs.io
Installation
PyCPET supports Python 3.9–3.12, and we recommend 3.11. Python 3.13 is not supported yet (see #19).
pip install pycpet
To modify the code, install from the repository instead:
git clone https://github.com/pujanajmera/pycpet.git
cd pycpet
pip install -e .
Before running, limit OpenMP to one thread. With more than one thread, CPU topology calculations give incorrect results:
export OMP_NUM_THREADS=1
The installation guide covers conda setup, which platforms get prebuilt packages, compilers, source builds and GPU setup.
Quick start
Write an options file, options.json:
{
"CPET_method": "point_field",
"inputpath": "./pdb",
"outputpath": "./out",
"center": {"method": "mean", "atoms": [{"C7": 378}, {"O9": 378}]}
}
Then run:
cpet.py -o options.json
This computes the electric field at the midpoint of atoms C7 and O9 in residue 378, for every PDB file in ./pdb, and writes one line per structure to ./out/point_field.dat. The examples folder has ready-to-run examples of this and other methods, and the options reference lists every setting.
Features
CPET_method |
Computes |
|---|---|
point_field, point_mag |
Electric field vector or magnitude at a point |
volume, volume_ESP |
Electric field or electrostatic potential on a 3D grid |
topo, topo_GPU |
Distribution of field streamlines (topology), on CPU or GPU |
cluster |
Clusters of topologies |
cluster_volume, cluster_volume_tensor |
Clusters of 3D fields, by direct distances or tensor decomposition |
cluster_volume_esp_tensor |
Clusters of 3D electrostatic potentials (beta) |
pca, pca_compare |
PCA of 3D fields, for one set or to compare sets such as variants (beta) |
visualize_field, visualize_esp |
BILD files to view fields or potentials in ChimeraX |
box_check |
Atoms intruding into the calculation box |
Scripts
Scripts in CPET/source/scripts cover analyses outside cpet.py. Only cpet.py is installed as a command, so run these by their path. They are less thoroughly tested; see Special Scripts.
electrostatic_interaction_QM.py: electrostatic interaction energies, with a residue breakdown, for QM/MM calculationsresidue_breakdown_analysis.py: ranked residue contributions to field topology over a trajectory (beta)tensor_based_cluster_double.py: joint clustering of two sets of fields or potentials (beta)field_topology_dipole.py: streamline distributions from point dipoles (beta)
Input files
Structures must be PDB or PQR files with charges. In PDB files, charges go in columns 56–64. See Input Files for the full rules.
Citation
If you use PyCPET, please cite:
Ajmera, P.; Vargas, S.; Chaturvedi, S. S.; Hennefarth, M.; Alexandrova, A. N. PyCPET─Computing Heterogeneous 3D Protein Electric Fields and Their Dynamics. J. Chem. Theory Comput. 2025, 21 (8), 4299–4308. doi:10.1021/acs.jctc.5c00138
Metadata
Release files for pycpet 0.1.2
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 |
|---|---|---|---|---|
| pycpet-0.1.2.tar.gz | 83.1 kB | With provenance | Details for pycpet-0.1.2.tar.gz |
Built distributions (wheels)
Total release size: 4.3 MB
Release files / pycpet-0.1.2.tar.gz
| Download URL | pycpet-0.1.2.tar.gz |
|---|---|
| Size | 83.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0e886c57ae06aff8644d91161d1c0417867ed5e59b416e8260f48ed23581ca6
|
|
BLAKE2b-256 checksum How to use checksums |
9a1f505c1e579c67d8b685c947852074435ec950e1578dde40eca953664462e8
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | pycpet-0.1.2-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 263.8 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
811f44e18d9f2293d6d6193d21a0e519dcfb2f82fff7212ebffa25c10b9c605b
|
|
BLAKE2b-256 checksum How to use checksums |
be740e19d65998bc80f1d8092d8f3f296d160d3b63b53b1d9dadaa821076284d
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp312-cp312-musllinux_1_2_i686.whl
| Download URL | pycpet-0.1.2-cp312-cp312-musllinux_1_2_i686.whl |
|---|---|
| Size | 267.2 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-32 |
|
SHA-256 checksum How to use checksums |
52c151502d6dd370bfaceb49a2fa1c7090526e2dda60c3500a04b798e3c8f29c
|
|
BLAKE2b-256 checksum How to use checksums |
94e194fe60dd00621f52a5be6cba16e19d24ddc2db118ef1c98ab9a5636ff91a
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycpet-0.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 188.4 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
0dff934ac48b1a0b4af696753af22b0e818d9db5d927d57fe8e09381de98d747
|
|
BLAKE2b-256 checksum How to use checksums |
99476673855204beff79d1b715a2a48f5a67930c69d0dfedbd8a445acad1dea0
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp312-cp312-macosx_14_0_arm64.whl
| Download URL | pycpet-0.1.2-cp312-cp312-macosx_14_0_arm64.whl |
|---|---|
| Size | 341.8 kB |
| Tags | CPython 3.12 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1caae357dc2891a585b6824c3b306aaee3b597d5c4050c46d3f12e2a0075e99a
|
|
BLAKE2b-256 checksum How to use checksums |
d0a1123aa438478684b63a523b8500a2b0a23c7e5391f6c5d52f3951a49e73a5
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | pycpet-0.1.2-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 263.8 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
b9550e992e0fca826c7c6b408229ce843b64a397f0e3aa11e1cba500aab77324
|
|
BLAKE2b-256 checksum How to use checksums |
5b95e0349fca9843f7bd6528cadae732a3248babb6fc44c8f11749117d40a742
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp311-cp311-musllinux_1_2_i686.whl
| Download URL | pycpet-0.1.2-cp311-cp311-musllinux_1_2_i686.whl |
|---|---|
| Size | 267.2 kB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-32 |
|
SHA-256 checksum How to use checksums |
09b1d359ec31ac6eb525c7578c5c8901462cbfc4fa6b038d69e4d99c99fb3ea6
|
|
BLAKE2b-256 checksum How to use checksums |
6f51d3c347f8b8c79d047cb35f54ac3529a7667c333058be7cae71485ccaf66d
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycpet-0.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 188.3 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
502d03b48b5fcf975c454ad0ade3da0ade89efaedfdd6697dff9ab31a26c8cef
|
|
BLAKE2b-256 checksum How to use checksums |
0f6c8174b7d818feb8ba1674d1cf4fb40f34ae5fbb2e3acf9fc72afed0369cc7
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp311-cp311-macosx_14_0_arm64.whl
| Download URL | pycpet-0.1.2-cp311-cp311-macosx_14_0_arm64.whl |
|---|---|
| Size | 341.8 kB |
| Tags | CPython 3.11 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5a1d75c0ce4e1b3af2cce63c8c1832b563bb864df99d83b5f014ece0f00f7779
|
|
BLAKE2b-256 checksum How to use checksums |
f4238dc6ed6fa595a6ca3ad00f80d8b13d9f90223ef1cbe0cf4ae62034011004
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp310-cp310-musllinux_1_2_x86_64.whl
| Download URL | pycpet-0.1.2-cp310-cp310-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 263.8 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
87cb2f555c918ae1932dd43c321cafcee72757015752a12f0b552207eecb701b
|
|
BLAKE2b-256 checksum How to use checksums |
c6d40e3d9b8db5c312003e92a2276f874e6eb037658fc135ac0c96570d31d271
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp310-cp310-musllinux_1_2_i686.whl
| Download URL | pycpet-0.1.2-cp310-cp310-musllinux_1_2_i686.whl |
|---|---|
| Size | 267.2 kB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-32 |
|
SHA-256 checksum How to use checksums |
59de2edc2ef048ded6ba3ce70f67ff6fd623ac46de61939b1c434dc493e3e378
|
|
BLAKE2b-256 checksum How to use checksums |
c1322c3128eaa45602548405ed1f32949b4f283c05cc641e524a8f1e7e40d77f
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycpet-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 188.3 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c357b6deecdb2b2ab0b70ab46960327cd801e25ca59009d19359f244879c623b
|
|
BLAKE2b-256 checksum How to use checksums |
2a6662489afc62bb698adad29805c7c02f2a381fcb6cd41f132db7ea27afe7bd
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp310-cp310-macosx_14_0_arm64.whl
| Download URL | pycpet-0.1.2-cp310-cp310-macosx_14_0_arm64.whl |
|---|---|
| Size | 341.8 kB |
| Tags | CPython 3.10 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e0d603d7d3e24df7e0365f0752c8b0ed923e112c155f36a4599af6f57a15efef
|
|
BLAKE2b-256 checksum How to use checksums |
2b6b1632529e2b2334b73766eca92c6b07d34f2c819178d1e85512640e254897
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp39-cp39-musllinux_1_2_x86_64.whl
| Download URL | pycpet-0.1.2-cp39-cp39-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 263.8 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
22f2dccec90908bf46d35a50145e2358fd0132cca6410484ea632977fecd70a3
|
|
BLAKE2b-256 checksum How to use checksums |
7519918ec1675e9ff404bb362914e50c180a1816db5928f50259ca62c4c8b582
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp39-cp39-musllinux_1_2_i686.whl
| Download URL | pycpet-0.1.2-cp39-cp39-musllinux_1_2_i686.whl |
|---|---|
| Size | 267.2 kB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-32 |
|
SHA-256 checksum How to use checksums |
d938a7307632562c6981f1fbc5d7248ec1f4aba335ceb5a20ba7cc883804efe8
|
|
BLAKE2b-256 checksum How to use checksums |
660eab3d23d150ebd80e2ad06248a439b57fbbf30dd80cf2266d0f09463b2c45
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pycpet-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 188.3 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
97c12b5e0e03e52bbede016db6aa6e7e6f4c2200e455ea1d5cf007d988b359ca
|
|
BLAKE2b-256 checksum How to use checksums |
3945aedafd16ed901d1b02a90225f7659d6ec3ba51af68aecb9105a3de3f204e
|
| 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 1, 2026.
Transparency logRelease files / pycpet-0.1.2-cp39-cp39-macosx_14_0_arm64.whl
| Download URL | pycpet-0.1.2-cp39-cp39-macosx_14_0_arm64.whl |
|---|---|
| Size | 341.8 kB |
| Tags | CPython 3.9 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f3f9f4fd1bf45de54584bc0356c1be4e6e83f1304edf2a8245ee067e35066af0
|
|
BLAKE2b-256 checksum How to use checksums |
9411d97ff9ea881f6dc78f703514c2c6599db6dc4dafa9fa8afbddda09e35e85
|
| 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 1, 2026.
Transparency logSecurity for pycpet 0.1.2
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 17 files in this release have been uploaded with provenance metadata.
Attestation for pycpet-0.1.2.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 1, 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.