Catalog PyPI
PACKAGE EXPLORERView in registry

agriql

PyPI

Client for the AgriQL engine. This package is not a database.

Versions collected1
Direct dependencies5From release 3.10.1
Last observed21 Oct, 09:26 UTC

README

Version 3.10.1 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
3.10.117 Oct 20265

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
sbruices/agriql-python

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:26 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e2a2791619b9b7d7d23b47e0fe6c6b397c9dd54f3c42f34f6d5abb5150f88e76