Skip to main content

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.io package within the PEP 420 native httk namespace, currently a CIF/mCIF parser, reader and writer stack; and
  • the httk.handlers.io package, which registers the .cif loader with httk-core's plugin registry so files can be read via httk.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

httk_io-0.1.0.tar.gz (41.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

httk_io-0.1.0-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

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

Hashes for httk_io-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ad5be6cd804fcd1a77fc1c292e673919c1a8afe9578d40579caf6a8757f16f17
MD5 dd4ba86a341e0b6eb3a67850da6361a0
BLAKE2b-256 cd8a244c3d0e1a4fbe8728f9c1c3707ebe673494f97d90407c5700b837ba4928

See more details on using hashes here.

Provenance

The following attestation bundles were made for httk_io-0.1.0.tar.gz:

Publisher: release.yml on httk/httk-io

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for httk_io-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f089744cc31a04e9c6c1e331b445ead288dcd6ce35aec409b763b9678288cf3
MD5 7904019aea02be7ed61f00d09b916a64
BLAKE2b-256 0aef1c7199c843ccf44fc7bd2c803237edced52bac853d0d9f79b548eb6b8216

See more details on using hashes here.

Provenance

The following attestation bundles were made for httk_io-0.1.0-py3-none-any.whl:

Publisher: release.yml on httk/httk-io

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page