phonon-to-json
Converts CASTEP .phonon files into .json files readable by TSS Physics Phonon Visualiser.
Install
To install phonon-to-json run:
pip install phonon-to-json
Dependencies
phonon-to-json requires
castep-outputsspglibnumpy
Command line
phonon-to-json is designed to be run as a command line tool. To run:
phonon_to_json [filename] [name] [formula]
[filename]is the name of the .phonon file (excluding the .phonon extension)[name]is the name of the compound, as displayed at the top of the website[formula]is the chemical formula of the compound
[name] and [formula] are optional, if ommited [filename] will be used
As a module
To use phonon-to-json as a module import json_dumper:
import phonon_to_json as pj
filename = "[filename]"
name = "[name]"
formula = "[formula]"
r_data = pj.read_file(filename)
w_data = pj.read_to_write(r_data, name, formula)
pj.write_file(filename, w_data)
Metadata
Release files for phonon-to-json 0.0.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 | |
|---|---|---|---|---|
| phonon_to_json-0.0.4.tar.gz | 41.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| phonon_to_json-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.5 kB
Release files / phonon_to_json-0.0.4.tar.gz
| Download URL | phonon_to_json-0.0.4.tar.gz |
|---|---|
| Size | 41.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f083125dbdbe6091aa288271ecb2f861ecc1f724358b607cf7246ff86075f0c3
|
|
BLAKE2b-256 checksum How to use checksums |
fa7ea324fab8eafa5dc1e4f17dcc62e4444c13d657bdaad1e5524ebcfbd35077
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 10, 2025.
Transparency logRelease files / phonon_to_json-0.0.4-py3-none-any.whl
| Download URL | phonon_to_json-0.0.4-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86f2c5c702bd2ac648696199966e8edf3549dc002ee46f35e243c241413f8a01
|
|
BLAKE2b-256 checksum How to use checksums |
a718da3c4e8c5722eef4a1ace2b0adaba0b89b1d30995420eac6fdca014d5f32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Dec 10, 2025.
Transparency logSecurity for phonon-to-json 0.0.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for phonon_to_json-0.0.4.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 Dec 10, 2025.
Transparency logA 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.