Minimal library for parsing CIF & mmCIF files in Python.
Project description
parsnip is a minimal Python library for parsing CIF files. While its primary focus is on simplicity and portability, performance-oriented design choices are made where possible.
Importing parsnip allows users to read CIF 1.1 files, as well as many features from the CIF 2.0 and mmCIF formats. Creating a CifFile object provides easy access to name-value pairs, as well as loop_-delimited loops. Data entries can be extracted as python primitives or numpy arrays for further use.
Setup
parsnip may be installed with pip or from conda-forge.
Installation via pip
python -m pip install parsnip-cif
Installation via conda-forge
conda install -c conda-forge parsnip-cif
Installation from source
First, clone the repository:
git clone https://github.com/glotzerlab/parsnip.git
cd parsnip
Then, choose one of the following. While parsnip is only dependent on Numpy, additional dependencies are required to run the tests and build the docs.
pip install . # Install with no additional dependencies
pip install .[tests] # Install with dependencies required to run tests
pip install .[tests,doc] # Install with dependencies required to run tests and make docs
Dependencies
numpy>=1.19
more-itertools
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
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 parsnip_cif-0.2.0.tar.gz.
File metadata
- Download URL: parsnip_cif-0.2.0.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d58795ae82b8a94239e901146f1b24d32649f09625bfc2116228c969862086b
|
|
| MD5 |
6e467ede1b00c88902a8446ed56fe002
|
|
| BLAKE2b-256 |
5f7c5918586c730706a092ffe1497d4a1bd5e3146de908fe8b421c4f13d2007a
|
Provenance
The following attestation bundles were made for parsnip_cif-0.2.0.tar.gz:
Publisher:
pypi-test-and-publish.yaml on glotzerlab/parsnip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsnip_cif-0.2.0.tar.gz -
Subject digest:
6d58795ae82b8a94239e901146f1b24d32649f09625bfc2116228c969862086b - Sigstore transparency entry: 172604198
- Sigstore integration time:
-
Permalink:
glotzerlab/parsnip@9328f5446c1e2650f17fd5203990117def0ffc0b -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/glotzerlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-test-and-publish.yaml@9328f5446c1e2650f17fd5203990117def0ffc0b -
Trigger Event:
push
-
Statement type:
File details
Details for the file parsnip_cif-0.2.0-py3-none-any.whl.
File metadata
- Download URL: parsnip_cif-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ee61bfb8999b9a2c0e2041c19243888b119d181f1fbeec2acda7446731b417c
|
|
| MD5 |
885ba2e0d3d94cbd905321ea2565543d
|
|
| BLAKE2b-256 |
014c0b6703542d3295085aaa0b91760be95df2a7eaff604ff1c7b5d74f77b69d
|
Provenance
The following attestation bundles were made for parsnip_cif-0.2.0-py3-none-any.whl:
Publisher:
pypi-test-and-publish.yaml on glotzerlab/parsnip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsnip_cif-0.2.0-py3-none-any.whl -
Subject digest:
2ee61bfb8999b9a2c0e2041c19243888b119d181f1fbeec2acda7446731b417c - Sigstore transparency entry: 172604200
- Sigstore integration time:
-
Permalink:
glotzerlab/parsnip@9328f5446c1e2650f17fd5203990117def0ffc0b -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/glotzerlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-test-and-publish.yaml@9328f5446c1e2650f17fd5203990117def0ffc0b -
Trigger Event:
push
-
Statement type: