Skip to main content

PyFVS

Python wrappers and utilities for using the Forest Vegetation Simulator

  _____            ______ __      __  _____ 
 |  __ \          |  ____|\ \    / / / ____|
 | |__) | _    _  | |__    \ \  / / | (____  
 |  ___/ | |  | | |  __|    \ \/ /   \___  \ 
 | |     | |__| | | |        \  /    ____) |
 |_|      \____ | |_|         \/    |______/ 
            __/ |                            
           |___/

Project Status

  • GitHub Tag

  • Github Actions

  • PyPI-Server

  • Monthly Downloads

PyFVS wraps a fork of the official FVS code with minimal, non-core, modifications.

PyFVS currently supports Windows and Linux using the GCC family of compilers.

Disclaimer PyFVS is an independent project. It is not affiliated with or supported by the USFS staff or service center.

Features

  • FVS Class

    • FVS Step API
      • Growth cycle interation
      • Within-cycle blocking callbacks for fine-grained inspection and sub-model interaction
    • Initialize inventory trees from arrays and dataframes
    • Runtime interaction with FVS internal arrays and variables
      • Facilitates out-of-core event logic
      • Sub-cycle analysis of model components and data
  • Keyword Generator:

    • Object oriented FVS keyword file generation
    • Automates keyword file formatting and runtime handling
  • Command line interface

Variants

Currently PyFVS supports a subset of FVS variants. More will be added as time allows.

  • PN - Pacific Northwest Coast
  • WC - Westside Cascades
  • SO - South Central Oregon and Northeast California
  • OP - ORGANON Pacific Northwest
  • OC - ORGANON Southwest
  • EC - East Cascades
  • CA - Inland California and Southern Cascades
  • NC - Klamath Mountains (Northern California)
  • BM - Blue Mountains
  • IE - Inland Empire (Northern Idaho)
  • CI - Central Idaho
  • AK - Alaska
  • WS - Western Sierra Nevada

Parity with Official Binaries

PyFVS is designed to be consistent with the official FVS binaries. Before a release all variants are run through a series of unit test to ensure functionality and equivalence with official FVS binaries.

  • Variant specific unit tests from official FVS releases
  • Additional unit tests for specific functionality

Documentation

Check out the AI generated documentation wiki.

Installation

PyFVS is available through PyPI for Windows and Linux. In addition, packages for OS X are available through conda-forge.

PyPI

>python -m pip install pyfvs

or with Pixi

>pixi add --pypi pyfvs

conda-forge

NOTE: Releases to conda-forge may lag behind PyPI

>conda install pyfvs

or with Pixi

pixi add pyfvs

Usage

NOTE: The PyFVS API is beta. Names and arguments may change as features evolve. Deprecation warnings will be raised when possible. However, there is guarantee of backward compatibility.

Command Line

>pyfvs --help
>pyfvs list-variants
>pyfvs run PN -k path/to/keywords.key

Run a simulation using an existing keyword file and treelist

from pyfvs import fvs
f = fvs.FVS('PN')
kwds = 'path/to/keywords.key'
f.init_projection(kwds)

# Iterate through the simulation cycles
for cycle in f:
    print(f.year)
    # Do something interesting

# Closeout the simulation
f.end_projection()

Genarate keywords for a bareground simulation

from pyfvs import fvs,keywords
f = fvs.FVS('PN')
# Setup the KeywordSet for the simulation
kw = f.keywords
# Grow for 20 periods
kw += keywords.NUMCYCLE(20)
# Add default STDINFO keyword
kw += keywords.STDINFO()
# This is a bareground simulation, so no treelist
kw += keywords.NOTREES()
# Initialize the ESTAB keywordset
est = keywords.ESTAB()
# Add 350 planted DF seedlings to the ESTAB
est += keywords.PLANT(1,'DF',350)
# Add the ESTAB keywordset to the simulation
kw += est
# Execute the simulation
f.grow_all()
# Print the summary table
print(f.summary)

Development

Clone the 'dev' branch, including all submodules

git clone --branch dev --recurse-submodules https://github.com/forest-modeling/PyFVS.git

For local development a Pixi environment is included in pyproject.toml.

# Install Pixi on Linux
curl -fsSL https://pixi.sh/install.sh | sh
# Install Pixi on Windows
powershell -ExecutionPolicy Bypass -c "irm -useb https://pixi.sh/install.ps1 | iex"

Initialize the environment in the root of the project

pixi init --pyproject
pixi shell

Local Development Build

The Pixi environment includes GCC and GFortran compilers from Conda-Forge. Use the included Pixi task to install PyFVS in the current environment in development mode. Pass an optional comma separated list of lower case variant abbreviations to restrict the build to target variants. Additionally, an optional build mode can be passed, debug or release.

pixi run dev "pn,wc" debug

Development mode in Pixi is consistent with Pip. Additionally, PyFVS is built with Meson and Meson-Python. Changes to source files, Python or Fortran, will trigger a recompile on the next import. Alternatively, you can trigger a build by calling the dev task again.

Run Tests

pixi run test

Build Wheels

Wheel files for the current system will be placed in the dist folder along with an sdist source archive.

pixi run build "pn,wc"

Metadata

Release files for pyfvs 0.3.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfvs 0.3.10
File Size Uploaded Provenance Actions
pyfvs-0.3.10.tar.gz 19.3 MB With provenance Details for pyfvs-0.3.10.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyfvs 0.3.10
File Actions
pyfvs-0.3.10-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for pyfvs-0.3.10-cp314-cp314-win_amd64.whl
pyfvs-0.3.10-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for pyfvs-0.3.10-cp314-cp314-manylinux_2_28_x86_64.whl
pyfvs-0.3.10-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for pyfvs-0.3.10-cp313-cp313-win_amd64.whl
pyfvs-0.3.10-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for pyfvs-0.3.10-cp313-cp313-manylinux_2_28_x86_64.whl
pyfvs-0.3.10-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pyfvs-0.3.10-cp312-cp312-win_amd64.whl
pyfvs-0.3.10-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for pyfvs-0.3.10-cp312-cp312-manylinux_2_28_x86_64.whl
pyfvs-0.3.10-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pyfvs-0.3.10-cp311-cp311-win_amd64.whl
pyfvs-0.3.10-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for pyfvs-0.3.10-cp311-cp311-manylinux_2_28_x86_64.whl
pyfvs-0.3.10-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pyfvs-0.3.10-cp310-cp310-win_amd64.whl
pyfvs-0.3.10-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for pyfvs-0.3.10-cp310-cp310-manylinux_2_28_x86_64.whl

Total release size: 381.0 MB

Release files / pyfvs-0.3.10.tar.gz

Download URL pyfvs-0.3.10.tar.gz
Size 19.3 MB
Tags Source
SHA-256 checksum
How to use checksums
1dcbd3720228e08c73bbc52e4a51d718fb5a87d5bc7ff0526223a214085ca1b4
BLAKE2b-256 checksum
How to use checksums
015797a47215294b8f3f7eea2182899dfc3fb409218316523244f9f1b13ceb70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp314-cp314-win_amd64.whl

Download URL pyfvs-0.3.10-cp314-cp314-win_amd64.whl
Size 38.2 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
665ea3877629053aee34d531a3ea4e141490c9ca51a69e30cfae96d81d6b8bdf
BLAKE2b-256 checksum
How to use checksums
b9b4a1c4c1f9d650b085b1aefb5df8b5c1a2361f3fe8919c6f3c3a116ed3af02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL pyfvs-0.3.10-cp314-cp314-manylinux_2_28_x86_64.whl
Size 35.0 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
15b2918d789b968fff405d315fbf4141748d9dda9583fc94121379d4c6f5ac5a
BLAKE2b-256 checksum
How to use checksums
5e0bbf4627e76cacd418d022501ee100273ce3cd5714dfb92611ac8a0e446082
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp313-cp313-win_amd64.whl

Download URL pyfvs-0.3.10-cp313-cp313-win_amd64.whl
Size 37.2 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
042fb4804a94a1861c99ba14733512d20209c87c8db3623190b498e09d5880a0
BLAKE2b-256 checksum
How to use checksums
8957e48c8331f926e5d65cecdfb27ecc51e0870da3462de53e037c3753738d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL pyfvs-0.3.10-cp313-cp313-manylinux_2_28_x86_64.whl
Size 35.0 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a9ae7ed34fa0e05c3fdfb5cfd9aef46a91e62d879b329e4627ab85accc9edbae
BLAKE2b-256 checksum
How to use checksums
2a7c4b62e7a1ce1f6aac04a3e190344392c7ea909faac47adc227eab250fa3a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp312-cp312-win_amd64.whl

Download URL pyfvs-0.3.10-cp312-cp312-win_amd64.whl
Size 37.2 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
a22ffe2d22cd55ba800481c4ff4a396c20b8006b0fd1d90594a16c3fe8d803c1
BLAKE2b-256 checksum
How to use checksums
45bdb00c2bddf4228921bd006a64c5403d16a65609bc5ac33fcd3b8a1d46bebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL pyfvs-0.3.10-cp312-cp312-manylinux_2_28_x86_64.whl
Size 35.0 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
98da99b0c537063bebc9b1fd24f888fbaad8c2fa514053b2b5c1c0d8f580e390
BLAKE2b-256 checksum
How to use checksums
7e4bbd587fd54eb7d154e8a9323eebf9fc277277499b816574cb4ba14ca8be44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp311-cp311-win_amd64.whl

Download URL pyfvs-0.3.10-cp311-cp311-win_amd64.whl
Size 37.2 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
61afbf460d24be0694c6d9abb088b9abb3665abf346879915f93b53180e29162
BLAKE2b-256 checksum
How to use checksums
f998d06aafd555dae30d14bd569cbf10df35fc2f3b813bb9c47f540544ac469e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL pyfvs-0.3.10-cp311-cp311-manylinux_2_28_x86_64.whl
Size 35.0 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
45be361404a7fbd239124975649eb6a8d64806acf0628fd8e275d392a1d0282d
BLAKE2b-256 checksum
How to use checksums
9a5db9d5be5d2008543533a503e52375ce0bc802773e829c1b4181f1a592e729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp310-cp310-win_amd64.whl

Download URL pyfvs-0.3.10-cp310-cp310-win_amd64.whl
Size 37.2 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
e306a541ff711b37df97d1902a424d87f5b8d351b2691399364da4addf3d4567
BLAKE2b-256 checksum
How to use checksums
75fe26317156617af32637b1fd389d0a6c63a3782f4c03a65834451bd2d9ef3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Release files / pyfvs-0.3.10-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL pyfvs-0.3.10-cp310-cp310-manylinux_2_28_x86_64.whl
Size 35.0 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
67b57cc5d20f62136de4ab7d3835e1873513516b35f60110223ddb86d5457c84
BLAKE2b-256 checksum
How to use checksums
801ab5c5db4cae2a47baf9020b933146863c6b5d98fc0185c769613b123ef92d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

Security for pyfvs 0.3.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestation for pyfvs-0.3.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page