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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file chemiscope-0.3.0.tar.gz
.
File metadata
- Download URL: chemiscope-0.3.0.tar.gz
- Upload date:
- Size: 794.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1520e739a0d400ddd7ccb40753e1759250722d6fe42082332189683615b2907 |
|
MD5 | 953c35677053bd360c62f3ce6a48c429 |
|
BLAKE2b-256 | 453e5504cca481d97658c5954b0d80adbbd122172abcf558de3c4a9381a8faed |
File details
Details for the file chemiscope-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: chemiscope-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 797.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17a44b6133bbdd7d1c3d5b889ee58cdb5f04ffe69596048411f0fc9063ee49d3 |
|
MD5 | 0029b6277a55272f048f2cf52e4a3d30 |
|
BLAKE2b-256 | 99397125b8641b48926ea47e9b6950971612826cca9ff4dcd0d457b1de2a4696 |