Skip to main content

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/
TEE_DATA_URL=https://<ip-address>:5229/

Step 2: Run!

python3 tests.py

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

nectarpy-0.10.0.tar.gz (29.1 kB view details)

Uploaded Source

File details

Details for the file nectarpy-0.10.0.tar.gz.

File metadata

  • Download URL: nectarpy-0.10.0.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for nectarpy-0.10.0.tar.gz
Algorithm Hash digest
SHA256 b4b0342aa9f7d04fdf03009aabbfb6d5a1a2004b65cd97530e47a49d240345d3
MD5 3b1cb127d1a7b489e347b93eeefb07a4
BLAKE2b-256 446670a8add6b5c7b7c7aefae55a15ad972a840eb64ca873ca8246c05b9ccbfe

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