Skip to main content

Maiaddy Cloud Essence Agriflux platform for agricultural intelligence and supply chain optimization

Project description

Agriflux Python SDK 1.0.0

Welcome to the Agriflux SDK documentation. This guide will help you get started with integrating and using the Agriflux SDK in your project.

Versions

  • API version: 1.0.0
  • SDK version: 1.0.0

About the API

Maiaddy Cloud Essence Agriflux platform for agricultural intelligence and supply chain optimization

Table of Contents

Setup & Configuration

Supported Language Versions

This SDK is compatible with the following versions: Python >= 3.7

Installation

To get started with the SDK, we recommend installing using pip:

pip install agriflux

If you are using Python 3, you can use pip3 instead:

pip3 install agriflux

Authentication

Access Token Authentication

The AgrifluxSdk API uses an Access Token for authentication.

This token must be provided to authenticate your requests to the API.

Setting the Access Token

When you initialize the SDK, you can set the access token as follows:

AgrifluxSdk(
    access_token="YOUR_ACCESS_TOKEN",
    timeout=10000
)

If you need to set or update the access token after initializing the SDK, you can use:

sdk.set_access_token("YOUR_ACCESS_TOKEN")

Setting a Custom Timeout

You can set a custom timeout for the SDK's HTTP requests as follows:

from agriflux_sdk import AgrifluxSdk

sdk = AgrifluxSdk(timeout=10000)

Sample Usage

Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:

from agriflux_sdk import AgrifluxSdk

sdk = AgrifluxSdk(
    access_token="YOUR_ACCESS_TOKEN",
    timeout=10000
)

result = sdk.health_controller.health()

print(result)

Async Usage

The SDK includes an Async Client for making asynchronous API requests. This is useful for applications that need non-blocking operations, like web servers or apps with a graphical user interface.

import asyncio
from agriflux_sdk import AgrifluxSdkAsync

sdk = AgrifluxSdkAsync(
    access_token="YOUR_ACCESS_TOKEN",
    timeout=10000
)


async def main():
  result = await sdk.health_controller.health()
  print(result)

asyncio.run(main())

Services

The SDK provides various services to interact with the API.

Below is a list of all available services:
Name
yield_prediction
pest_disease_monitoring
supply_chain_optimization
health_controller
soil_climate_data

Models

The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.

Below is a list of all available models:
Name Description
CropYieldByLoccodeRequestDto
CropPestsByLoccodeRequestDto
SupplyFarmProduceRequestDto

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

agriflux-1.0.0.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agriflux-1.0.0-py3-none-any.whl (44.8 kB view details)

Uploaded Python 3

File details

Details for the file agriflux-1.0.0.tar.gz.

File metadata

  • Download URL: agriflux-1.0.0.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for agriflux-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5ca37f69fa88203f5606738aa8fd0b13ee6a3541f9d0ea9a9b50ae9cff012cf3
MD5 23dbb981d1bed3352fb0e60176f8bb70
BLAKE2b-256 b9adf4e63c38b21a9cdf23fbcb2772a1af98c366bbfc9e0e33c1ed443ab86bb9

See more details on using hashes here.

File details

Details for the file agriflux-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: agriflux-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 44.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for agriflux-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fce4cfe508518b5c7cbb768706c1626d90d50c2d787e07ff2e0fb54a8d44aff4
MD5 741c05b1c03b9806affd2a04476d4f7a
BLAKE2b-256 80b6a0fbf1506d543da283281c43f0fe30d68c6a7e0509ea628c3abfc9ed03c4

See more details on using hashes here.

Supported by

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