Skip to main content

OceanStream: process raw sonar data at scale

Project description

OceanStream

OceanStream is an integrated cloud data platform used for hydroacoustic data collection and analysis in real-time. It is built on Azure IoT Edge infrastructure.

OceanStream.io

How to Install

Prerequisites

  • Python 3.11: Ensure Python 3.11 is installed on your system.

Setup

To contribute, clone the OceanStream repository's dev branch, which contains the latest development changes:

git clone -b dev https://github.com/OceanStreamIO/oceanstream.git

Navigate to the oceanstream directory:

cd oceanstream

Now, you can install dependencies, run tests, or start development! Direct all pull requests to the dev branch.

Using Conda/Mamba

  • Create a virtual environment to use the package:
    conda env create -f environment.yml
    

This command creates an environment named oceanstream. To activate it: conda activate oceanstream

  • Create a virtual environment to contribute to the package:
    conda env create -f environment-dev.yml
    

Again, activate the environment with: conda activate oceanstream

Using Pip

  1. Create a Virtual Environment:
    python -m venv .venv
    

This command creates a virtual environment in the .venv directory using Python 3.9.

  • Example using pyenv:

    • Install Python 3.9 with pyenv:
      pyenv install 3.9
      
    • Navigate to your project directory:
      cd /path/to/your/project_directory
      
    • Create the virtual environment using the Python 3.9 executable managed by pyenv:
      ~/.pyenv/versions/3.11/bin/python -m venv .venv
      
  1. Activate the Virtual Environment:
  • On Linux and MacOS:
    source .venv/bin/activate
    
  • On Windows:
    .venv\Scripts\activate.bat  # In cmd.exe
    .venv\Scripts\Activate.ps1  # In PowerShell
    
  1. Install the Dependencies:
  • To use the package:
    pip install -r requirements.txt
    
  • To contribute to the package:
    pip install -r requirements-dev.txt
    

Running Pre-Commit Locally

Installation

Install the pre-commit tool using pip:

pip install pre-commit

Installing the Git Hook Scripts

Navigate to your repository where the .pre-commit-config.yaml file is located. Install the Git hook scripts with:

pre-commit install

Running Pre-Commit

Pre-commit will now run automatically every time you attempt to make a commit. If any hooks fail, the commit will be blocked, and you'll be prompted to fix the issues before committing again.

To manually run all hooks against all the files, use:

pre-commit run --all-files

Updating Hooks

To update your hooks to the latest versions, use:

pre-commit autoupdate

Skipping Hooks

To bypass the hooks for a particular commit, use the -n or --no-verify option:

git commit -m "Your commit message" -n

Uninstalling Pre-Commit

To uninstall the Git hook scripts, use:

pre-commit uninstall

Building Documentation Locally

Prerequisites

Ensure Python and pip are installed on your system.

Steps

  1. Install Sphinx:

    pip install sphinx

  2. Navigate to Your Project's docs Directory:

    cd /path/to/your/docs_directory

  3. Build the Documentation:

  • For Linux/Mac:

    make html

  • For Windows:

    make.bat html

This command will generate the HTML documentation in the build/html directory within your docs folder.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oceanstream-0.0.15.dev0.tar.gz (71.2 kB view details)

Uploaded Source

Built Distribution

oceanstream-0.0.15.dev0-py3-none-any.whl (84.5 kB view details)

Uploaded Python 3

File details

Details for the file oceanstream-0.0.15.dev0.tar.gz.

File metadata

  • Download URL: oceanstream-0.0.15.dev0.tar.gz
  • Upload date:
  • Size: 71.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for oceanstream-0.0.15.dev0.tar.gz
Algorithm Hash digest
SHA256 31513d09e7b96d91b1f7598e9d926e5c29177c6ea04474c438f3631990d41c47
MD5 73ad5b9a3371cab80a8767988b3ad2c6
BLAKE2b-256 3b5f833cf6f477951c5021bd40df190df03b116fc7cbafa6750b83461751bd23

See more details on using hashes here.

File details

Details for the file oceanstream-0.0.15.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for oceanstream-0.0.15.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 f15043c5fe688ed06a099c4dc6088b8430dbb1a25bd0c8918fccb5bd28827e10
MD5 fd1783d25b2bae05b3630df610835298
BLAKE2b-256 fb22b9f3fc044858f0034f248f17daa0dad6e3d7744eb78f77fe4810105cd063

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page