Registry / devops / fypp
library3.2pypypi✓ verified 91d ago

Fypp is a Python-powered Fortran preprocessor. It is a tool for generating Fortran source code from template files using a Python-like macro language. The current version is 3.2, with moderate release cadence (major versions every few years).

pip install fypp
INSTALL
IMPORT
SIG · FYPP
F
fypp
devopspythonv3.2
Install
1.5s avg
Import
63ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v3.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.066s · 18MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.060s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

fypp
✓ import fypp
fypp is a command-line tool, not typically imported as a library.

Quickstart: process a template file with fypp.

# fypp is used as a command-line tool, not typically imported. # Example: run 'fypp -o output.f90 input.fpp'
fypp --version
Debug
Known issues
breakingVersion 3.0 introduced backwards incompatibilities in macro syntax and variable handling. Upgrade requires reviewing templates.
fix
Consult the changelog: https://github.com/aradi/fypp/releases/tag/3.0
affects: >=3.0
deprecatedThe old macro call syntax (e.g., @:func()) is deprecated in favour of Fortran-friendly calls (e.g., @:func(...)).
fix
Use parentheses for macro calls: @:macro(args)
affects: >=3.0
gotchaThe _FILE_ and _THIS_FILE_ variables are now relative to the file-var-root; may change output paths.
fix
Use --file-var-root to control the root for relative paths.
affects: >=3.2
gotchafypp is not a Python library to import; it is a command-line preprocessor. Attempting to import fypp in Python code will not work as expected.
fix
Run from command line: fypp -o output input
affects: all
Errors
Common errors & fixes
fypp: error: argument -o/--output: expected one argument
Missing output filename after -o flag.
fix
Provide output file: fypp -o output.f90 input.fpp
import fypp ModuleNotFoundError: No module named 'fypp'
fypp is installed but not importable as a regular Python module (it's a script).
fix
Use the command line: fypp --help
fypp: error: unrecognized arguments: --file-var-root
Using --file-var-root with fypp < 3.2.
fix
Upgrade fypp: pip install --upgrade fypp
Upgrade
Version history
3.2latest on PyPI · released Aug 22, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
Resources
fypp — pip install fypp · libregistry