PyFVS
Python wrappers and utilities for using the Forest Vegetation Simulator
_____ ______ __ __ _____
| __ \ | ____|\ \ / / / ____|
| |__) | _ _ | |__ \ \ / / | (____
| ___/ | | | | | __| \ \/ / \___ \
| | | |__| | | | \ / ____) |
|_| \____ | |_| \/ |______/
__/ |
|___/
Project Status
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.
| __ \ | |\ \ / / / |
| |) | _ _ | | \ \ / / | (
| / | | | | | | \ / / _ \
| | | || | | | \ / ) |
|| _ | || / |_/
/ |
|/
Documentation
Check out the AI generated documentation wiki.
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
- FVS Step API
-
Keyword Generator:
- Object oriented FVS keyword file generation
- Automates keyword file formatting and runtime handling
-
Command line interface
Variants
Not all FVS variants are currently implement. 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
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 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.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyfvs-0.3.8.tar.gz | 19.3 MB | With provenance | Details for pyfvs-0.3.8.tar.gz |
Built distributions (wheels)
Total release size: 133.3 MB
Release files / pyfvs-0.3.8.tar.gz
| Download URL | pyfvs-0.3.8.tar.gz |
|---|---|
| Size | 19.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4eda6e4e20723d11b0172eb7305712260b2fb528058a4fd4d3208a5037595338
|
|
BLAKE2b-256 checksum How to use checksums |
91efe54abf6dc6995eed05dd5681a25630b375688c1d945d0d6f388abdf27ba5
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp314-cp314-win_amd64.whl
| Download URL | pyfvs-0.3.8-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 11.7 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8d417b1bd9f1e71e9be3908b984e6d4afd5133d910d13768708f0d5b7c3d8396
|
|
BLAKE2b-256 checksum How to use checksums |
5914d62a389521a2f46eef77267d5a842e602573d877c77612de549b2f3ba199
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp314-cp314-manylinux_2_28_x86_64.whl
| Download URL | pyfvs-0.3.8-cp314-cp314-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.14 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
515a6068c7545de64af31e7d67222121c4f98c01881db8f92f9a80aed2e82b31
|
|
BLAKE2b-256 checksum How to use checksums |
68fd7651d88104a4e8c20368eed50a1d03a56da1b55ea7888c07f485bb5572a8
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp313-cp313-win_amd64.whl
| Download URL | pyfvs-0.3.8-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
a8752af8015a38413285de863add42235d227c7a6e970f0a07dc1959865f3512
|
|
BLAKE2b-256 checksum How to use checksums |
71fe0254d2814d2e829ca8e6bf8cc13eff8881b66fcf43850c95554bdcb7fc38
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp313-cp313-manylinux_2_28_x86_64.whl
| Download URL | pyfvs-0.3.8-cp313-cp313-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.13 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
9be8588ba08bd0f79af9bf60566dac38be1257d1e8f67fa205940b3b4b91b078
|
|
BLAKE2b-256 checksum How to use checksums |
b5dfff93146ca544a6b4f47986f2fef993a39b388f690e3913bbebd32c1d47a0
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp312-cp312-win_amd64.whl
| Download URL | pyfvs-0.3.8-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
40b36c89f5886164d43f0e4ca4e8df68b036bfa5d60627ffb512d8d68c5c8285
|
|
BLAKE2b-256 checksum How to use checksums |
4c10b2d6e6fd93e9a6da91fe756f24de2f97793149bf8bdf014923990f3fe248
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | pyfvs-0.3.8-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
15f986f8e3902ff280ef2a45121ccf11101b568a07ab6e0e97cf105da3b47bb8
|
|
BLAKE2b-256 checksum How to use checksums |
7b16095e5cd1208621e120be31bf6d45c1911146550b024c6011513e62e1a249
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp311-cp311-win_amd64.whl
| Download URL | pyfvs-0.3.8-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
26f9185edfc39a320b5489384851a7a8672f015ddc682b026a2312752e588f83
|
|
BLAKE2b-256 checksum How to use checksums |
3bbd3a0b40880c2c9fe4602f919d6ff814765bf0a1707deb5475caaae55e195a
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp311-cp311-manylinux_2_28_x86_64.whl
| Download URL | pyfvs-0.3.8-cp311-cp311-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.11 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
cb0de80720a6009a380ab4d86c6e7287799d418f46b04b373dcd745d5f109e14
|
|
BLAKE2b-256 checksum How to use checksums |
4807b1b01df31af75dfbb7663664e64d09275d728ccc633d05625f97555a7832
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp310-cp310-win_amd64.whl
| Download URL | pyfvs-0.3.8-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 11.3 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ba64365e7ae36e91efa500b7d982b51cda12ba219e95785f1f5a756435b0403f
|
|
BLAKE2b-256 checksum How to use checksums |
20e806e23396314c0e13e4afafc24f95a74496e485d962e1117567d3c4872abc
|
| 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 Sep 3, 2026.
Transparency logRelease files / pyfvs-0.3.8-cp310-cp310-manylinux_2_28_x86_64.whl
| Download URL | pyfvs-0.3.8-cp310-cp310-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 11.4 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d5f7acede9548d4b681516eaab3341e453b8c5b12c91d87ab54e2f35c35b55af
|
|
BLAKE2b-256 checksum How to use checksums |
55e32bdc9eac1218290f453a97a5320a1dd61fa60080b68a6d4d5a91a4984b74
|
| 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 Sep 3, 2026.
Transparency logSecurity for pyfvs 0.3.8
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.
Attestation for pyfvs-0.3.8.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 Sep 3, 2026.
Transparency logA 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.