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

Uploaded Source

Built Distribution

pyfeyn2-2.3.3-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfeyn2-2.3.3.tar.gz
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for pyfeyn2-2.3.3.tar.gz
Algorithm Hash digest
SHA256 959027ee0a600722f9b489d67ef55fba31a0f9d0771339e2a1a26fab67a07877
MD5 34af008c05d4452957a02cbfa4ec34bd
BLAKE2b-256 c0ec47cd3c05506ca71b860834e46bc87c1ee4cd7842142df66e0d44eea6c64c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyfeyn2-2.3.3-py3-none-any.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for pyfeyn2-2.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 272e91e3686548b6f4c47020d4bd8f902f378ed355ef66ff1d4bbc6c06a6f852
MD5 420c1d5999038c4c1ad9d69879a3deaf
BLAKE2b-256 aada43982aedb8454be1abbb99652b205637ddcb6b3870fcb180a6b8cc1f9160

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