Skip to main content

Fortran95 wrapper/code development package

Project description

Forthon

Supported Python versions PyPI version PyPI downloads PyPI license

Forthon generates links between Fortran95 and Python. Python is a high level, object oriented, interactive and scripting language that allows a flexible and versatile interface to computational tools. The Forthon package generates the necessary wrapping code which allows access to the Fortran database and to the Fortran subroutines and functions. This provides a development package where the computationally intensive parts of a code can be written in efficient Fortran, and the high level controlling code can be written in the much more versatile Python language.

Installing

Requires python versions 3.9 or higher and the numpy package.

To install from the source,

python -m pip install .

Write permission is required for the python library site-packages directory.

Alternatively, it can be installed from PyPI, as in "pip install Forthon".

See the examples, which act as the documentation.

Example

An example of how to use Forthon can be found in the simpleexample subdirectory. Go into that directory and run "make". Forthon needs to have been installed. This will build and install the example. Then run

python run_forthon_example.py

This will produce output like this:

Before setsqrt, x = 0.0

After setsqrt, x = 3.1622776601683795

A more extensive example can be found in the example subdirectory. It can be built and run with the "make" command.

Release notes

See Release_Notes

License

See License.txt for license information.

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

forthon-0.10.10.tar.gz (89.7 kB view details)

Uploaded Source

Built Distribution

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

forthon-0.10.10-py3-none-any.whl (95.7 kB view details)

Uploaded Python 3

File details

Details for the file forthon-0.10.10.tar.gz.

File metadata

  • Download URL: forthon-0.10.10.tar.gz
  • Upload date:
  • Size: 89.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for forthon-0.10.10.tar.gz
Algorithm Hash digest
SHA256 523a5b064081ba4848a685867eb2f97eeeb99b60eb59373a1c6aa7a52ff1d187
MD5 180c32ebb4fed8c39afa8fb81b08535a
BLAKE2b-256 dbd7b9dc1bdd337620c0bbc2738b81578e3193d141f1340aa6dc5c4b4ce842b4

See more details on using hashes here.

File details

Details for the file forthon-0.10.10-py3-none-any.whl.

File metadata

  • Download URL: forthon-0.10.10-py3-none-any.whl
  • Upload date:
  • Size: 95.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for forthon-0.10.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e9552e4f63682b92f571854b8187a29c1c99d41258443690e247a1de140c8e1c
MD5 70906caf31003697d38928e97e2afc33
BLAKE2b-256 6698064274b9e41132997aff6b89837dad34ad4c3d43d64e7560125d5fec7dc7

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