water-column-sonar-ai
🌊 Water Column Sonar Machine Learning Workflow ⭐
Setting up the Python Environment
Python 3.12.11
Installing Dependencies
source .venv/bin/activate
uv pip install --upgrade pip
uv pip install -r pyproject.toml --all-extras
uv run pre-commit install
Pytest
uv run pytest tests -W ignore::DeprecationWarning
or
pytest --cache-clear --cov=src tests/ --cov-report=xml
Instructions
Following this tutorial: https://packaging.python.org/en/latest/tutorials/packaging-projects/
Pre Commit Hook
see here for installation: https://pre-commit.com/ https://dev.to/rafaelherik/using-trufflehog-and-pre-commit-hook-to-prevent-secret-exposure-edo
pip install pre-commit
uv run pre-commit install
Black
https://ljvmiranda921.github.io/notebook/2018/06/21/precommits-using-black-and-flake8/
Settings > Black
Execution mode: Package
Python Interpreter: .../.venv/bin/python
Use Black Formatter: X On Code reformat, X On Save
Linting
Ruff https://plugins.jetbrains.com/plugin/20574-ruff
Test Coverage
TODO
Tag a Release
Step 1 --> increment the semantic version in the zarr_manager.py "metadata" & the "pyproject.toml"
git tag -a v26.11.1 -m "Releasing v26.11.1"
git push origin --tags
To Publish To PROD
uv build --no-sources
uv publish
TODO:
add https://pypi.org/project/setuptools-scm/ for extracting the version
Security scanning
bandit -r water_column_sonar_ai/
Data Debugging
Experimental Plotting in Xarray (hvPlot): https://colab.research.google.com/drive/18vrI9LAip4xRGEX6EvnuVFp35RAiVYwU#scrollTo=q9_j9p2yXsLV
HB0707 Zoomable Cruise: https://hb0707.s3.us-east-1.amazonaws.com/index.html
UV Debugging
uv lock --check
uv lock
uv sync --extra dev
#uv run pytest tests
Metadata
Release files for water-column-sonar-ai 26.11.7
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 |
|---|---|---|---|---|
| water_column_sonar_ai-26.11.7.tar.gz | 7.6 kB | Without provenance | Details for water_column_sonar_ai-26.11.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| water_column_sonar_ai-26.11.7-py3-none-any.whl | Python 3 | none | any | Details for water_column_sonar_ai-26.11.7-py3-none-any.whl |
Total release size: 14.7 kB
Release files / water_column_sonar_ai-26.11.7.tar.gz
| Download URL | water_column_sonar_ai-26.11.7.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b770bbe8de8333f378618647f0fa44bff44ee284a9d621b9ace49e6807dfc7fe
|
|
BLAKE2b-256 checksum How to use checksums |
498be4a25fbaad32a38113f78b96fad522592bc730948b775898e70ae8d8cb64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / water_column_sonar_ai-26.11.7-py3-none-any.whl
| Download URL | water_column_sonar_ai-26.11.7-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59f82b970cb325cf801723dc4692892ceb4cdc134905d4bae1a2ce9df15fd31b
|
|
BLAKE2b-256 checksum How to use checksums |
552f437d17aec7d950ec9dd470983ebb7d784c4f131cb6cf8bd6f6b8afd396e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for water-column-sonar-ai 26.11.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.