fsource - Fortran static analysis tool
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 wrapper, which builds on the Fortran parser to extract module variables, types and subroutines which can be interfaced with C and generates header files for them:
$ fsource wrap 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
Metadata
Release files for fsource 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fsource-0.5.tar.gz | 30.9 kB | Without provenance | Details for fsource-0.5.tar.gz |
Release files / fsource-0.5.tar.gz
| Download URL | fsource-0.5.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86d03a3b57d558e59e2803a2e125c7c23d447fcdcc3def00b331faca61ae3626
|
|
BLAKE2b-256 checksum How to use checksums |
fbfbb4256e013fc4d929f183929bff6eaed0b0467332a18d6e5ac9637de7e910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Security for fsource 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.