Skip to main content

fchic

fchic is a tiny library for parsing Gaussian formatted checkpoint files into python data structures. To use it, simply point it at a file and give it a deck to load, like so:

import fchic

with open("data.fchk", "r") as f:
    out = fchic.deck_load(f, "Cartesian Gradient")

out is now a list of 3 x N floating point numbers parsed from the Cartesian Gradient section of data.fchk.

Note: fchic does no data validation (beyond shape and type), no physical unit conversions and no integration into fancy data structures. It is entirely a single page, simple pyparsing grammar. You'll need to do your own data processing from its outputs.

Usage

fchic consists of two functions:

  • fchic.load(fp) transform a formatted checkpoint file in from a file-like object fp into a python dictionary of decks.
  • fchic.deck_load(fp, name) loads the specific deck name from file-like object fp.

Versions of those functions that acts on strings (fchic.loads() and fchic.deck_loads) are also provided.

Decks are returned thinly parsed from the formatted checkpoint files:

  • Integer values (type I) are parsed into lists of python int.
  • Real values (type R) are parsed into lists of python float.
  • Char values (type C) are parsed into a unary list containing a string.

Python is not exactly fast, and neither is pyparsing, so you'll generally want to use fchic.deck_load() which does not have to parse the whole file, and is therefore way way 🐇 faster 🐇.

Installation

pip install fchic

License

fchic is provided under the MIT license.

Metadata

Release files for fchic 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fchic 0.1.1
File Size Uploaded Provenance
fchic-0.1.1.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fchic 0.1.1
File Interpreter ABI Platform
fchic-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.4 kB

Release files / fchic-0.1.1.tar.gz

Download URL fchic-0.1.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
987146a63d86ea6e9d4000e1288671f2ef7f14887c8224b1818e27f85cca822a
BLAKE2b-256 checksum
How to use checksums
93bdd4895541a2100b288382e5f1b0263fbbe25fbf00217dbdda76008111de38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Release files / fchic-0.1.1-py3-none-any.whl

Download URL fchic-0.1.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abc49bf9864b8798200a471e11485eac1c6af73d66a5ac60559dc6ef03e2d827
BLAKE2b-256 checksum
How to use checksums
22c92df9da7911b0ad28c28793de79943aa90200d9c37b271af2c260b3f4d6b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

Security for fchic 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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