agriql
Python client for the AgriQL engine. import agriql does not start a second database.
import agriql
db = agriql.connect("farm.aqdb")
result = db.query("SELECT plant_id, soil_moisture FROM agriculture.soil")
result.to_records()
to_pandas(), to_polars(), and to_arrow() import those libraries only when called. Arrow IPC is not produced by the engine. to_arrow() builds a pyarrow table from the result grid.
Install
libagriql_ffi must already be on the library path. Build it from AgriQL:
git clone https://github.com/SbruiceS/AgriQL.git
cd AgriQL
cargo build -p agriql-ffi --release
sudo cp target/release/libagriql_ffi.so /usr/local/lib
sudo ldconfig
Then:
pip install git+https://github.com/SbruiceS/agriql-python.git
pip install "agriql[pandas] @ git+https://github.com/SbruiceS/agriql-python.git"
If the library is not in a default directory, set AGRIQL_FFI to the full path of libagriql_ffi.so.
agriql.connect("agriql://127.0.0.1:5471/farm") uses the server port instead of the library. This package is not published on PyPI.
Metadata
Release files for agriql 3.10.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 | |
|---|---|---|---|---|
| agriql-3.10.1.tar.gz | 5.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agriql-3.10.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.3 kB
Release files / agriql-3.10.1.tar.gz
| Download URL | agriql-3.10.1.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c01ddc7d94a7568024f6d1344e9d3c98bec536f9aaa563d554e14b7c23c34910
|
|
BLAKE2b-256 checksum How to use checksums |
4815236772f6b19642fe434bf1d0030c1e4ffd6ad9f80cadbc2ed01dcd486844
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Release files / agriql-3.10.1-py3-none-any.whl
| Download URL | agriql-3.10.1-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
602be15f2d6651b72c01c0a61c26b4e4c96d216fe84b67a16d2276ca7ddee21b
|
|
BLAKE2b-256 checksum How to use checksums |
f5df14be89d50d6d367231e12466eebb68bbfe3508b6ff44fb90c63d5bf252c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.0
|
Security for agriql 3.10.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.