A Python client for Raster Foundry, a web platform for combining, analyzing, and publishing raster data.
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()
$ pip install rasterfoundry
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
The test suite execution process is managed by tox:
$ tox
Releases are automatically published to PyPI through Travis CI when commits are tagged. The following git flow commands lead to a tagged commit that can be pushed to GitHub:
$ git flow release start X.Y.Z
$ vim CHANGELOG.rst
$ vim setup.py
$ git commit -m "X.Y.Z"
$ git flow release publish X.Y.Z
$ git flow release finish X.Y.ZAfter you've completed the git flow steps above, you'll need to push the changes from your local repository to the GitHub repository:
$ git checkout develop $ git push origin develop $ git checkout master $ git push origin master $ git push --tags