Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tueda/python-form
A Python package for communicating with FORM.
https://github.com/tueda/python-form
binding computer-algebra form python
Last synced: 2 months ago
JSON representation
A Python package for communicating with FORM.
- Host: GitHub
- URL: https://github.com/tueda/python-form
- Owner: tueda
- License: mit
- Created: 2015-07-23T21:17:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-08T14:07:54.000Z (about 4 years ago)
- Last Synced: 2024-11-18T22:11:43.307Z (3 months ago)
- Topics: binding, computer-algebra, form, python
- Language: Python
- Homepage:
- Size: 157 KB
- Stars: 7
- Watchers: 6
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
python-form
===========.. image:: https://badge.fury.io/py/python-form.svg
:target: https://pypi.python.org/pypi/python-form
:alt: PyPI version.. image:: https://img.shields.io/pypi/pyversions/python-form.svg
:target: https://pypi.python.org/pypi/python-form
:alt: Python versions.. image:: https://travis-ci.org/tueda/python-form.svg?branch=master
:target: https://travis-ci.org/tueda/python-form
:alt: Build Status.. image:: https://coveralls.io/repos/tueda/python-form/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/tueda/python-form?branch=master
:alt: Coverage.. image:: https://readthedocs.org/projects/python-form/badge/?version=latest
:target: https://python-form.readthedocs.io/en/latest
:alt: Documentation Status.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1044009.svg
:target: https://doi.org/10.5281/zenodo.1044009
:alt: DOIThis package provides a mechanism to embed FORM_ [1]_ [2]_ [3]_ programs in
Python code. The basic idea of the implementation is the same as FormLink_ [4]_:
it utilizes unnamed pipes between FORM and an external program [5]_, Python in
this case. It is expected to work on Unix-like systems.Installation
------------::
$ pip install python-form
or directly from GitHub for the latest development version:
::
$ pip install git+https://github.com/tueda/python-form.git
See also the documentation for `pip install`_.
Example
-------.. code:: python
import form
with form.open() as f:
f.write('''
AutoDeclare Vector p;
Local F = g_(0,p1,...,p6);
trace4,0;
.sort
''')
print(f.read('F'))Documentation
-------------- `Package Documentation`_
- CHANGELOG_Licence
-------python-form is distributed under the MIT licence.
See the LICENCE_ file.Note that FORM itself adopts the GPL version 3. A program/package using FORM via
python-form could be considered as an aggregate (at your own risk) or a combined
work affected by the GPL.References
----------.. _FORM: https://www.nikhef.nl/~form/
.. _FormLink: https://www.feyncalc.org/formlink/
.. _pip install: https://pip.pypa.io/en/stable/reference/pip_install/
.. _Package Documentation: https://python-form.readthedocs.io/en/stable/
.. _CHANGELOG: https://github.com/tueda/python-form/blob/master/CHANGELOG.md
.. _LICENCE: https://github.com/tueda/python-form/blob/master/LICENCE.md.. [1] J.A.M. Vermaseren,
New features of FORM,
`arXiv:math-ph/0010025
`_.
.. [2] J. Kuipers, T. Ueda, J.A.M. Vermaseren and J. Vollinga,
FORM version 4.0,
`Comput.Phys.Commun. 184 (2013) 1453-1467
`_,
`arXiv:1203.6543 [cs.SC]
`_.
.. [3] https://github.com/vermaseren/form
.. [4] Feng Feng and Rolf Mertig,
FormLink/FeynCalcFormLink : Embedding FORM in Mathematica and FeynCalc,
`arXiv:1212.3522 [hep-ph]
`_.
.. [5] M. Tentyukov and J.A.M. Vermaseren,
Extension of the functionality of the symbolic program FORM by external software,
`Comput.Phys.Commun. 176 (2007) 385-405
`_,
`arXiv:cs/0604052
`_.