# Fortran packages list

**URL:** <https://fortran-lang.discourse.group/t/fortran-packages-list/7435>\
**Category:** Announcements\
**Created:** [February 20, 2024, 3:01am UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435 "2024-02-20T03:01:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [February 20, 2024, 3:01am UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/1 "2024-02-20T03:01:21Z")

</div>

I created a list of almost 300 projects that can be built with the Fortran Package Manager by searching my [list](https://github.com/Beliavsky/Fortran-code-on-GitHub) of Fortran codes on GitHub for fpm.toml files with a

> **Python script**
>
> import os  
> os.environ[‘PYTHONIOENCODING’] = ‘utf-8’  
> import re  
> import requests  
> import time  
> t0 = time.time()
> 
> def check\_url\_exists(url):  
> try:  
> # Make a HEAD request to get headers and avoid downloading the content  
> response = requests.head(url, allow\_redirects=True)  
> # Check if the response status code is in the range of 200-299 (success)  
> if response.status\_code in range(200, 300):  
> return True, response.status\_code  
> else:  
> return False, response.status\_code  
> except requests.RequestException as e:  
> # Handle exceptions like network errors, invalid URLs, etc.  
> return False, str(e)
> 
> infile = “fcog\_readme\_20240204.md” # version from 2024-02-04  
> max\_lines = 10\*\*6  
> debug = False  
> with open(infile, “r”, encoding=“utf-8”) as fp:  
> for i, text in enumerate(fp):  
> if i \> max\_lines:  
> break  
> if text.startswith(“_“) or text.startswith(”##"): # category marker  
> print(text)  
> continue  
> # text in parentheses after first after first set of brackets  
> match = re.search(r’[._?]((.\*?))', text)  
> # Extract the match, if it exists  
> extracted\_text = match.group(1) if match else None  
> if extracted\_text:  
> if debug:  
> print(”\n", i)  
> print(text.strip())  
> print(extracted\_text)  
> fpm\_link = extracted\_text + “/blob/master/fpm.toml”  
> exists, status\_or\_error = check\_url\_exists(fpm\_link)  
> if exists:  
> try:  
> print(text)  
> except UnicodeEncodeError as e:  
> # Handle the error: for example, print a placeholder text or encode the text in ‘utf-8’ and print  
> print("An encoding error occurred: ", e)  
> if debug:  
> print(fpm\_link)  
> print(“time elapsed (s):”, “%0.2f”%(time.time() - t0))

There are lots of FPM projects for “utilities” and numerical methods, and few or zero in scientific domains such as Climate & Weather or Earth Science. Codes in those domains may be large and not be entirely in Fortran, which could be preventing FPM use. Please submit PRs or issues for missing FPM projects. The Python code reading the markdown file of the broader list does have trouble with names such as Ondřej Čertík 🙂 and Jiří Fürst, even though the code has lines such as

```auto
import os
os.environ['PYTHONIOENCODING'] = 'utf-8'
...
with open(infile, "r", encoding="utf-8") as fp

```

> **[GitHub - Beliavsky/Fortran-packages-list: List of projects that can be built...](https://github.com/Beliavsky/Fortran-packages-list)**
>
> List of projects that can be built with the Fortran Package Manager - Beliavsky/Fortran-packages-list

---

<div class="post-metadata">

**Author:** ![davidpfister](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/davidpfister/32/3949_2.png) [@davidpfister](https://fortran-lang.discourse.group/u/davidpfister)\
**Post date:** [February 20, 2024, 9:28am UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/2 "2024-02-20T09:28:11Z")

</div>

fpm is a great tool. I really enjoy the simplicity and I use it occasionally to check that my code runs with different compilers (gfortran and ifort mainly). I almost never use it as a package manager though, but rather as a build system.

> [@Beliavsky](#):
>
> There are lots of FPM projects for “utilities” and numerical methods, and few or zero in scientific domains such as Climate & Weather or Earth Science. Codes in those domains may be large and not be entirely in Fortran, which could be preventing FPM use. Please submit PRs or issues for missing FPM projects. The Python code reading the markdown file of the broader list does have trouble with names such as Ondřej Čertík 🙂 and Jiří Fürst, even though the code has lines such as

From my own experience, there are few limitations with fpm today that makes it unusable for large projects. I have a large project (hundreds of files), organized in multiple libraries (~100) in a big monorepo:

- On Windows, fpm cannot build projects with too many files ([fpm fails at building projects with too many files · Issue #991 · fortran-lang/fpm · GitHub](https://github.com/fortran-lang/fpm/issues/991)).
- Last time I checked, fpm cannot build dll ([[fpm] can fpm be used to build a dynamic link library? - #4 by hkvzjal](https://fortran-lang.discourse.group/t/fpm-can-fpm-be-used-to-build-a-dynamic-link-library/5722/4))
- I did not find a way to link easily local dependencies and other projects that are not in the same repo/folder.

So I keep using it for small test programs, because I really think it’s a great tool. And I am looking forward to the new versions and seeing these issues resolved with time.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [February 20, 2024, 8:14pm UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/3 "2024-02-20T20:14:51Z")

</div>

An amazing blog article about packages and registries:

> **[When "Everything" Becomes Too Much: The npm Package Chaos of 2024 - Socket](https://socket.dev/blog/when-everything-becomes-too-much)**
>
> An NPM user named PatrickJS launched a troll campaign with a package called "everything," which depends on all public npm packages.

Or what we should avoid…

---

<div class="post-metadata">

**Author:** ![manuel.arenaz](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/manuel.arenaz/32/3217_2.png) [@manuel.arenaz](https://fortran-lang.discourse.group/u/manuel.arenaz)\
**Post date:** [March 13, 2024, 11:11pm UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/4 "2024-03-13T23:11:00Z")

</div>

I find your list of fortran codes grouped by field/area really interesting. I searched the list looking for the ICON fortran package, bu did not find it (appologies if I missed the entry and it is in the list):

> **[icon / icon-model · GitLab](https://gitlab.dkrz.de/icon/icon-model)**
>
> DKRZ Gitlab specifications

Are you interested in growing your list? Should we suggest fortran packages to be added?

Let me know your thoughts!

---

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [March 13, 2024, 11:35pm UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/5 "2024-03-13T23:35:24Z")

</div>

The package you mentioned is on GitLab, but my list is restricted to GitHub, just to save me time.

---

<div class="post-metadata">

**Author:** ![urbanjost](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@urbanjost](https://fortran-lang.discourse.group/u/urbanjost)\
**Post date:** [March 14, 2024, 2:49pm UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/6 "2024-03-14T14:49:10Z")

</div>

Would it save time to query the topics on the github site and possibly use those to auto-categorize some of the sites? I do not know how much attention everyone pays to their topics on their repositories but even if your list flagged whether their topics included “[fortran-package-manager · GitHub Topics · GitHub](https://github.com/topics/fortran-package-manager)” the “fortran-package-manager” topic would be a nice addition to your list for me.

Are there recommendations for the Fortran community on github on what topics to use that are Fortran-related? A lot of sites do not even seem to set the topics. When sites do I find them quite useful myself.

I just picked a basic topic like date and time and all four entries in your list had fpm.toml files but three did not have a topic of “fortran-package-manager” which would make it much easier for someone to find via [fortran-package-manager · GitHub Topics · GitHub](https://github.com/topics/fortran-package-manager) at least until the fpm registry is production. I would encourage anyone with an fpm(1) package on github to share to add that topic to their repository.

I have found a good number of times that the fact the github topics are clickable does not seem to be well known. Everyone using fpm(1) should browse that topic list at least once if only to appreciate all the nice eye-candy that has been created. It has the effect of making the list look much more alive and up-to-date to me. I think that is the most eye-appealing list related to Fortran.

PS: Huge fan of your list @Beliavsky ; by the way.

---

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [March 5, 2025, 8:58pm UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/7 "2025-03-05T20:58:17Z")

</div>

I have updated the [Fortran-packages-list](https://github.com/Beliavsky/Fortran-packages-list), which is the subset of my code list that works with FPM. There are now almost 400 packages, compared to almost 300 in Feb 2024.

---

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [March 6, 2025, 2:20am UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/8 "2025-03-06T02:20:39Z")

</div>

I made [github.io](http://github.io) sites out of my lists of Fortran tools, codes, and books and link to them [here](https://beliavsky.github.io/).

---

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [March 6, 2025, 7:18am UTC](https://fortran-lang.discourse.group/t/fortran-packages-list/7435/9 "2025-03-06T07:18:29Z")

</div>

@Beliavsky beautiful, great job!
