Skip to main content

PyFeyn is a package which makes drawing Feynman diagrams simple and programmatic. Feynman diagrams are important constructs in perturbative field theory, so being able to draw them in a programmatic fashion is important if attempting to enumerate a large number of diagram configurations is important. The output quality of PyFeyn diagrams (into PDF or EPS formats) is very high, and special effects can be obtained by using constructs from PyX, which PyFeyn is based around

Project description

PyFeyn2

Forked from https://pyfeyn.hepforge.org/

PyFeyn is a Python-language based system for drawing Feynman diagrams. It was inspired by the C++ FeynDiagram system, and aims to provide the same functionality and quality of output as that, with the added benefits of a modern interpreted language, an improved interface and output direct to both EPS and PDF. Behind the scenes, PyFeyn uses the excellent PyX system - you can use PyX constructs in PyFeyn diagrams if you want, too.

PyPI version PyPI version downloads

test Coverage Status Codacy Badge Codacy Badge Documentation

Dependencies

  • libmagickwand-dev (to display pdfs in a jupyter-notebook, might require a policy change of the imagemagick config for PDFs, see Troubleshooting)
  • ghostscript
  • latexmk
  • (graphviz)
  • (feynmp-auto/feynmf)

Installation

poerty install --with docs --with dev
poetry shell

Documentation

Similar Feynman diagram rendering project:

Several of these are integrated into pyfeyn2.

Troubleshooting

Development

package/python structure:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfeyn2-2.3.6.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

pyfeyn2-2.3.6-py3-none-any.whl (64.7 kB view details)

Uploaded Python 3

File details

Details for the file pyfeyn2-2.3.6.tar.gz.

File metadata

  • Download URL: pyfeyn2-2.3.6.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyfeyn2-2.3.6.tar.gz
Algorithm Hash digest
SHA256 c3e36c30bc65920b73a064f51ee66fc1705b492d09c1b00aee3fd489603e826b
MD5 19b498385ca1c8c2927d1c8e21ddfb2f
BLAKE2b-256 8fef75884c1460069fda6744f3279e9f445b2ee95d2649458d7beb1ce94d20ce

See more details on using hashes here.

Provenance

File details

Details for the file pyfeyn2-2.3.6-py3-none-any.whl.

File metadata

  • Download URL: pyfeyn2-2.3.6-py3-none-any.whl
  • Upload date:
  • Size: 64.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for pyfeyn2-2.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 54e18f9223c5e7f82df1adca99a907cded7e166c7a4811b6eed8e789a8e26447
MD5 468c180ea8faa9138e0516605dba150f
BLAKE2b-256 16a61ca3fefc75cf4d407a89dbb364f063d8ab9e529cee46f23f2dcb2adcb981

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page