Registry / data / fckitlib

fckitlib

JSON →
library0.14.2.19pypypi✓ verified 84d ago

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 fckitlib
INSTALL
IMPORT
SIG · FCKITLIB
F
fckitlib
datapythonv0.14.2.19
Install
2.4s avg
Import
Disk
75MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.14.2.19 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.920 runs
build_error
glibc
py 3.103.920 runs
installs and imports cleanly · install 2.4s · import 0.000s · 43MB
75MB installed
● package 75MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

findlibs_dependencies
from fckitlib import findlibs_dependencies
from fckit.log import Logger

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.

from fckit.log import Logger # Initialize a pure Python-side logger provided by fckitlib # In a full Fortran-interfaced application, this logger could # be configured to be accessible from the Fortran side as well. logger = Logger("my_fckit_app") logger.info("fckitlib Logger initialized successfully!") logger.warning("This is a Python-side log message.") # Example of attempting to load the fckitlib Fortran example module # This part is conceptual; actual Fortran interaction requires fckitlib # to be built with Fortran support and correctly linked. try: from fckit import fclib print(f"\nfckitlib fclib module loaded. Fortran version: {fclib.version_str()}") # Further interaction with Fortran functions/types from fclib would go here except ImportError: print("\nWarning: fckit.fclib module not found. It might not be built or installed correctly with Fortran support.") except Exception as e: print(f"\nError loading fckit.fclib: {e}")
Debug
Known issues
breakingThe signature of `fckit_c_call_fortran` changed, which is a breaking change for users implementing custom Fortran wrappers or C interfaces.
fix
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.
affects: >=0.13.0
breakingThe `fckit.cxx` module was renamed to `fckit.cpp` to better reflect its purpose and avoid confusion.
fix
Update all import statements and references from `fckit.cxx` to `fckit.cpp` in your Python code.
affects: >=0.11.0
breakingThe `string_ptr` type was moved from `fckit.fclib.types` to `fckit.types` for broader applicability.
fix
Change import paths for `string_ptr` from `from fckit.fclib.types import string_ptr` to `from fckit.types import string_ptr`.
affects: >=0.12.0
gotchaInstallation and runtime of `fckitlib` often require a Fortran compiler (e.g., gfortran) and specific environment setup (e.g., `LD_LIBRARY_PATH` on Linux/macOS, `PATH` on Windows) for linked Fortran libraries to be found. Compilation issues are common if the environment is not correctly configured.
fix
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.
affects: all
Upgrade
Version history
0.14.2.19latest on PyPI · released Apr 1, 2026
Audit
Dependencies
numpyrequiredRequired for array handling and numerical operations, especially when interfacing with Fortran arrays.
Agent activity
6 hits · last 30 days
node
6
Resources
fckitlib — pip install fckitlib · libregistry