Environmental measures from mediterranean see
This package provides several utilities for requesting environmental measures in the Mediterrannean see.
Installation
In order to install the package, you can install the latest release with :
pip install medenv
You can also install, using pip, the current version on the main branch by either :
python3 -m pip install git+https://github.com/jeremyfix/medenv.git
Or, you can also install it by cloning the repository
git clone https://github.com/jeremyfix/medenv.git
python3 -m venv venv
source venv/bin/activate
python -m pip install medenv
Usage
Check the examples in the examples/ directory, but basically, grabbing environmental variables require a Fetcher to which you specify which features you want to grab and then provides (latitude, longitude, time, depth) requests:
features = [
"sea-surface-temperature",
"sea-surface-salinity",
"bathymetry",
"temperature",
"salinity",
"chlorophyl-a",
"nitrate",
"phosphate",
"ammonium",
"phytoplankton-carbon-biomass",
"oxygen",
"net-primary-production",
"ph",
"alkalinity",
"dissolved-inorganic-carbon",
"northward-water-velocity",
"eastward-water-velocity",
# 2D features
"mixed-layer-thickness",
"sea-surface-above-geoid",
"surface-partial-pressure-co2",
"surface-co2-flux",
]
fetcher = medenv.Fetcher(features, reduction="mean")
date = datetime.datetime(year=2012, month=9, day=22, hour=14)
long, lat = 13.63, 43.55
tol_spatial = 0.2
long0 = (long - tol_spatial / 2, long + tol_spatial / 2)
lat0 = (lat - tol_spatial / 2, lat + tol_spatial / 2)
depth = 6
values, info_values = fetcher.get_values(date, (long0, lat0), depth)
The request accepts a range for the longitude/latitude and a single value for the date and depth. For both the date and depth, the fetcher will grab the closest values.
Metadata
Release files for medenv 2.0.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 |
|---|---|---|---|---|
| medenv-2.0.0.tar.gz | 22.3 kB | With provenance | Details for medenv-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| medenv-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for medenv-2.0.0-py3-none-any.whl |
Total release size: 46.8 kB
Release files / medenv-2.0.0.tar.gz
| Download URL | medenv-2.0.0.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac5f29f4bd80be00625ece87eea02ac0a8f6208406df3ff51419ebf883e485c9
|
|
BLAKE2b-256 checksum How to use checksums |
af7e75bce1c3a3f0caf65e5cf20a550b1fa3c501a1251eab5981082f2316eda2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 23, 2026.
Transparency logRelease files / medenv-2.0.0-py3-none-any.whl
| Download URL | medenv-2.0.0-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9d1fa4b9894803a1f05b755ecb31465fbc49b588dc04e35608c54be3bd4a6c2
|
|
BLAKE2b-256 checksum How to use checksums |
ca768593a52d19cfa4f273d11cf90e0085452810bc08251abf6b99cba2faf3df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 23, 2026.
Transparency logSecurity for medenv 2.0.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for medenv-2.0.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 Feb 23, 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.