# Flair Python Interface

**URL:** <https://fluka-forum.web.cern.ch/t/flair-python-interface/8157>\
**Category:** Flair\
**Created:** [11 February 2026 14:41 UTC](https://fluka-forum.web.cern.ch/t/flair-python-interface/8157 "2026-02-11T14:41:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-weingut](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/d/8c91f0/32.png) [@david-weingut](https://fluka-forum.web.cern.ch/u/david-weingut)\
**Post date:** [11 February 2026 14:41 UTC](https://fluka-forum.web.cern.ch/t/flair-python-interface/8157/1 "2026-02-11T14:41:03Z")

</div>

### Versions

> Please provide the used software versions.

_FLUKA_: -  
_Flair_: 3.4-5.2  
_Operating system_: Linux

### Description

> Please describe the issue. In case of reporting a bug, please provide step-by-step instructions for reproducing the error.

The Flair manual for the python API does not seem to be up-to-date as far as I can tell.

[https://flair.cern/manual/F7.2.html](https://flair.cern/manual/F7.2.html) this entry seems to suggest that there is a `Input.read(file::string)` method, however when I try to use this method or look into the code at `$FLAIR_DIR/deck/input.py` there is no read method in there. There exists a `load` method though. But that method for me returns False and does not add any cards to the Input instance because the `_load` method always returns False and this aborts the loading.

Am I missing something here?

### Input files

> Please upload all relevant files. (FLUKA input file, Flair project file, user routines, and data files)

Any file

---

<div class="post-metadata">

**Author:** ![david-weingut](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/d/8c91f0/32.png) [@david-weingut](https://fluka-forum.web.cern.ch/u/david-weingut)\
**Post date:** [11 February 2026 15:05 UTC](https://fluka-forum.web.cern.ch/t/flair-python-interface/8157/3 "2026-02-11T15:05:47Z")

</div>

In the meantime I discovered that I need to run `import fluka` and `fluka.init()`, which allows both `Project.load("filename.flair")` and `fluka.Fluka("filename.inp")` to work.  
Therefore, at this point I would only ask for maybe adding a small hint about this to the manual?
