Skip to main content

Static analysis tools for Fortran, written in pure Python

Project description

fsource - Fortran static analysis tool

Tests PyPI

fsource is a collection of tools allowing you to parse Fortran 77 through Fortran 2008 programs. It is written in pure Python and has no external dependencies.

You install fsource via pip:

$ pip install fsource

or simply download the source, since there are no external dependencies (note that you should use bin/fsource instead of fsource in this case).

fsource currently features a command line interface:

  • a parser, which takes a Fortran file and outputs an abstract syntax tree (for the definitions) allowing you to extract modules, subprograms, derived types, parameters, etc.:

    $ fsource parse FILE.f90
    
  • a line splicer and a lexer, low-level tools which split a Fortran file into a set of logical lines and tokens, respectively. This allows you to set up your parsing infrastructure on top of fsource:

    $ fsource splice FILE.f90
    $ fsource lex FILE.f90
    

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

fsource-0.4.1.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

fsource-0.4.1-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file fsource-0.4.1.tar.gz.

File metadata

  • Download URL: fsource-0.4.1.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5

File hashes

Hashes for fsource-0.4.1.tar.gz
Algorithm Hash digest
SHA256 2ec485d9b9d4171bf67384ac85fd6a12976b653e9e4b13d12c2d86a47c20572f
MD5 19801fed95549994128b4e6a31373462
BLAKE2b-256 37d39f1e3c709623530844e139168dfc84d6712ad715f9f213ac91daee592721

See more details on using hashes here.

File details

Details for the file fsource-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: fsource-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.5

File hashes

Hashes for fsource-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60fe7cbc6aba82dead885622d7e98fd2ba97c6359a9bbbd0879e2d49e98d7a79
MD5 f8999046d9507618a7ff0136cd45f4d1
BLAKE2b-256 22dd78428268bf1717b0b2839b4a3940f117f3c057898105f40e67c772187b0f

See more details on using hashes here.

Supported by

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