Skip to main content

Chemio Chemical files Input/Output

Chemical file Input/Output

Chemio: convert from one to another

Build Status PyPI

read/write

import chemio
chemio.read(inputobj, index)
chemio.write(filename, inputobj, format)
chemio.convert(inputobj, input_index, input_format, output_filename, output_index, output_format)
chemio.preview(arrays, format)

cli

# chemio -h
usage: chemio [-h] [--version] [-T] {help,info,convert} ...

Chem IO command line tool.

optional arguments:
  -h, --help           show this help message and exit
  --version            show program's version number and exit
  -T, --traceback

Sub-commands:
  {help,info,convert}
    help               Help for sub-command.
    info               Print information about files or system.
    convert            Convert between file formats.
usage: chemio info [-h] [-v] [-k KEY] [filename [filename ...]]

Print information about files or system.

With filename(s), the file format will be determined for each file.

positional arguments:
  filename           Name of file to determine format for.

optional arguments:
  -h, --help         show this help message and exit
  -v, --verbose      Show more information about files.
  -k KEY, --key KEY  key to show
usage: chemio convert [-h] [-v] [-i FORMAT] [-o FORMAT] [-f] [-n NUMBER] [-s]
                      input-file [input-file ...] output-file

Convert between file formats.

Use "-" for stdin/stdout. See "chemio info --formats" for known formats.

positional arguments:
  input-file
  output-file

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Print names of converted files
  -i FORMAT, --input-format FORMAT
                        Specify input FORMAT
  -o FORMAT, --output-format FORMAT
                        Specify output FORMAT
  -f, --force           Overwrite an existing file
  -n NUMBER, --image-number NUMBER
                        Pick images from trajectory. NUMBER can be a single
                        number (use a negative number to count from the back)
                        or a range: start:stop:step, where the ":step" part
                        can be left out - default values are 0:nimages:1.
  -s, --split-output    Write output frames to individual files. Output file
                        name should be a format string with a single integer
                        field, e.g. out-{:0>5}.xyz

Release files for chemio 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for chemio 2.0.0
File Interpreter ABI Platform
chemio-2.0.0-py3-none-any.whl Python 3 none any Details

Release files / chemio-2.0.0-py3-none-any.whl

Download URL chemio-2.0.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfd027490a7c31ebe136aeaf57de6c2996047f2b337df68c7d1a27e24671c9f9
BLAKE2b-256 checksum
How to use checksums
d9078cfd35289eb0d92f1d4deda50e3fe4fa90b5308f50da66b24c64407ae5af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0

Release history Release notifications | RSS feed

This release

2.0.0 This release

1 release file

1.7.2

1 release file

1.7.1

1 release file

1.7.0

1 release file

1.6.9

1 release file

1.6.7

2 release files

1.6.6

1 release file

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

3 release files

1.6.1

2 release files

1.6.0

3 release files

1.5.9

2 release files

1.5.8

3 release files

1.5.7

2 release files

1.5.6

2 release files

1.5.5

3 release files

1.5.4

3 release files

1.5.3

2 release files

1.5.1

3 release files

1.5.0

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.6

2 release files

1.4.5

3 release files

1.4.4

3 release files

1.4.3

3 release files

1.4.2

3 release files

1.4.0

3 release files

1.3.0

3 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

3 release files

1.0.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page