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.8.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyfeyn2-2.3.8.tar.gz
Algorithm Hash digest
SHA256 1e159b9b6a0b04cab00504e836bd8aee3627d4eb9d604d2b95ce7a27a703d60a
MD5 dc80224c985b83e6e5918a3c205ad61f
BLAKE2b-256 bb2b07d6416f2241cb8a18dce4e00af5643b7a3aaaba3003b3605566f7cc1003

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyfeyn2-2.3.8-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.6

File hashes

Hashes for pyfeyn2-2.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 3f1cd3f274a74f0af7d3118ba721481a950bfd8d2a9a4190e806f40042f7846d
MD5 c0acef130859ec9d9c05b1c7738282d0
BLAKE2b-256 c3084f11ef6dfafe6d6f59181830e5c81317bb6096e59f15b1ed32d394cc758d

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