dssatlab
DSSATLab 0.1.0 provides basic environment diagnostics for Python users preparing to work with DSSAT-CSM. It reports the operating system, machine architecture, and Python version with zero runtime dependencies. Requires Python 3.10 or newer.
Install and use
python -m pip install dssatlab
import dssatlab
info = dssatlab.detect()
print(info)
print(info.os_name)
Example output on Linux:
EnvironmentInfo(os_name='linux', architecture='x86_64', python_version='3.12.10')
linux
detect() returns an immutable EnvironmentInfo dataclass:
| Field | Meaning |
|---|---|
os_name |
Lowercase OS name, such as windows, linux, or darwin (macOS). |
architecture |
Machine architecture as reported by Python, such as AMD64, x86_64, or arm64. |
python_version |
Version of the running Python interpreter. |
Unavailable OS or architecture values are reported as unknown. Importing the
package and calling detect() do not prompt, download, or change files.
This first release only reports the Python environment. DSSAT executable discovery, installation, connection, Colab detection, and simulation support are not implemented. No DSSAT software or data is bundled.
Source and development
src/dssatlab/
__init__.py # Public exports
core.py # EnvironmentInfo and detect()
tests/
test_detect.py # OS normalization and unknown-platform cases
pyproject.toml # Package metadata and development dependencies
.github/workflows/workflow.yml
README.md
LICENSE
.gitignore
python -m pip install -e '.[dev]'
python -m pytest
python -m build
python -m twine check dist/*
Release
For a packaging check on GitHub, open Actions > Publish to PyPI > Run workflow
and choose master, leaving Publish the package to PyPI unchecked. This runs
tests, builds and validates the wheel and source archive, and saves them as an
artifact. To retry a failed upload using updated workflow configuration, run
the workflow with Publish the package to PyPI checked. This publishes the
version in the selected source after all checks pass; it does not create a tag.
To publish, update version in pyproject.toml, pass the tests and build checks,
and commit the source. Publish a GitHub release using a new matching tag on that
commit: version 0.1.0 uses tag v0.1.0. Publishing the release starts the PyPI
workflow; saving a draft or pushing a tag alone does not. Development versions
(.dev) are currently blocked by the workflow.
The PyPI Trusted Publisher uses owner AbdelrahmanAmr3, repository dssatlab,
workflow workflow.yml, and environment pypi. No API token is required.
Metadata
Release files for dssatlab 0.1.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.1.0.tar.gz | 4.3 kB | With provenance | Details for dssatlab-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dssatlab-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dssatlab-0.1.0-py3-none-any.whl |
Total release size: 8.6 kB
Release files / dssatlab-0.1.0.tar.gz
| Download URL | dssatlab-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33d192d046eb9c9ecf1ad19a243804fa5114822d30321fed84a46655537ff18a
|
|
BLAKE2b-256 checksum How to use checksums |
f9cbf554fb080d298b2cb2dfa0a226c8c25a1617b2cfbdb2004818960af78ec2
|
| 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 28, 2026.
Transparency logRelease files / dssatlab-0.1.0-py3-none-any.whl
| Download URL | dssatlab-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f8a11fa6a15adb08014362da1d5bc5451a0eced47ceb7dac2445530fc60b3af
|
|
BLAKE2b-256 checksum How to use checksums |
83a5132413bf706558aa9ef77ee5de02b8427905078f3abb7f48281d3e1d4c1c
|
| 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 28, 2026.
Transparency logSecurity for dssatlab 0.1.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.1.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 28, 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.