fparser
Python implementation of a Fortran parser
Decision gist · record as of 2026-08-14
Yes, if you need to parse or analyze Fortran code programmatically. The package is actively maintained, has no external dependencies, and supports modern Fortran standards. Beta status and the lack of a stable API guarantee mean you should pin the version in production code, but the frequent releases and recent bug fixes suggest a maturing project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later.
- Low install friction with no runtime dependencies.
- Actively maintained with frequent releases; version 0.2.4 was released 49 days ago with bug fixes and F2008 support improvements.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows use in most projects without significant restrictions.
last release 2026-06-26 (49 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 115,731 downloads/mo, #12,237 on PyPI
Alternatives
Verify before relying
pip install fparser
from fparser.two import parse_file
tree = parse_file('example.f')- Whether the parser handles all Fortran dialects equally well or has known limitations with specific extensions.
- Performance characteristics on large codebases or deeply nested structures.
- API stability guarantees given the beta development status.
What it is and what it does
fparser is a pure-Python Fortran parser that converts Fortran source code into an abstract syntax tree for programmatic inspection and transformation. It evolved from the parser originally built for the F2PY project and now supports Fortran standards from 77 through 2008, including modern extensions like OpenMP sentinels and F2008 intrinsic functions.
The parser is designed for developers and researchers who need to analyze, transform, or generate Fortran code programmatically. It has no external runtime dependencies, making it lightweight to integrate into build pipelines, code analysis tools, or scientific computing workflows. Recent releases have focused on correctness—fixing edge cases in string handling, loop constructs, and directive processing—and expanding F2008 support.
Use it for
- Analyze Fortran codebases to extract structure, dependencies, or metrics for documentation or refactoring.
- Build code generation or transformation tools that read Fortran and emit modified or translated code.
- Integrate Fortran parsing into scientific computing pipelines that need to inspect or validate legacy code.
- Develop IDE or editor plugins that require Fortran syntax understanding for highlighting or navigation.
- Automate migration or modernization of Fortran code by parsing and rewriting specific constructs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to parse or analyze Fortran code programmatically.
The package is actively maintained, has no external dependencies, and supports modern Fortran standards. Beta status and the lack of a stable API guarantee mean you should pin the version in production code, but the frequent releases and recent bug fixes suggest a maturing project.
Install
fparser on PyPI
Before you install
Low install friction with no runtime dependencies. Actively maintained with frequent releases; version 0.2.4 was released 49 days ago with bug fixes and F2008 support improvements.
Requires Python 3.6 or later.
License in practice
BSD-3-Clause permissive license allows use in most projects without significant restrictions.
Quickstart
pip install fparser
from fparser.two import parse_file
tree = parse_file('example.f')
Verify before relying
- Whether the parser handles all Fortran dialects equally well or has known limitations with specific extensions.
- Performance characteristics on large codebases or deeply nested structures.
- API stability guarantees given the beta development status.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 49 days since the last release |
| First released | |
| Downloads | 115,731 / month, #12,237 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Science/ResearchNatural Language :: EnglishOperating System :: MacOSOperating System :: POSIXOperating System :: UnixProgramming Language :: FortranProgramming Language :: PythonTopic :: Scientific/EngineeringTopic :: Software DevelopmentTopic :: Utilities |
Evidence: fparser-0.2.4-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “fortran parser python”
- fparserfparser parses Fortran source code (Fortran 77 through 2008) into an…
- f90nmlf90nml reads, writes, and modifies Fortran namelist files, converting…
- tree-sitter-fortranProvides a Fortran language grammar for tree-sitter, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also f90nml · pglast · fypp · tree-sitter-fortran · luaparser · cftime · parse · netCDF4 · deepface · typed-ast