chemfiles


Namechemfiles JSON
Version 0.10.4 PyPI version JSON
download
home_pagehttp://github.com/chemfiles/chemfiles.py
SummaryRead and write computational chemistry files
upload_time2023-05-23 10:49:17
maintainer
docs_urlNone
authorGuillaume Fraux
requires_python
license
keywords chemistry computational cheminformatics files formats
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python binding for the chemfiles library

[![Build Status](https://github.com/chemfiles/chemfiles.py/actions/workflows/tests.yml/badge.svg)](https://github.com/chemfiles/chemfiles.py/actions/workflows/tests.yml)
[![Code coverage](http://codecov.io/github/chemfiles/chemfiles.py/coverage.svg?branch=master)](http://codecov.io/github/chemfiles/chemfiles.py?branch=master)
[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://chemfiles.github.io/chemfiles.py/)

Chemfiles is a library for reading and writing molecular trajectory files. These
files are created by your favorite theoretical chemistry program, and contains
information about atomic or residues names and positions. Chemfiles offers
abstraction on top of these formats, and a consistent interface for loading and
saving data to these files.

This repository contains the Python binding for the chemfiles library. This
binding is created with the ctypes module, calling directly the C interface of
chemfiles, and thus is compatible with Python 2 and 3, and with all versions of
Numpy.

## Installation

You can use your favorite package manager ([`conda`] or [`pip`]) to install
pre-built versions of Chemfiles, that support Linux/Windows/macOS, and Python
2.7 and 3.

```
# Using pip
pip install chemfiles
# Using conda
conda install -c conda-forge chemfiles
```

[`conda`]: http://conda.pydata.org/docs/
[`pip`]: https://docs.python.org/3.5/installing/index.html

### Source compilation

You can install this python module from sources if you have all the
[dependencies] of the C++ chemfiles library installed on your computer.

```bash
# To get the latest development version:
git clone https://github.com/chemfiles/chemfiles.py
cd chemfiles.py
git submodule update --init
# Install development dependencies
pip install -r dev-requirements.txt
# Install chemfiles
pip install .
# Optionally run the test suite
tox
```

[dependencies]: http://chemfiles.readthedocs.org/en/latest/installation.html

## Usage example

Here is a simple usage example for the `chemfiles` module. Please see the
`examples` folder for more examples.

```python
from chemfiles import Trajectory, Frame

trajectory = Trajectory("filename.xyz")
frame = trajectory.read()

print(f"There are {len(frame.atoms)} atoms in the frame")
positions = frame.positions()

# Do awesome things with the positions here !
```

## Bug reports, feature requests

Please report any bug you find and any feature you may want as a [github
issue](https://github.com/chemfiles/chemfiles.py/issues/new).

            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/chemfiles/chemfiles.py",
    "name": "chemfiles",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "chemistry computational cheminformatics files formats",
    "author": "Guillaume Fraux",
    "author_email": "guillaume@fraux.fr",
    "download_url": "https://files.pythonhosted.org/packages/c2/51/35538663b6384add778945735478da66b7c3095649654325d001922f30f8/chemfiles-0.10.4.tar.gz",
    "platform": null,
    "description": "# Python binding for the chemfiles library\n\n[![Build Status](https://github.com/chemfiles/chemfiles.py/actions/workflows/tests.yml/badge.svg)](https://github.com/chemfiles/chemfiles.py/actions/workflows/tests.yml)\n[![Code coverage](http://codecov.io/github/chemfiles/chemfiles.py/coverage.svg?branch=master)](http://codecov.io/github/chemfiles/chemfiles.py?branch=master)\n[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://chemfiles.github.io/chemfiles.py/)\n\nChemfiles is a library for reading and writing molecular trajectory files. These\nfiles are created by your favorite theoretical chemistry program, and contains\ninformation about atomic or residues names and positions. Chemfiles offers\nabstraction on top of these formats, and a consistent interface for loading and\nsaving data to these files.\n\nThis repository contains the Python binding for the chemfiles library. This\nbinding is created with the ctypes module, calling directly the C interface of\nchemfiles, and thus is compatible with Python 2 and 3, and with all versions of\nNumpy.\n\n## Installation\n\nYou can use your favorite package manager ([`conda`] or [`pip`]) to install\npre-built versions of Chemfiles, that support Linux/Windows/macOS, and Python\n2.7 and 3.\n\n```\n# Using pip\npip install chemfiles\n# Using conda\nconda install -c conda-forge chemfiles\n```\n\n[`conda`]: http://conda.pydata.org/docs/\n[`pip`]: https://docs.python.org/3.5/installing/index.html\n\n### Source compilation\n\nYou can install this python module from sources if you have all the\n[dependencies] of the C++ chemfiles library installed on your computer.\n\n```bash\n# To get the latest development version:\ngit clone https://github.com/chemfiles/chemfiles.py\ncd chemfiles.py\ngit submodule update --init\n# Install development dependencies\npip install -r dev-requirements.txt\n# Install chemfiles\npip install .\n# Optionally run the test suite\ntox\n```\n\n[dependencies]: http://chemfiles.readthedocs.org/en/latest/installation.html\n\n## Usage example\n\nHere is a simple usage example for the `chemfiles` module. Please see the\n`examples` folder for more examples.\n\n```python\nfrom chemfiles import Trajectory, Frame\n\ntrajectory = Trajectory(\"filename.xyz\")\nframe = trajectory.read()\n\nprint(f\"There are {len(frame.atoms)} atoms in the frame\")\npositions = frame.positions()\n\n# Do awesome things with the positions here !\n```\n\n## Bug reports, feature requests\n\nPlease report any bug you find and any feature you may want as a [github\nissue](https://github.com/chemfiles/chemfiles.py/issues/new).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Read and write computational chemistry files",
    "version": "0.10.4",
    "project_urls": {
        "Homepage": "http://github.com/chemfiles/chemfiles.py"
    },
    "split_keywords": [
        "chemistry",
        "computational",
        "cheminformatics",
        "files",
        "formats"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "840e409d1fe39dc24f3ac47dd384e78462fc4eb0435a169afe5b488cf6ded39b",
                "md5": "787dd9819f70a72f346449732b5d9982",
                "sha256": "10a4e641605db56321316310f620746db350691d7c9edc433fe2a65984e2278b"
            },
            "downloads": -1,
            "filename": "chemfiles-0.10.4-py2.py3-none-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "787dd9819f70a72f346449732b5d9982",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1497588,
            "upload_time": "2023-05-23T10:49:04",
            "upload_time_iso_8601": "2023-05-23T10:49:04.561927Z",
            "url": "https://files.pythonhosted.org/packages/84/0e/409d1fe39dc24f3ac47dd384e78462fc4eb0435a169afe5b488cf6ded39b/chemfiles-0.10.4-py2.py3-none-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "785fd7d7347db0d1a92577aa27d9412adea002295263d52cca57ff14c92cde56",
                "md5": "d01ac4a9a766acd96c13fe87c891de16",
                "sha256": "626725b0ea907d995cbbba99df1d19c474f8ebecdea8d0d390b7f3eaf2c91039"
            },
            "downloads": -1,
            "filename": "chemfiles-0.10.4-py2.py3-none-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "d01ac4a9a766acd96c13fe87c891de16",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1350827,
            "upload_time": "2023-05-23T10:49:07",
            "upload_time_iso_8601": "2023-05-23T10:49:07.125924Z",
            "url": "https://files.pythonhosted.org/packages/78/5f/d7d7347db0d1a92577aa27d9412adea002295263d52cca57ff14c92cde56/chemfiles-0.10.4-py2.py3-none-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3ad5beb71f372e650ba75e3eac246a17daa09a08aeed46580b62af35234d01f2",
                "md5": "d3db280449843996360e3501872ce6aa",
                "sha256": "4dbf6fa7ad5b2a1ad1415fbca905ce3a02c71cc2aa7fbce18a2b7d13c01a3664"
            },
            "downloads": -1,
            "filename": "chemfiles-0.10.4-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl",
            "has_sig": false,
            "md5_digest": "d3db280449843996360e3501872ce6aa",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1751189,
            "upload_time": "2023-05-23T10:49:10",
            "upload_time_iso_8601": "2023-05-23T10:49:10.237694Z",
            "url": "https://files.pythonhosted.org/packages/3a/d5/beb71f372e650ba75e3eac246a17daa09a08aeed46580b62af35234d01f2/chemfiles-0.10.4-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "504c380de5755146e27236cdecf02b7fe5da4c1f3786716baee5b3a245026acb",
                "md5": "aff86540968ef311382b331ee3922445",
                "sha256": "ef8f2b9fa65885658088180bb33971d1337bc8542220c710d1f6f3c1a6d661d4"
            },
            "downloads": -1,
            "filename": "chemfiles-0.10.4-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "aff86540968ef311382b331ee3922445",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1632279,
            "upload_time": "2023-05-23T10:49:12",
            "upload_time_iso_8601": "2023-05-23T10:49:12.365386Z",
            "url": "https://files.pythonhosted.org/packages/50/4c/380de5755146e27236cdecf02b7fe5da4c1f3786716baee5b3a245026acb/chemfiles-0.10.4-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c038c8f2865c48c6d5fc667e3c3eeddaeeb4b0e7e92e6a205f0525d6bf9eb401",
                "md5": "47818f2393974834c008a5df874565e3",
                "sha256": "be73ebcc3b173eb0c11ba9398c9cea1be107fc25b255a3dbb06793ddd883209e"
            },
            "downloads": -1,
            "filename": "chemfiles-0.10.4-py2.py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "47818f2393974834c008a5df874565e3",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1380984,
            "upload_time": "2023-05-23T10:49:14",
            "upload_time_iso_8601": "2023-05-23T10:49:14.997289Z",
            "url": "https://files.pythonhosted.org/packages/c0/38/c8f2865c48c6d5fc667e3c3eeddaeeb4b0e7e92e6a205f0525d6bf9eb401/chemfiles-0.10.4-py2.py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c25135538663b6384add778945735478da66b7c3095649654325d001922f30f8",
                "md5": "b64ad2c752a34e8c38cdce7755312154",
                "sha256": "f9e5ece3fcc8b63fdc2708d4ecc2ba5862ae2ab6790447bffc10c1b34ef2f445"
            },
            "downloads": -1,
            "filename": "chemfiles-0.10.4.tar.gz",
            "has_sig": false,
            "md5_digest": "b64ad2c752a34e8c38cdce7755312154",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3575412,
            "upload_time": "2023-05-23T10:49:17",
            "upload_time_iso_8601": "2023-05-23T10:49:17.227459Z",
            "url": "https://files.pythonhosted.org/packages/c2/51/35538663b6384add778945735478da66b7c3095649654325d001922f30f8/chemfiles-0.10.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-23 10:49:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "chemfiles",
    "github_project": "chemfiles.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "chemfiles"
}
        
Elapsed time: 0.07196s