Skip to main content

Python SDK and CLI for the Bluearf Nova Public API

Project description

bluearf-nova

Python SDK and CLI for the Bluearf Nova Public API.

Install

pip install bluearf-nova

SDK

from bluearf_nova import BluearfNova

client = BluearfNova(api_key="BLUEARF_API_TOKEN")

print(client.credits.get())
vehicles = client.vehicles.list(company_id="COMPANY_ID", limit=25)
result = client.calculations.passenger_commercial_vehicles(
    company_id="COMPANY_ID",
    coid="VEHICLE_OR_FACILITY_ID",
    year=2024,
)

CLI

export BLUEARF_NOVA_API_TOKEN="BLUEARF_API_TOKEN"

bluearf credits get
bluearf usage list
bluearf vehicles list --company-id COMPANY_ID
bluearf vehicle-models search --brand Toyota --model Corolla
bluearf carbon-records list --company-id COMPANY_ID
bluearf carbon-uniform list --company-id COMPANY_ID --coid COID
bluearf calculations passenger-commercial-vehicles --company-id COMPANY_ID --coid COID --year 2024

Credit model

Credits are calculated by endpoint and workload. List endpoints reserve by requested page size and settle by returned rows. Calculation endpoints reserve and settle by input/output row units. Backend errors are refunded automatically.

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

bluearf_nova-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bluearf_nova-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file bluearf_nova-0.1.0.tar.gz.

File metadata

  • Download URL: bluearf_nova-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bluearf_nova-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8fd359c494d514854ea11b65e089a17addb9dad6a41b92773175e4c0f206d60b
MD5 c2a6f78eb989ef7cd4f5fe206199d6fe
BLAKE2b-256 7246be1865523b1f7c952bf36c299ff852062a1de770ff03de83c5f7bdc417de

See more details on using hashes here.

File details

Details for the file bluearf_nova-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bluearf_nova-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for bluearf_nova-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 725d532a441046c9181b01a5a6130b04cc7cf642036b9c2114ff08f10cb98c2f
MD5 f7805a717fd4c793360ed132faa088ad
BLAKE2b-256 b220289b923e7045e6833a07174f9dd1a5dad633a31f6fdfc6dc2d6de40709f8

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