Skip to main content

Package for reading of .xyz files and constructing of molecular graphs from atomic coordinates.

Project description

xyz2graph

PyPI version Python Version License Documentation

PyPI Downloads GitHub Stars GitHub Forks

"Buy Me A Coffee" Stand With Ukraine

A Python package for converting XYZ molecular files into interactive 3D visualizations and NetworkX graphs.

Try it live 🚀

Features

  • Interactive 3D molecular visualization using Plotly
  • NetworkX graph conversion for analysis
  • Command-line interface

Installation

pip install xyz2graph

Requirements

  • Python 3.8+
  • Dependencies: NumPy, Plotly, NetworkX

Quick Start

from xyz2graph import MolGraph

# Create molecular graph and read XYZ file
mg = MolGraph()
mg.read_xyz('molecule.xyz')

# Generate interactive 3D visualization
fig = mg.to_plotly()
fig.show()

Command Line

# Save visualization as HTML
xyz2graph molecule.xyz

# Specify output file
xyz2graph molecule.xyz --output viz.html

# Open directly in browser
xyz2graph molecule.xyz --browser

Documentation

Full documentation is available at https://zotko.github.io/xyz2graph

Contributing

Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines.

Citation

If you use xyz2graph in your research, please cite:

@misc{zotko2018xyz2graph,
  author       = {Zotko, Mykola},
  title        = {xyz2graph: Molecular Structure Visualization},
  year         = {2018},
  publisher    = {GitHub},
  url          = {https://github.com/zotko/xyz2graph}
}

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

xyz2graph-3.3.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

xyz2graph-3.3.1-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file xyz2graph-3.3.1.tar.gz.

File metadata

  • Download URL: xyz2graph-3.3.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xyz2graph-3.3.1.tar.gz
Algorithm Hash digest
SHA256 76311d5650063782e932df3ef5f87853d961b0cb40af318a042b93dbd0842924
MD5 03cb7d90fc69fdae0ee5223fe8247523
BLAKE2b-256 e5ca019caec480b3de4b6ececa0a61b1253e92c7586183d6adf957935bdfaa25

See more details on using hashes here.

Provenance

The following attestation bundles were made for xyz2graph-3.3.1.tar.gz:

Publisher: publish.yml on zotko/xyz2graph

Attestations:

File details

Details for the file xyz2graph-3.3.1-py3-none-any.whl.

File metadata

  • Download URL: xyz2graph-3.3.1-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for xyz2graph-3.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8bfeb2e5f6e2c71e8aadea1515ba7963225d8a5ac6b21a743060d38e48c6a777
MD5 73cd29bcaec7c518746e12adb72b26ce
BLAKE2b-256 b685cc2121df776ca7cd03206fa632e20ef5e159e3de68e9d213eacfc4ec438e

See more details on using hashes here.

Provenance

The following attestation bundles were made for xyz2graph-3.3.1-py3-none-any.whl:

Publisher: publish.yml on zotko/xyz2graph

Attestations:

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