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
  • (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.2.2.tar.gz (48.6 kB view details)

Uploaded Source

Built Distribution

pyfeyn2-2.2.2-py3-none-any.whl (58.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfeyn2-2.2.2.tar.gz
  • Upload date:
  • Size: 48.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.16 Linux/5.15.80-gentoo

File hashes

Hashes for pyfeyn2-2.2.2.tar.gz
Algorithm Hash digest
SHA256 238686d97963451eb6a7906145b65da403cb3f7da98860278f916735c77a84fc
MD5 57bdf5c8f4634473302f2737b0457751
BLAKE2b-256 eb33b7874a11508081ae2272cb5adcba6846e682660667544a0935c8340f18f1

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyfeyn2-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 58.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.16 Linux/5.15.80-gentoo

File hashes

Hashes for pyfeyn2-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a381db7ef37a2440375dcc55f2b85becf3889f24bfeb408c412ff3192ed047
MD5 f31947801eb095aa120ea342ff0dae2b
BLAKE2b-256 1bad9f5db5148249e2b289f073b1a44a89ff2edb57cc8309c4a9aff74c1a0c20

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