Skip to main content

Python-fortran-tool

Project description

Python-fortran-tool

This set of tools is primarily designed to be applied on the PHYEX repository. But they are normally generic enough to be used in other contexts.

The tools can be used with the command line (the pyfortool.py and pyfortool_parallel.py utilities) or as a python package. The documentation is in the doc directory and some examples are in the examples directory.

The fxtran binary is needed to use PyForTool. You can:

  • use an existing installation and make sure it can be found using your PATH variable;
  • use an existing installation providing the exact path with the '--parser' option;
  • automatically install fxtran using the INSTALL.sh script (installation method #1 below)

Prerequisites:

  • an internet connexion (with access to the github servers) is needed only for the installation of fxtran
  • python > 3.8 (but only tested with version 3.10)
  • a C compiler (tested with cc 11.4.0) to compile fxtran
  • some classical unix tools: make (for fxtran) and git

There are three installation methods, depending on your use. Methods 2 and 3 needs an external installation of fxtran (which is not covered here). On some systems, you may need to create a python virtual environment to use methods 2 and 3.

Method 1 (suitable for developpers and end users):

  • open a terminal on a system satisfying the prerequisites and enter the following commands
  • if you don't have a github ssh key or don't know what it is:

    git clone https://github.com/UMR-CNRM/pyfortool.git ./pyfortool/bin/INSTALL.sh

  • if you have a github ssh key:

    git clone git@github.com:UMR-CNRM/pyfortool.git ./pyfortool/bin/INSTALL.sh --ssh

  • then:

    source pyfortool/bin/env.sh # to set PATH and PYTHONPATH

Method 2 (suitable for developpers and end users):

  • open a terminal on a system satisfying the prerequisites and enter the following commands
  • if you don't have a github ssh key or don't know what it is:

    git clone https://github.com/UMR-CNRM/pyfortool.git

  • if you have a github ssh key:

    git clone git@github.com:UMR-CNRM/pyfortool.git

  • cd pyfortool; python3 -m pip install -e .

Method 3 (suitable for users who do not develop PyForTool):

  • open a terminal on a system satisfying the prerequisites and enter the following commands
  • python3 -m pip install pyfortool

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyfortool-0.2.0-py3-none-any.whl (112.6 kB view details)

Uploaded Python 3

File details

Details for the file pyfortool-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyfortool-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pyfortool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ecf8e8fd39e50f4c19b34209ad9905350f3ba86ac0eb97b62ef1287d6d8458d
MD5 a455fe0c53a67fb41d59879cbdeba328
BLAKE2b-256 ae0c04fc4d9c9904e99e5d10129802acf0e4275f4ccfe17e63c14deda2c036e0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page