This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A package for communicating with FORM

Project Description

This 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

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'))

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

[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.
Release History

Release History

This version
History Node

0.2.1

History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python_form-0.2.1-py2.py3-none-any.whl (12.8 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 31, 2017
python-form-0.2.1.tar.gz (9.4 kB) Copy SHA256 Checksum SHA256 Source May 31, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting