dssatlab
dssatlab aims to be a Python interface to the DSSAT-CSM. The goal is to let users work with DSSAT from Python and use the wider Python ecosystem (data, analysis, plotting, notebooks) to make DSSAT easier and more powerful to use.
Installation
pip install dssatlab
Requires Python 3.10 or newer. To upgrade later: pip install --upgrade dssatlab.
Current stage
The project can get a working DSSAT into Python and run one existing experiment file. This part is done:
- Find an existing DSSAT-CSM installation on Windows and Linux (including Google Colab)
- Build DSSAT-CSM from the official release on Linux and Colab
- Run one existing FileX
import dssatlab as dl
dssat = dl.connect() # path to the DSSAT executable
result = dl.run("UFGA8201.MZX") # all treatments
result = dl.run("UFGA8201.MZX", treatment=2) # one treatment
print(result.run_dir, result.outputs)
How a run works:
- DSSAT runs in the FileX's own folder, so weather and soil files beside the FileX are found. Its output files are then moved into a new
dssat_run_<date>folder beside the FileX, and your FileX folder is left as it was. - The FileX filename can be at most 12 characters, including the extension (DSSAT's own limit), for example
UFGA8201.MZX. - A failed run raises
DSSATRunErrorwith the command, the end of DSSAT's console output and the start ofERROR.OUT. The run folder is kept so you can look inside. run()returns the files DSSAT wrote and does not read them. Reading input or output files, building experiments and plotting are not built yet.
Upgrading from 0.1.x on Linux or Colab: a DSSAT built by 0.1.x cannot run simulations, so the first dl.install() (or dl.connect() with consent) rebuilds it once.
Metadata
Release files for dssatlab 0.2.0
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 |
|---|---|---|---|---|
| dssatlab-0.2.0.tar.gz | 20.8 kB | With provenance | Details for dssatlab-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dssatlab-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for dssatlab-0.2.0-py3-none-any.whl |
Total release size: 32.9 kB
Release files / dssatlab-0.2.0.tar.gz
| Download URL | dssatlab-0.2.0.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7efee4b398aaf393cfc115bd48e8d14835722ebf8ac5d6f00bc0b71568e3425e
|
|
BLAKE2b-256 checksum How to use checksums |
4a8196e7a4670dfdf9e0666c57ffa82ccb84acd48eca859c24f61f8ed6b63b69
|
| 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 29, 2026.
Transparency logRelease files / dssatlab-0.2.0-py3-none-any.whl
| Download URL | dssatlab-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ebf50b1a36c917de34f0025f8f62f6fef3641dc646ea709c8d62679e86c348e
|
|
BLAKE2b-256 checksum How to use checksums |
1b0d590f0f5c69351a9e1202e776856ac177c38a830e3752a68a58d2372c1e3d
|
| 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 29, 2026.
Transparency logSecurity for dssatlab 0.2.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for dssatlab-0.2.0.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 29, 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.