Installation
Installation options
Section titled “Installation options”Our package is available on PyPI and can be installed using various methods.
Installing with uv (recommended)
Section titled “Installing with uv (recommended)”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.
Adding to an existing uv project
Section titled “Adding to an existing uv project”uv add sensipyCreate a new uv project
Section titled “Create a new uv project”Ininitalize a new project with Python 3.12 (for example), then add the sensipy to the project.
uv init -p 3.12uv add sensipyUpdating the package with uv
Section titled “Updating the package with uv”Update the package to the latest version:
uv add -U sensipyInstalling with pip
Section titled “Installing with pip”The sensipy can be installed into any existing Python environment using pip:
pip install sensipyInstalling with conda
Section titled “Installing with conda”The sensipy can be installed into any existing conda environment using conda.
- Make sure
pipis installed in the environment. - Install the sensipy using pip.
conda activate my-environmentconda install pippip install sensipyVerifying the installation
Section titled “Verifying the installation”To verify that sensipy is installed correctly, you can run:
python -c "import sensipy; print(sensipy.__version__)"Running the test suite
Section titled “Running the test suite”If you’ve cloned the repository for development, you can run the test suite with:
git clone https://github.com/astrojarred/sensipy.gitcd sensipyuv run pytestOr in a conda environment or a virtual environment with the development dependencies installed:
pytest