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.

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for nectarpy-0.6.0.tar.gz
Algorithm Hash digest
SHA256 64f2013d82450e8f6848676a4a914e7a639e6bae10b2d6fb5cbc92e1b279b67e
MD5 1c438bc1de3c19b8b378a4008f847870
BLAKE2b-256 0b732e40ea0c5e9f003ceed2f2651439335418697e909f695e362049af1d4a86

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