ANNOUNCEMENT: Fortran to Python Interface Generator, 2nd Rel.

Pearu Peterson pearu at ioc.ee
Tue Sep 12 12:12:59 EDT 2000


FPIG - Fortran to Python Interface Generator

I am pleased to announce the second public release of f2py
(version 2.264):

     http://cens.ioc.ee/projects/f2py2e/

f2py is a command line tool for binding Python and Fortran codes.  It
scans Fortran 77/90/95 codes and generates a Python C/API module that
makes it possible to call Fortran routines from Python.  No Fortran or
C expertise is required for using this tool.

Features include:

   *** All basic Fortran types are supported:
         integer[ | *1 | *2 | *4 | *8 ], logical[ | *1 | *2 | *4 | *8 ], 
         character[ | *(*) | *1 | *2 | *3 | ... ]
         real[ | *4 | *8 | *16 ], double precision,
         complex[ | *8 | *16 | *32 ]

   *** Multi-dimensional arrays of (almost) all basic types.
       Dimension specifications: 
		 <dim> | <start>:<end> | * | :

   *** Supported attributes:
         intent([ in | inout | out | hide | in,out | inout,out ])
	 dimension(<dimspec>)
	 depend([<names>])
	 check([<C-booleanexpr>])
	 note(<LaTeX text>)
	 optional, required, external

   *** Calling Fortran 77/90/95 subroutines and functions.  Also
       Fortran 90/95 module routines.  Internal initialization of
       optional arguments.

   *** Accessing COMMON blocks from Python.  Accessing Fortran 90/95
       module data coming soon.

   *** Call-back functions: calling Python functions from Fortran with
       very flexible hooks.

   *** In Python, arguments of the interfaced functions may be of
       different type - necessary type conversations are done
       internally in C level.

   *** Automatically generates documentation (__doc__,LaTeX) for
       interface functions.

   *** Automatically generates signature files --- user has full
       control over the interface constructions.  Automatically
       detects the signatures of call-back functions, solves argument
       dependencies, etc.

   *** Automatically generates Makefile for compiling Fortran and C
       codes and linking them to a shared module. Many compilers are
       supported: gcc, Compaq Fortran, VAST/f90 Fortran, Absoft
       F77/F90, MIPSpro 7 Compilers, etc.  Platforms: Intel/Alpha
       Linux, HP-UX, IRIX64.

   *** Complete User's Guide in various formats (html,ps,pdf,dvi).

   *** f2py users list is available for support, feedback, etc.

More information about f2py, see 

     http://cens.ioc.ee/projects/f2py2e/

f2py is released under the LGPL license.

Sincerely,
     Pearu Peterson <pearu at ioc.ee>
     September 12, 2000

<P><A HREF="http://cens.ioc.ee/projects/f2py2e/">f2py 2.264</A> - The
Fortran to Python Interface Generator (12-Sep-00)





More information about the Python-list mailing list