Skip to main content

feynjs for Python

feynjs lays out and draws Feynman diagrams from text. This package carries its engine for Python projects: a Sphinx extension and a Jupyter display, with nothing loaded from the network.

pip install feynjs

Sphinx

In conf.py:

extensions = ["feynjs.sphinx"]

Every feynman code block, in reST or MyST Markdown, is then drawn:

.. code-block:: feynman

   p p > t t~, (t > b w+, w+ > e+ ve), (t~ > b~ w-, w- > j j)

Jupyter

from feynjs import Diagram
Diagram("e- e+ > Z > mu- mu+")

The script

feynjs.SCRIPT is the path of the bundled feynjs.min.js, and feynjs.script() its text, for any other tool that serves a page.

The syntax, and feynjs for the web, Markdown sites, Obsidian and LaTeX: https://hepjs.github.io/feynjs/

Metadata

Release files for feynjs 0.10.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 feynjs 0.10.1
File Size Uploaded Provenance Actions
feynjs-0.10.1.tar.gz 130.6 kB With provenance Details for feynjs-0.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 262.0 kB

Release files / feynjs-0.10.1.tar.gz

Download URL feynjs-0.10.1.tar.gz
Size 130.6 kB
Tags Source
SHA-256 checksum
How to use checksums
311ded0aad40ccc0a75f9b7b6c4139ddadecda6164ca96d76536c1bd3c40e208
BLAKE2b-256 checksum
How to use checksums
571896136b4382df78f91de33f7716f978c245afb70aa02b03bb009fb140291c
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 25, 2026.

Transparency log

Release files / feynjs-0.10.1-py3-none-any.whl

Download URL feynjs-0.10.1-py3-none-any.whl
Size 131.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce73f48c0520daeee36e1e6fb5f9acd50b90ccc1a4129a22f2d941b095143a95
BLAKE2b-256 checksum
How to use checksums
4ee1c096aa5a5e5a2170bc8660512169a9015f27a08184bc1eeea51812bb0256
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 25, 2026.

Transparency log

Security for feynjs 0.10.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 feynjs-0.10.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 25, 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