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 DOI

test Coverage Status Codacy Badge Codacy Badge Documentation Binder

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

pip install pyfeyn2

Documentation

Similar Feynman diagram rendering project:

Several of these are integrated into pyfeyn2.

Troubleshooting

Development

pip install -e . --user --break-system-packages

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfeyn2-2.4.3-py3-none-any.whl (76.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfeyn2-2.4.3.tar.gz
  • Upload date:
  • Size: 123.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for pyfeyn2-2.4.3.tar.gz
Algorithm Hash digest
SHA256 73fe604f62419fb8646ba7e7eb03b171a1c6cc149a216ba89e404914a8a3ce0a
MD5 b0135df903ecd2a342820130840a5eeb
BLAKE2b-256 b6df89a00781fe4d5d52142c6d8b34247f3b12926fb6223d171bfad6f8dc8c41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfeyn2-2.4.3-py3-none-any.whl
  • Upload date:
  • Size: 76.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for pyfeyn2-2.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b0e005651b8d60ac1a724658bd22f39dfd0cc54c3394f590c10a105b33746789
MD5 80d45b720b8668ef620ed76dc89e219f
BLAKE2b-256 a34ec602a752eb357d0dc1d4beed35a58a00a5f4894e3a2a36d1c07ba6c93f4e

See more details on using hashes here.

Supported by

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