Skip to main content

a package to integrate satplat api with python client

Project description

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 foreca weather 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 foreca 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 foreca module
from foreca_api.api import ForecaAPI

# creating an instance client
client = ForecaAPI()

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

# set the location we need the data for
client.set_location(35.8439,50.9715)

# requesting to get result of that specific place
result = client.get_current_weather_location()

print(result)

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

satplat_api-0.1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

satplat_api-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page