Skip to content

Installation

Our package is available on PyPI and can be installed using various methods.

uv is a tool for managing Python projects and dependencies. It is a modern alternative to pip and venv, and is lighter and faster than conda. For more information, see the uv documentation.

Terminal window
uv add sensipy

Ininitalize a new project with Python 3.12 (for example), then add the sensipy to the project.

Terminal window
uv init -p 3.12
uv add sensipy

Update the package to the latest version:

Terminal window
uv add -U sensipy

The sensipy can be installed into any existing Python environment using pip:

Terminal window
pip install sensipy

The sensipy can be installed into any existing conda environment using conda.

  1. Make sure pip is installed in the environment.
  2. Install the sensipy using pip.
Terminal window
conda activate my-environment
conda install pip
pip install sensipy

To verify that sensipy is installed correctly, you can run:

Terminal window
python -c "import sensipy; print(sensipy.__version__)"

If you’ve cloned the repository for development, you can run the test suite with:

Terminal window
git clone https://github.com/astrojarred/sensipy.git
cd sensipy
uv run pytest

Or in a conda environment or a virtual environment with the development dependencies installed:

Terminal window
pytest