Skip to main content

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.

Release files for Forthon 0.10.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Forthon 0.10.10
File Size Uploaded
forthon-0.10.10.tar.gz 89.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Forthon 0.10.10
File Interpreter ABI Platform
forthon-0.10.10-py3-none-any.whl Python 3 none any Details

Total release size: 185.3 kB

Release files / forthon-0.10.10.tar.gz

Download URL forthon-0.10.10.tar.gz
Size 89.7 kB
Tags Source
SHA-256 checksum
How to use checksums
523a5b064081ba4848a685867eb2f97eeeb99b60eb59373a1c6aa7a52ff1d187
BLAKE2b-256 checksum
How to use checksums
dbd7b9dc1bdd337620c0bbc2738b81578e3193d141f1340aa6dc5c4b4ce842b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / forthon-0.10.10-py3-none-any.whl

Download URL forthon-0.10.10-py3-none-any.whl
Size 95.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e9552e4f63682b92f571854b8187a29c1c99d41258443690e247a1de140c8e1c
BLAKE2b-256 checksum
How to use checksums
6698064274b9e41132997aff6b89837dad34ad4c3d43d64e7560125d5fec7dc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

0.10.10 This release

2 release files

0.10.9

2 release files

0.10.8

2 release files

0.10.7

2 release files

0.10.6

2 release files

0.10.5

2 release files

0.10.3

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.4

2 release files

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.49

1 release file

0.8.48

1 release file

0.8.47

1 release file

0.8.46

1 release file

0.8.45

1 release file

0.8.44

1 release file

0.8.43

1 release file

0.8.41

1 release file

0.8.40

1 release file

0.8.39

1 release file

0.8.38

1 release file

0.8.37

1 release file

0.8.36

1 release file

0.8.35

1 release file

0.8.34

1 release file

0.8.33

1 release file

0.8.32

1 release file

0.8.31

1 release file

0.8.30

1 release file

0.8.29

1 release file

0.8.28

1 release file

0.8.27

1 release file

0.8.26

1 release file

0.8.25

1 release file

0.8.24

1 release file

0.8.23

1 release file

0.8.22

1 release file

0.8.21

1 release file

0.8.19

1 release file

0.8.18

1 release file

0.8.17

1 release file

0.8.16

1 release file

0.8.15

1 release file

0.8.14

1 release file

0.8.13

1 release file

0.8.11

1 release file

0.7.6

0.7.5

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page