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

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.2
File Size Uploaded Provenance Actions
feynjs-0.10.2.tar.gz 120.5 kB With provenance Details for feynjs-0.10.2.tar.gz

Built distribution (wheel)

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

Total release size: 241.7 kB

Release files / feynjs-0.10.2.tar.gz

Download URL feynjs-0.10.2.tar.gz
Size 120.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1739f965752129aafdf7274805fa8c9ec7b1a83978d3ee637372d2acd0df8b04
BLAKE2b-256 checksum
How to use checksums
2f8fbc29ad8699735b79f0daaf5809b2f70bafc09abe632479743cd9fefa7a67
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 26, 2026.

Transparency log

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

Download URL feynjs-0.10.2-py3-none-any.whl
Size 121.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
002eb9b6dc8dd257d73d45c2b2566ac276e2b55667b9a7006907d27b02e56470
BLAKE2b-256 checksum
How to use checksums
167bc6526c2ea7df265ac16b1c252a10307d94c53347b878a820d52cadbd79c1
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 26, 2026.

Transparency log

Security for feynjs 0.10.2

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.2.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 26, 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