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/

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.7.0.tar.gz (30.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: nectarpy-0.7.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

Hashes for nectarpy-0.7.0.tar.gz
Algorithm Hash digest
SHA256 560a5d22d8cfd263287ee1ea3e21bfb02603c6afdcc0781f8ea6d1f889256f3c
MD5 2246b63fb91f4ec97743df05294d99a6
BLAKE2b-256 bdb3b67233a2733e7818234bd8e605db80d58b1e85fce9c8dd386acfa69f5289

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