Skip to main content

Version Badge Downloads Badge PyPI codecov

Phonopy

Phonon code mainly written in Python, with the compute-intensive parts handled by the Rust backend (phonors). Phonopy user documentation is found at http://phonopy.github.io/phonopy/

Installation

See https://phonopy.github.io/phonopy/install.html.

Mailing list for questions

Usual phonopy questions should be sent to phonopy mailing list (https://sourceforge.net/p/phonopy/mailman/).

Development

The development of phonopy is managed on the main branch of the github phonopy repository.

  • Github issues is the place to discuss about phonopy issues.
  • Github pull request is the place to request merging source code.
  • Architecture principles and the migration plan toward v5/v6 are documented at https://phonopy.github.io/phonopy/development.html.

Formatting

Formatting rules are found in pyproject.toml.

pre-commit

Pre-commit (https://pre-commit.com/) is mainly used for applying the formatting rules automatically. Therefore, it is strongly encouraged to use it at or before git-commit. Pre-commit is set-up and used in the following way:

  • Installed by pip install pre-commit, conda install pre-commit or see https://pre-commit.com/#install.
  • pre-commit hook is installed by pre-commit install.
  • pre-commit hook is run by pre-commit run --all-files.

Unless running pre-commit, pre-commit.ci may push the fix at PR by github action. In this case, the fix should be merged by the contributor's repository.

VSCode setting

  • Not strictly, but VSCode's settings.json may be written like below

    "ruff.lint.args": [
        "--config=${workspaceFolder}/pyproject.toml",
    ],
    "[python]": {
        "editor.defaultFormatter": "charliermarsh.ruff",
        "editor.codeActionsOnSave": {
            "source.organizeImports": "explicit"
        }
    },
    

Documentation

Phonopy user documentation is written using python sphinx. The source files are stored in doc directory. Please see how to write the documentation at doc/README.md.

How to run tests

Tests are written using pytest. To run tests, pytest has to be installed. The tests can be run by

% pytest

Metadata

Release files for phonopy 4.12.0

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

Source distribution (sdist)

Source distribution for phonopy 4.12.0
File Size Uploaded Provenance Actions
phonopy-4.12.0.tar.gz 5.9 MB With provenance Details for phonopy-4.12.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.5 MB

Release files / phonopy-4.12.0.tar.gz

Download URL phonopy-4.12.0.tar.gz
Size 5.9 MB
Tags Source
SHA-256 checksum
How to use checksums
9d1c8e3763f599dd8a7084fcabad7489b3a27bbb4deabf655d19446a86f62e59
BLAKE2b-256 checksum
How to use checksums
1b14a1f7a2908993eec9dcbf51bc05fb92305827f983529faf60017eb5a4ea76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

Release files / phonopy-4.12.0-py3-none-any.whl

Download URL phonopy-4.12.0-py3-none-any.whl
Size 646.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ff3db761a46dd1539d49b8c03a48ca352c481b3cdc31d3b9e741aa948e2b3ef
BLAKE2b-256 checksum
How to use checksums
9723ac0513681a7e5ced8856cf50a6c6f874afc8428ba0ec9d70ef6ff2550155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 30, 2026.

Transparency log

Security for phonopy 4.12.0

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 phonopy-4.12.0.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 30, 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.

Release history Release notifications | RSS feed

This release

4.12.0 This release

2 release files Full provenance

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