Fwrap v0.1.0
I am pleased to announce the first release of Fwrap v0.1.0, a utility for
wrapping Fortran code in C, Cython and Python. Fwrap focuses on supporting the
features of Fortran 90/95, but will work with most well-behaved Fortran 77
code, too.
Fwrap is BSD licensed.
Fwrap is beta-level software; all public APIs and commandline options are
subject to change.
Features in the v0.1.0 release:
- Fortran source parsing and automatic wrapper generation;
- Top-level (non-module) Fortran subroutines and functions;
- Supports all intrinsic types (integer, real, complex, logical &
character); - Default and non-default intrinsic types properly wrapped;
- Scalar and array arguments supported;
- Supports assumed-shape, assumed-size, and explicit-shape array arguments;
- Intent ‘in’, ‘inout’, ‘out’ and no intent arguments supported;
- Automatic docstring generation for extension module and functions;
- Wrappers are portable w.r.t. both Fortran and C compilers.
Upcoming features:
- “Use” statement support;
- Python & Cython callback support;
- Kind-parameters in type specification;
- Module-level data and parameters;
- User-derived types.
See the README and documentation for requirements, compiler support, etc.
Download
You can get fwrap from pypi or from its sourceforge download page:
https://sourceforge.net/projects/fwrap/files/
More Info
Project homepage, including links to wiki & bug tracker:
Mailing list:
http://groups.google.com/group/fwrap-users
Development blog:
August 10, 2010 at 11:06 am |
When do you anticipate support for:
* “Use” statement support;
* Kind-parameters in type specification;
* Module-level data and parameters;
* User-derived types.
August 10, 2010 at 11:54 am |
(1) “Use” statements are next on the list; certainly by v0.2.
(2) Kind-type-params depend on use statements, and will work once use statements work, so v0.2.
(3) Module-level parameters and variables will be soon after that; module-level common blocks are more uncertain.
User-derived types: likely v0.3. It’s mapped out but depends on (1) and (2) first, I anticipate a few dark corners.
August 9, 2010 at 3:13 am |
Hi Kurt,
I’m planning to use fwrap for a project I’m starting now, so glad to have a release! Looking forward to support for modules. Thanks for fwrap.
-David Ketcheson
August 8, 2010 at 4:54 am |
How does it refers to f2py? What are pros and cons of Fwrap vs f2py?
August 8, 2010 at 12:55 pm |
I’ll be putting up a post on this soon — please keep an eye on the blog, thanks.