chemiscope


Namechemiscope JSON
Version 0.8.3 PyPI version JSON
download
home_pageNone
SummaryHelpers to work with the chemiscope interactive structure/property explorer for materials and molecules
upload_time2024-11-13 15:32:57
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseBSD-3-Clause
keywords visualization materials science chemistry molecules
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python helpers for chemiscope

This package contains Python code to help generate input files for the
[chemiscope](https://chemiscope.org) default visualizer, and integrate
chemiscope with jupyter notebooks.

## Installation

You should use pip to install this package:

```bash
pip install chemiscope
```

This installs both a `chemiscope-input` command line tool, and the `chemiscope`
package.

## Usage

To create a new chemiscope input file:

```python
import chemiscope
import ase.io

# read frames using ase
# frames can also be stk objets, e.g.
# frames = [stk.BuildingBlock(smiles="NCCN")]
frames = ase.io.read("structures.xyz", ":")

# add additional properties to display
properties = {
    "<property name>": {
        target: "atom",
        values: [3, 4, 2, 8, 9, 10],
    }
}

chemiscope.write_input("my-input.json.gz", frames=frames, properties=properties)
```

To display a chemiscope widget inside a jupyter notebook:

```python
import chemiscope
import ase.io

# read frames using ase
# frames can also be stk objets, e.g.
# frames = [stk.BuildingBlock(smiles="NCCN")]
frames = ase.io.read("structures.xyz", ":")

# add additional properties to display
properties = {
    "<property name>": [3, 4, 2, 8, 9, 10],
}

chemiscope.show(frames=frames, properties=properties)
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "chemiscope",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "visualization, materials science, chemistry, molecules",
    "author": null,
    "author_email": "Guillaume Fraux <guillaume.fraux@epfl.ch>",
    "download_url": "https://files.pythonhosted.org/packages/7a/6d/798ff928393d35c02d2184cab3bcace03ff49bf95565afcd92b7145a069d/chemiscope-0.8.3.tar.gz",
    "platform": null,
    "description": "# Python helpers for chemiscope\n\nThis package contains Python code to help generate input files for the\n[chemiscope](https://chemiscope.org) default visualizer, and integrate\nchemiscope with jupyter notebooks.\n\n## Installation\n\nYou should use pip to install this package:\n\n```bash\npip install chemiscope\n```\n\nThis installs both a `chemiscope-input` command line tool, and the `chemiscope`\npackage.\n\n## Usage\n\nTo create a new chemiscope input file:\n\n```python\nimport chemiscope\nimport ase.io\n\n# read frames using ase\n# frames can also be stk objets, e.g.\n# frames = [stk.BuildingBlock(smiles=\"NCCN\")]\nframes = ase.io.read(\"structures.xyz\", \":\")\n\n# add additional properties to display\nproperties = {\n    \"<property name>\": {\n        target: \"atom\",\n        values: [3, 4, 2, 8, 9, 10],\n    }\n}\n\nchemiscope.write_input(\"my-input.json.gz\", frames=frames, properties=properties)\n```\n\nTo display a chemiscope widget inside a jupyter notebook:\n\n```python\nimport chemiscope\nimport ase.io\n\n# read frames using ase\n# frames can also be stk objets, e.g.\n# frames = [stk.BuildingBlock(smiles=\"NCCN\")]\nframes = ase.io.read(\"structures.xyz\", \":\")\n\n# add additional properties to display\nproperties = {\n    \"<property name>\": [3, 4, 2, 8, 9, 10],\n}\n\nchemiscope.show(frames=frames, properties=properties)\n```\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "Helpers to work with the chemiscope interactive structure/property explorer for materials and molecules",
    "version": "0.8.3",
    "project_urls": {
        "documentation": "https://chemiscope.org/docs/",
        "homepage": "https://chemiscope.org",
        "repository": "https://github.com/lab-cosmo/chemiscope"
    },
    "split_keywords": [
        "visualization",
        " materials science",
        " chemistry",
        " molecules"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ca2af5acfa2266803dd8afdb3f400cf4f9689a5fe478f8a8e73bd9319bc14c9",
                "md5": "d88d188fcfacea0392e05a7d3d144761",
                "sha256": "3bc1a6e44c440c941cd92fae843fb9ca748739467a14edb3b82c27054b9560d3"
            },
            "downloads": -1,
            "filename": "chemiscope-0.8.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d88d188fcfacea0392e05a7d3d144761",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3755376,
            "upload_time": "2024-11-13T15:32:55",
            "upload_time_iso_8601": "2024-11-13T15:32:55.227611Z",
            "url": "https://files.pythonhosted.org/packages/1c/a2/af5acfa2266803dd8afdb3f400cf4f9689a5fe478f8a8e73bd9319bc14c9/chemiscope-0.8.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7a6d798ff928393d35c02d2184cab3bcace03ff49bf95565afcd92b7145a069d",
                "md5": "3170d8b310c0a79aa166be9526a2f72e",
                "sha256": "6e99661c912b72202280912e32126c5ea8709642e1e064259153e5243ff90ee6"
            },
            "downloads": -1,
            "filename": "chemiscope-0.8.3.tar.gz",
            "has_sig": false,
            "md5_digest": "3170d8b310c0a79aa166be9526a2f72e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 3738480,
            "upload_time": "2024-11-13T15:32:57",
            "upload_time_iso_8601": "2024-11-13T15:32:57.272908Z",
            "url": "https://files.pythonhosted.org/packages/7a/6d/798ff928393d35c02d2184cab3bcace03ff49bf95565afcd92b7145a069d/chemiscope-0.8.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 15:32:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lab-cosmo",
    "github_project": "chemiscope",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "chemiscope"
}
        
Elapsed time: 1.08847s