Skip to content
/ d2spy Public

Python package for accessing datasets hosted on the Data to Science platform.

License

Notifications You must be signed in to change notification settings

gdslab/d2spy

Repository files navigation

Welcome to Data to Science Python (d2spy)

image Jupyter Notebook License: MIT

Data to Science logo

D2spy is a Python package for interacting with Data to Science instances.

Installation

Install the core package with minimal dependencies:

pip install d2spy

Or install with geospatial features for raster clipping and EXIF extraction:

pip install d2spy[geo]

What's the difference?

Core installation (d2spy):

  • Requires only requests library
  • 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, and exifread libraries
  • 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()

Bundling with QGIS Plugins

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].

Features

Core Features (available with base installation)

  • 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

Geospatial Features (requires d2spy[geo])

  • Client-side raster clipping by polygon
  • Extract EXIF data from images
  • Generate bounding boxes from image collections

Documentation

About

Python package for accessing datasets hosted on the Data to Science platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •