Skip to main content

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

Project description

Agriflux Python SDK 1.0.1

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.1
  • SDK version: 1.0.1

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

API Key Authentication

The AgrifluxSdk API uses an API Key for authentication.

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

Setting the API Key

When you initialize the SDK, you can set the API key as follows:

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

If you need to set or update the API key after initializing the SDK, you can use:

sdk.set_access_token("YOUR_API_KEY")

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_API_KEY",
    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_API_KEY",
    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
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.1.tar.gz (25.0 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.1-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agriflux-1.0.1.tar.gz
  • Upload date:
  • Size: 25.0 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.1.tar.gz
Algorithm Hash digest
SHA256 2f3db09e70842bacd0ff370c887b899123bdd9c1c77fb59814b2ad38d583f286
MD5 65eef77f67363fc51321fb9bcae811b1
BLAKE2b-256 33cd854f894017797f26c21f9d8ae4cd9ede0341be8f4243467fa4ae2cd059b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agriflux-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 43.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5c85016dc6d4d2c1adc47369e29eb034117b193dc4b007220bb05a65ef24d912
MD5 0f5713f2ba6c8263dc06ed2bea63c4e3
BLAKE2b-256 bce350f9ad90864663ff9a42f8cf27cf57eb3c679278eb4893ded9bef7a078e1

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