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 |
Metadata
Release files for agriflux 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agriflux-1.0.1.tar.gz | 25.0 kB | Without provenance | Details for agriflux-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agriflux-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for agriflux-1.0.1-py3-none-any.whl |
Total release size: 68.8 kB
Release files / agriflux-1.0.1.tar.gz
| Download URL | agriflux-1.0.1.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f3db09e70842bacd0ff370c887b899123bdd9c1c77fb59814b2ad38d583f286
|
|
BLAKE2b-256 checksum How to use checksums |
33cd854f894017797f26c21f9d8ae4cd9ede0341be8f4243467fa4ae2cd059b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / agriflux-1.0.1-py3-none-any.whl
| Download URL | agriflux-1.0.1-py3-none-any.whl |
|---|---|
| Size | 43.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c85016dc6d4d2c1adc47369e29eb034117b193dc4b007220bb05a65ef24d912
|
|
BLAKE2b-256 checksum How to use checksums |
bce350f9ad90864663ff9a42f8cf27cf57eb3c679278eb4893ded9bef7a078e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for agriflux 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.