Skip to main content

A Python client for Raster Foundry, a web platform for combining, analyzing, and publishing raster data.

Usage

from rasterfoundry.api import API
refresh_token = '<>'

api = API(refresh_token=refresh_token)

# List all projects
my_projects = api.projects

one_project = my_projects[0]

# Get TMS URl without token
one_project.tms()

Versions

The latest version of rasterfoundry always points to the most recently released swagger spec in the raster-foundry/raster-foundy-api-spec repository. If you need to point to a different spec version, either install a version of the python client that refers to the appropriate spec, or set the RF_API_SPEC_PATH environment variable to a url or local file path pointing to the version of the spec that you want to use.

Generally this shouldn’t matter, because the Raster Foundry API shouldn’t have breaking changes.

Installation

Without notebook support

$ pip install rasterfoundry

With notebook support

Notebook support requires [npm](https://www.npmjs.com/get-npm).

$ pip install rasterfoundry[notebook]

Then, enable widgets and leaflet in in jupyter notebooks:

$ jupyter nbextension install --py --symlink --sys-prefix widgetsnbextension
$ jupyter nbextension enable --py --sys-prefix widgetsnbextension
$ jupyter nbextension install --py --symlink --sys-prefix ipyleaflet
$ jupyter nbextension enable --py --sys-prefix ipyleaflet

Testing

The test suite execution process is managed by tox:

$ tox

Release files for rasterfoundry 1.16.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rasterfoundry 1.16.2
File Size Uploaded
rasterfoundry-1.16.2.tar.gz 247.4 kB Details

Release files / rasterfoundry-1.16.2.tar.gz

Download URL rasterfoundry-1.16.2.tar.gz
Size 247.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9251b60bb0f98f5f95013e95e8922b56c84325c0944c8c8d827da677cc7df6c9
BLAKE2b-256 checksum
How to use checksums
2556a2ba155bdec624462c208b20af257d764c9e0717a8e33a4d16475de74944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.3

Release history Release notifications | RSS feed

This release

1.16.2 This release

1 release file

1.16.0

1 release file

1.15.0

1 release file

1.13.1

1 release file

1.13.0

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page