Skip to main content

Python implementation of a Fortran parser

Project description

News

  • 26/06/2026 Version 0.2.4 released (bug fix for importing F2008 without F2003. Support for additional F2008 intrinsic functions).
  • 10/06/2026 Version 0.2.3 released (adds support for preprocessor line markers, improved handling of labelled DO loops and support for F2008 extension to Proc_Decl).
  • 01/04/2026 Version 0.2.2 released (adds support for more types of directive and support for the Fortran2008 unlimited-repeat format specifier).
  • Good to know: fparser with Python 3.14 is approximately a factor of two faster than it is with older Python versions.
  • 29/09/2025 Version 0.2.1 released (bug fixes for string handling and loops in array constructors, support for a new, Directive node).
  • 26/11/2024 Version 0.2.0 released (support for statements behind OMP sentinels, non-standard STOP and bug fix for type-guard statements).
  • 31/01/2024 Version 0.1.4 released (resolves issues with WHERE statements and intrinsics).
  • 18/09/2023 Version 0.1.3 released (resolves issues with support for DO CONCURRENT).
  • 19/06/2023 Version 0.1.2 released (bug fix for handling of INCLUDE files).
  • 28/04/2023 Version 0.1.1 released (extends F2008 support with the optional "::" in the MODULE PROCEDURE statement).
  • 18/04/2023 Version 0.1.0 released and status changed from alpha to beta. See the CHANGELOG for more details.
  • 16/06/2022 Version 0.0.16 released. See the CHANGELOG for details.
  • 30/05/2022 Version 0.0.15 released. See the CHANGELOG for details.
  • 10/03/2022 Version 0.0.14 released. See the CHANGELOG for details.
  • 02/11/2021 Version 0.0.13 released. See the CHANGELOG for details.
  • 26/04/2021 Version 0.0.12 released. See the CHANGELOG for details.
  • 15/05/2020 Version 0.0.11 released. See the CHANGELOG for details.
  • 18/11/2019 Version 0.0.10 released. See the CHANGELOG for details.
  • 04/11/2019 Version 0.0.9 released. See the CHANGELOG for details.
  • 03/12/2018 Version 0.0.8 released. See the CHANGELOG for details.
  • 23/04/2018 Version 0.0.7 released. See the CHANGELOG for details.
  • 22/03/2017 Version 0.0.2 released. Documentation made available on ReadTheDocs.
  • 16/01/2017 Parser code extracted from F2PY project to form the base of the fparser project.

Introduction

This project is based upon the Fortran (77..2003) parser originally developed by Pearu Peterson for the F2PY project, www.f2py.com. It provides a parser for Fortran source code implemented purely in Python with minimal dependencies.

Obtaining

fparser is available from the Python Package Index. It may also be cloned from github. Alternatively, github provides tarballs for each of the releases.

Documentation

The documentation for fparser is hosted on ReadTheDocs.

Code Metrics

fparser unit tests codecov Documentation Status

Icicle coverage plot generated by CodeCov

See also

www.f2py.com.

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

fparser-0.2.4.tar.gz (449.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fparser-0.2.4-py3-none-any.whl (661.1 kB view details)

Uploaded Python 3

File details

Details for the file fparser-0.2.4.tar.gz.

File metadata

  • Download URL: fparser-0.2.4.tar.gz
  • Upload date:
  • Size: 449.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fparser-0.2.4.tar.gz
Algorithm Hash digest
SHA256 1bdcfd757b739e0435e249a5b2735d672b45c39b3defa6f1065336b69e77ae0f
MD5 6160454764fb59ef4449cb65510b380b
BLAKE2b-256 01bf3a2601ac8f426812bca2446af86735a85e2df7e088430322a1665578253e

See more details on using hashes here.

File details

Details for the file fparser-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: fparser-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 661.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for fparser-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a1bd198c07fdff55570b80a7b119aeafb588e9097c11e0a74ea67744a9a1a478
MD5 57d853ffc51c72a4f40a2822f23f1ced
BLAKE2b-256 311e4c11c71d4a80e680ede45a2493cb1248e52da776e6f3cca841cc57a8f69c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page