GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wsf1990/raster-foundry-python-client: A Python client for Raster Foundry.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

79 Commits
79 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
rasterfoundry
rasterfoundry
 
 
scripts
scripts
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CHANGELOG.rst
CHANGELOG.rst
 
 
LICENSE.txt
LICENSE.txt
 
 
MANIFEST.in
MANIFEST.in
 
 
README.rst
README.rst
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

raster-foundry-python-client

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

Releases

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
$ docker run -ti --rm -v "${PWD}:/changelog" -w "/changelog" "quay.io/azavea/github-changelog-generator:v1.14.3" \
   --token "${GITHUB_TOKEN}" \
   --future-release "X.Y.Z" \
   --no-issues \
   --no-author \
   --release-branch develop
$ pandoc CHANGELOG.md -o CHANGELOG.rst
$ rm CHANGELOG.md
$ vim setup.py
$ git commit -m "X.Y.Z"
$ git flow release publish X.Y.Z
$ git flow release finish X.Y.Z

After 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

About

A Python client for Raster Foundry.

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.