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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for nectarpy-0.9.0.tar.gz
Algorithm Hash digest
SHA256 aa0d771d7b30c537dc6fa4e6bcc1688fad6b1c25288089824ed3d4060c8086f0
MD5 b4dc098549875f250de3c9f4c490de43
BLAKE2b-256 baf8b98055052ebea09a9f074e7975e710e3b3b91e4c323717987d9d091cf4d8

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