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.3

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.3
File Size Uploaded Provenance Actions
feynjs-0.10.3.tar.gz 126.2 kB With provenance Details for feynjs-0.10.3.tar.gz

Built distribution (wheel)

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

Total release size: 253.3 kB

Release files / feynjs-0.10.3.tar.gz

Download URL feynjs-0.10.3.tar.gz
Size 126.2 kB
Tags Source
SHA-256 checksum
How to use checksums
39e6ef4a0a37050a6c4d2a9919dd72aa4d77ef30de46548519a60f499a69abf4
BLAKE2b-256 checksum
How to use checksums
3b90374edae468fc09338a4b27041d125f660bb792b05e0300143ed0131aa2eb
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 27, 2026.

Transparency log

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

Download URL feynjs-0.10.3-py3-none-any.whl
Size 127.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5f9f7c6d421ce9cdb560126de6fecf18579a47f1bfd11e478b210a2fbe69ea6
BLAKE2b-256 checksum
How to use checksums
2e0b6bf41c7bc8a09f518a8002a5392a84f59e852203ced827a155503a0d6c64
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 27, 2026.

Transparency log

Security for feynjs 0.10.3

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.3.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 27, 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