fckitlib is a Python library designed to build Python modules on top of existing Fortran codebases. It provides utilities for seamless argument passing, handling Fortran derived types and allocatable arrays, and logging within Fortran components. It is primarily used in scientific computing, particularly with models developed by ECMWF. The current version is 0.14.2.19, with active development and frequent releases (multiple per year), typically supporting Python 3.7+.
pip install fckitlibVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates initializing `fckitlib`'s pure Python-side logger. It also includes a conceptual example of loading the `fclib` Fortran example module, which requires `fckitlib` to be built with Fortran support and correctly installed, allowing Python to interface with compiled Fortran functions and types.
Review the `CHANGELOG.md` and `fckitlib` C API documentation. Update any custom C interfaces or Fortran wrappers to match the new `fckit_c_call_fortran` signature.
Update all import statements and references from `fckit.cxx` to `fckit.cpp` in your Python code.
Change import paths for `string_ptr` from `from fckit.fclib.types import string_ptr` to `from fckit.types import string_ptr`.
Ensure a compatible Fortran compiler is installed and accessible. Consult the `fckitlib` documentation and your operating system's guidelines for setting up shared library paths, especially when building from source or linking to external Fortran libraries.