Skip to main content

A package for communicating with FORM

Project description

PyPI version Python versions Build Status Coverage Documentation Status DOI

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

Documentation

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

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

python-form-0.2.3.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

python_form-0.2.3-py2.py3-none-any.whl (12.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file python-form-0.2.3.tar.gz.

File metadata

  • Download URL: python-form-0.2.3.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

File hashes

Hashes for python-form-0.2.3.tar.gz
Algorithm Hash digest
SHA256 cf7b0d9248b1c59bcf6a87bd5fab5f153bfab8c79aa2092fccb7433683952b04
MD5 d9a817b9239d382b7506f415279edda4
BLAKE2b-256 4fec2249289be0a75622d006144e93d463ee718d9996acabecb6282cb8aea2ed

See more details on using hashes here.

File details

Details for the file python_form-0.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: python_form-0.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

File hashes

Hashes for python_form-0.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1e958bc70088849d5c0f2a75151c840c1b921ef5327db4d6ae80bab3f8e6e34d
MD5 289378de8c95124150982315fc9505d3
BLAKE2b-256 64a131f3210419542f89a725c09f36869c12e329619239f7a6beea0fb660db56

See more details on using hashes here.

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