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:
$ 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'))
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.0.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for python_form-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ec4c9b87ce8e8800aaaf9e218cb7c6a97bae6299f3ff6f5155f97b434bf8473 |
|
MD5 | 4f3f7738a155bcc820c8e22c33468681 |
|
BLAKE2b-256 | ef03042ea9e35f3c8196bfe607f1e7ee98ed9c51f81b73cda7285b81e5e19a4f |