Skip to content

satplat client api for communicating with satplat api endpoints

License

Notifications You must be signed in to change notification settings

AliBigdeli/Python-SatPlat-Client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python SatPlat Api Client

a simple module to integrate with SatPlat satellite image api service

Overview

Installation

This module is a pip package to let you integrate with satplat api service provider. in order to use this module you have to install it by pip command or through setup.

pip install satplat_api

Import package into your project by:

from satplat_api.api import SatPlatAPI

in order to use the module please consider looking at examples and documentations.

Usage

In order to integrate with this service provider you need to first have an account and token. so first of all create an account with the url provided below: https://dashboard.satplat.com/#/login

For easy implementations i have provided two simple examples, one for creating authenticating and getting access key and one for simple example to get current data from a location

# importing satplat module
from satplat_api.api import SatPlatAPI

# creating an instance client
client = SatPlatAPI()

# setting up access token
client.set_access_token(access_token="<YOUR_TOKEN>")

now that you have access token with unlimited time access then there is no need for authenticating, you can just set the access_token and proceed with other requests.

#importing satplat module
from satplat_api.api import SatPlatAPI

# creating an instance client
client = SatPlatAPI()

# setting the access token for headers in client object
client.set_access_token(access_token="<YOUR_TOKEN>")

# to get farms list 
pprint(client.get_farms_list())

References

Swagger

i even did create a custom swagger for testing purposes

About

satplat client api for communicating with satplat api endpoints

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages