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

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

Uploaded Source

Built Distribution

pyfeyn2-2.4.0-py3-none-any.whl (71.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyfeyn2-2.4.0.tar.gz
Algorithm Hash digest
SHA256 7f54b42ccbc0ca7227cf689ec7c2c67a29b07c31cb26b459daa2c494f81adac7
MD5 92683276673645fd8ff277b5a81dd3a3
BLAKE2b-256 01609ede8c119f4c3be6921d61d2977d7836a913c2e28fa8922eefd86df46588

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyfeyn2-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 71.6 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af3b69c1a136b280185ce0ee4e19ac8ca8ab4b892fd8fdb722d79bad5c776258
MD5 bae7b33a73b079f0552f51afe092d20b
BLAKE2b-256 ee5d5bd140a2c5aa942d23f4d17847708d08acb4c6ba34797528ab300999ee9d

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