httk₂ file input/output (CIF and mCIF readers/writers)
Project description
httk-io
httk-io is the file input/output module for httk₂. It provides:
- the
httk.iopackage within the PEP 420 nativehttknamespace, currently a CIF/mCIF parser, reader and writer stack; and - the
httk.handlers.iopackage, which registers the.cifloader withhttk-core's plugin registry so files can be read viahttk.core.load.
Most users should install the httk2
metapackage, which selects a useful set of httk modules:
pip install httk2
Install only this module (it depends on httk-core and numpy) with:
pip install httk-io
Usage
Importing httk.core discovers httk.handlers.io and registers the .cif
loader. httk.core.load then dispatches on the file extension and returns the
raw parsed CIF data as a (data_blocks, header) tuple:
import httk.core # discovery registers the ".cif" loader
data_blocks, header = httk.core.load("structure.cif")
name, block = data_blocks[0]
print(block["cell_length_a"])
Development and release instructions are in the
RELEASING.md guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file httk_io-0.1.0.tar.gz.
File metadata
- Download URL: httk_io-0.1.0.tar.gz
- Upload date:
- Size: 41.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad5be6cd804fcd1a77fc1c292e673919c1a8afe9578d40579caf6a8757f16f17
|
|
| MD5 |
dd4ba86a341e0b6eb3a67850da6361a0
|
|
| BLAKE2b-256 |
cd8a244c3d0e1a4fbe8728f9c1c3707ebe673494f97d90407c5700b837ba4928
|
Provenance
The following attestation bundles were made for httk_io-0.1.0.tar.gz:
Publisher:
release.yml on httk/httk-io
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httk_io-0.1.0.tar.gz -
Subject digest:
ad5be6cd804fcd1a77fc1c292e673919c1a8afe9578d40579caf6a8757f16f17 - Sigstore transparency entry: 2220774241
- Sigstore integration time:
-
Permalink:
httk/httk-io@b781f07c99cb69e5aca5202c720b94814e3a4b37 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/httk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b781f07c99cb69e5aca5202c720b94814e3a4b37 -
Trigger Event:
release
-
Statement type:
File details
Details for the file httk_io-0.1.0-py3-none-any.whl.
File metadata
- Download URL: httk_io-0.1.0-py3-none-any.whl
- Upload date:
- Size: 42.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f089744cc31a04e9c6c1e331b445ead288dcd6ce35aec409b763b9678288cf3
|
|
| MD5 |
7904019aea02be7ed61f00d09b916a64
|
|
| BLAKE2b-256 |
0aef1c7199c843ccf44fc7bd2c803237edced52bac853d0d9f79b548eb6b8216
|
Provenance
The following attestation bundles were made for httk_io-0.1.0-py3-none-any.whl:
Publisher:
release.yml on httk/httk-io
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
httk_io-0.1.0-py3-none-any.whl -
Subject digest:
9f089744cc31a04e9c6c1e331b445ead288dcd6ce35aec409b763b9678288cf3 - Sigstore transparency entry: 2220775204
- Sigstore integration time:
-
Permalink:
httk/httk-io@b781f07c99cb69e5aca5202c720b94814e3a4b37 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/httk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b781f07c99cb69e5aca5202c720b94814e3a4b37 -
Trigger Event:
release
-
Statement type: