Skip to content

Getting started guide

Installation

To install srai simply run:

pip install srai

This will install the srai package and dependencies required by most of the use cases. There are several optional dependencies that can be installed to enable additional functionality. These are listed in the optional dependencies section.

Optional dependencies

The following optional dependencies can be installed to enable additional functionality:

  • srai[all] - all optional dependencies
  • srai[osm] - dependencies required to download OpenStreetMap data
  • srai[voronoi] - dependencies to use Voronoi-based regionalization method
  • srai[gtfs] - dependencies to process GTFS data
  • srai[plotting] - dependencies to plot graphs and maps
  • srai[torch] - dependencies to use torch-based embedders

Tutorial

For a full tutorial on srai and geospatial data in general visit the srai-tutorial repository. It contains easy to follow jupyter notebooks concentrating on every part of the library. Additionally, there is a recording available from the EuroScipy 2023 conference covering that material.

Usage

Please see the examples directory for examples of how to use srai.

Use cases

Please see the Use Cases for detailed description of srai use-cases. It also covers features planned for future releases as a roadmap of what this project's goals are.

Full pipeline example

We also provide a full pipeline implemented in kedro to showcase real-world srai usage. Pipeline is available here.