Skip to main content

Helpers to generate JSON input files for the default chemiscope visualizer at https://chemiscope.org

Project description

chemiscope Python package

This package contains Python code to help generate input files for the chemiscope default visualizer.

Installation

You should use pip to install this package:

pip install chemiscope

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

Usage

From your own code:

import chemiscope

# read frames using ase
frames = ...

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

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

Contributing

You can install this package locally after a git clone with

python setup.py install

If you make changes, please make sure to add tests in tests; and run existing tests with tox:

pip install tox

tox

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

chemiscope-0.3.0.tar.gz (794.5 kB view hashes)

Uploaded Source

Built Distribution

chemiscope-0.3.0-py2.py3-none-any.whl (797.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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