Skip to main content

TCviewer

Quickly display molecules and surfaces with our TCviewer program. TCviewer is easy to use and yields beautiful figures.

Installation

Currently, the installation can be done by cloning this repository and having all necessary dependencies.

The following is for people who would like to install the repository themselves. For example, to edit and/or contribute code to the project.

First clone this repository:

git clone git@github.com:TheoChem-VU/TCviewer.git

Then move into the new directory and install the package:

cd TCviewer
python -m pip install --upgrade build 
python -m build 
python -m pip install -e .

To get new updates, simply run:

git pull

Usage

TCviewer exports the Screen object which can be used to quickly build a scene. All the heavy work, such as setting up the camera, building and coloring meshes, will be done in the background. Please see the examples section for some simple example scripts for you to try out.

Examples

To draw a molecule, simply run:

from tcviewer import Screen
from scm import plams

molecule = 'path/to/molecule.xyz'  # molecules can be given as paths to xyz files
molecule = plams.Molecule('path/to/molecule.xyz')  # or as plams.Molecule objects
molecule.guess_bonds()
with Screen() as scr:
  scr.draw_molecule(molecule)

To load and draw the HOMO:

from yutility import orbitals
from tcviewer import Screen, materials
import pathlib

rkf_dir = pathlib.Path(__file__).parents[0]/'data'/'NH3BH3'

# load orbitals and choose an MO to draw
orbs = orbitals.Orbitals(rkf_dir/'adf.rkf')
homo = orbs.mos['HOMO']
# generate a cube file
cub = homo.generate_orbital()

with Screen() as scr:
	scr.draw_cub(cub, 0.03, material=materials.orbital_matte)

Metadata

Release files for tcviewer 0.2.1

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

Source distribution (sdist)

Source distribution for tcviewer 0.2.1
File Size Uploaded Provenance Actions
tcviewer-0.2.1.tar.gz 23.6 kB With provenance Details for tcviewer-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 50.7 kB

Release files / tcviewer-0.2.1.tar.gz

Download URL tcviewer-0.2.1.tar.gz
Size 23.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2c832ddf1cfaed5f2ed519b2ee8e846b3a2eaa3f87aaef5db01c4b657076da92
BLAKE2b-256 checksum
How to use checksums
1dffd332f866d922939b5d878685ce05fecb28f96cdc9f93389fda004b0edc17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.18

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / tcviewer-0.2.1-py3-none-any.whl

Download URL tcviewer-0.2.1-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccbaa5d24e904192f93c69b682ac4c3e4a041adf5a6b719cff7604a768d1bc57
BLAKE2b-256 checksum
How to use checksums
9a83d403d5e22b9f49f2655f977acb0c89a79322e8ce577a7423ee683a3c2102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.18

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for tcviewer 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tcviewer-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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