x3dase
Python module for drawing and rendering atoms and molecules objects using X3DOM. X3dase can be used as a viewer for the molecule structure in the Jupyter notebook.
Functions:
- Support all file-formats using by ASE, including cif, xyz, cube, pdb, json, VASP-out and so on.
- Ball & stick
- Space filling
- Polyhedral
- Isosurface
- Show element and index
- Measure distance and angle
- Animation
For the introduction of ASE , please visit https://wiki.fysik.dtu.dk/ase/index.html
Author
- Xing Wang xingwang1991@gmail.com
Dependencies
- Python
- ASE
- Skimage
Installation using pip
pip install --upgrade --user x3dase
Installation from source
You can get the source using git:
git clone https://github.com/superstar54/x3dase.git
Then add it to your PYTHONPATH and PATH. On windows, you can edit the system environment variables.
export PYTHONPATH=/path-to-x3dase:$PYTHONPATH
Examples
Draw molecule in Jupyter notebooks
Shortcut
| key | function |
|---|---|
| b | ball-and-stick model |
| s | spacefilling model |
| p | polyhedra model |
| 1 | view top |
| 2 | view front |
| 3 | view right |
| 4 | view element |
| 5 | view index |
Show different models
Measure distance and angle between atoms
Using Ctrl + click to select atoms.
| Selection | measurement |
|---|---|
| single atom | xyz position and atomic symbol |
| two atoms | interatomic distance |
| three atoms | three internal angles |
Polyhedra for crystal
Isosurface for electron density
Animation
images = [atoms1, atoms2, atoms3]
X3D(images)
Metadata
Release files for x3dase 1.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| x3dase-1.1.4.tar.gz | 838.3 kB | Without provenance | Details for x3dase-1.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| x3dase-1.1.4-py3-none-any.whl | Python 3 | none | any | Details for x3dase-1.1.4-py3-none-any.whl |
Total release size: 1.7 MB
Release files / x3dase-1.1.4.tar.gz
| Download URL | x3dase-1.1.4.tar.gz |
|---|---|
| Size | 838.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a4a73e26240eadf6380998861fd81280db7c6281d6c09d11c5c2880f15a20a3
|
|
BLAKE2b-256 checksum How to use checksums |
aea35fee9def8da13c805197549ef46e6a74fdf4b305496e83756123103031f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Release files / x3dase-1.1.4-py3-none-any.whl
| Download URL | x3dase-1.1.4-py3-none-any.whl |
|---|---|
| Size | 849.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f7b79a49073f445199dfff9eb0c1096fa0fb77c96d11be80994a25bf764eecb
|
|
BLAKE2b-256 checksum How to use checksums |
0a18b215f1ff36a24d505da742cc13081f266812426985e3aecb3c5565986c49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
|
Security for x3dase 1.1.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.