A Python API module designed to run queries on Nectar
Project description
PYTHON NECTAR MODULE
This is a Python API module designed to run queries on Nectar, add bucket information, and set policies.
Install
pip3 install nectarpy
Example
from nectarpy import Nectar
nectar = Nectar("API-SECRET")
result = nectar.query(
aggregate_type="variance",
aggregate_column="heart_rate",
filters='[ { "column": "smoking", "filter": "=", "value": false } ]',
)
print(result) # 1234.5
Integration Tests
Step 1: Create a .env file
API_SECRET=0x123...
EVM_NODE=http://127.0.0.1:8545/
Step 2: Run!
python3 tests.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nectarpy-0.8.0.tar.gz
(30.3 kB
view details)
File details
Details for the file nectarpy-0.8.0.tar.gz.
File metadata
- Download URL: nectarpy-0.8.0.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e95d02e648f619ce782497baf539649e414cfc33c6440b106570aa9ca517b6c
|
|
| MD5 |
7cfa0d5be98c3ba8abbb44765654f81c
|
|
| BLAKE2b-256 |
0ae711bd0313b0812bb023ccaab8b0fa937b5a3f65e951beaad8f5cd328acc27
|