D2spy is a Python package for interacting with Data to Science instances.
Install the core package with minimal dependencies:
pip install d2spyOr install with geospatial features for raster clipping and EXIF extraction:
pip install d2spy[geo]Core installation (d2spy):
- Requires only
requestslibrary - Full API access: authentication, projects, flights, data uploads
- Server-side analysis: NDVI, ExG, zonal statistics (job submission)
- Perfect for: lightweight integrations, CI/CD pipelines, QGIS plugins (which already include geo libraries)
Geo installation (d2spy[geo]):
- Adds
rasterio,geopandas, andexifreadlibraries - Client-side geospatial processing: raster clipping, EXIF data extraction, bounding box generation
- Required for:
DataProduct.clip(),get_exif_data(),get_bounding_box_from_exif_data()
If you're bundling d2spy in a QGIS plugin, extract the wheel and copy the d2spy folder into your plugin directory. Since QGIS already includes most geospatial libraries, geo features will work automatically without needing to install d2spy[geo].
- Sign in to your Data to Science instance
- Access your projects, flights, and data products
- Create new projects and flights
- Upload data products to flights (rasters, point clouds, raw data)
- Server-side analysis: NDVI, ExG, zonal statistics
- Client-side raster clipping by polygon
- Extract EXIF data from images
- Generate bounding boxes from image collections
