Skip to main content

python-form

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

Metadata

Release files for python-form 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-form 0.2.3
File Size Uploaded
python-form-0.2.3.tar.gz 11.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-form 0.2.3
File Interpreter ABI Platform
python_form-0.2.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 24.6 kB

Release files / python-form-0.2.3.tar.gz

Download URL python-form-0.2.3.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cf7b0d9248b1c59bcf6a87bd5fab5f153bfab8c79aa2092fccb7433683952b04
BLAKE2b-256 checksum
How to use checksums
4fec2249289be0a75622d006144e93d463ee718d9996acabecb6282cb8aea2ed
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / python_form-0.2.3-py2.py3-none-any.whl

Download URL python_form-0.2.3-py2.py3-none-any.whl
Size 12.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1e958bc70088849d5c0f2a75151c840c1b921ef5327db4d6ae80bab3f8e6e34d
BLAKE2b-256 checksum
How to use checksums
64a131f3210419542f89a725c09f36869c12e329619239f7a6beea0fb660db56
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page