Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tueda/formset
A "form.set" generator.
https://github.com/tueda/formset
configuration form
Last synced: 2 months ago
JSON representation
A "form.set" generator.
- Host: GitHub
- URL: https://github.com/tueda/formset
- Owner: tueda
- License: mit
- Created: 2019-12-01T10:50:10.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T02:10:36.000Z (about 1 year ago)
- Last Synced: 2024-10-06T15:18:25.330Z (4 months ago)
- Topics: configuration, form
- Language: Python
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
formset
=======[![Test](https://github.com/tueda/formset/workflows/Test/badge.svg?branch=main)](https://github.com/tueda/formset/actions?query=branch:main)
[![PyPI version](https://badge.fury.io/py/formtools-formset.svg)](https://pypi.org/project/formtools-formset/)A `form.set` generator.
This is a small script to generate a configuration file `form.set` of
[FORM](https://www.nikhef.nl/~form/) for your machine.
The script suggests adequate *static* buffer sizes for `tform` from
the number of CPUs and physical memory available on the computer.Installation
------------```sh
pip install formtools-formset
```You can also pick up the main script file [`formset.py`](https://raw.githubusercontent.com/tueda/formset/1.0.0/formset/formset.py) manually.
Usage
-----```shell
formset # prints a set of adequate setup parametersformset -o # writes a set of adequate setup parameters to "form.set"
```Note that this script considers only *static* buffers, allocated
at the start-up of FORM.
If your FORM program uses much bigger *dynamical* buffers than usual
(for example, you need to handle complicated rational functions
or you want to optimize very huge polynomials)
then you need to adjust the initial memory usage by
the `--percentage N` (or `-p N`) option:```shell
formset -p 50
```If your program requires a non-default `MaxTermSize` (or other parameters),
then you need to specify it:```shell
formset MaxTermSize=200K
```Other command-line options can be found in the help message:
```shell
formset --help
```## License
[MIT](https://github.com/tueda/formset/blob/main/LICENSE)