Skip to main content

Noxdren Python SDK

Official Python client for the Noxdren API — battery-aware drone range (RangeIQ) and multi-leg mission analysis (RangeIQ+).

pip install noxdren

Quickstart

import noxdren

client = noxdren.Client(api_key="ndx_...")   # your key from app.noxdren.com

# 1. See which drones are available
for d in client.drones.list().drones:
    print(d.key)

# 2. Range rings around a launch point
r = client.rangeiq.analyze(
    user_lat=37.5, user_lon=-122.3,
    selected_drone_key="dji_mavic_3",
    wind_speed=6.0, wind_direction=270,
)
for ring in r.result.rings:
    print(ring.label, ring.battery_threshold_pct)

# 3. Multi-leg mission from waypoints
m = client.missions.analyze_geometry(
    home={"lat": 37.5, "lon": -122.3},
    drone="dji_mavic_3",
    waypoints=[
        noxdren.Waypoint(lat=37.50, lon=-122.30, altitude_m=80),
        noxdren.Waypoint(lat=37.51, lon=-122.29, altitude_m=80, hover_time_s=10),
        noxdren.Waypoint(lat=37.52, lon=-122.31, altitude_m=100),
    ],
    weather=noxdren.Weather(wind_speed_mps=6.0, wind_dir_deg=270),
)
print(m.result.mission_verdict)            # "complete" | "marginal" | "cannot_complete"

Responses support attribute access (r.result.rings[0].label) and plain dict access (r["result"]["rings"]) — whichever you prefer.

Authentication

Pass your API key when you construct the client. It's sent as the X-API-Key header on every request.

client = noxdren.Client(api_key="ndx_...")

Error handling

Every failure is a typed exception you can catch:

import noxdren

try:
    client.rangeiq.analyze(user_lat=37.5, user_lon=-122.3, selected_drone_key="dji_mavic_3")
except noxdren.AuthenticationError:
    ...   # 401 — bad/expired key
except noxdren.ValidationError as e:
    print(e.code, e.message)   # 400/422 — fix the request
except noxdren.RateLimitError as e:
    print("retry after", e.retry_after, "s")   # 429
except noxdren.NoxdrenError as e:
    print(e.code, e.request_id)   # catch-all; request_id helps support

Transient errors (429, 5xx, network) are retried automatically with backoff that respects Retry-After. Tune it: Client(api_key=..., max_retries=0).

Configuration

noxdren.Client(
    api_key="ndx_...",
    base_url="https://api.noxdren.com",  # override for testing
    timeout=30.0,
    max_retries=2,
)

What's covered

Method Endpoint
client.drones.list() / .get(key) GET /v1/drones, /v1/drones/{key}
client.rangeiq.analyze(...) POST /v1/rangeiq/analyze
client.missions.analyze_geometry(...) POST /v1/missions/analyze-geometry
client.missions.analyze(mission_file=...) POST /v1/missions/analyze (file upload)
client.health() / .version() GET /v1/health, /v1/version

Full request/response field reference: https://docs.noxdren.com and the live schema at https://api.noxdren.com/openapi.json.

Metadata

Release files for noxdren 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for noxdren 0.2.0
File Size Uploaded Provenance Actions
noxdren-0.2.0.tar.gz 9.0 kB With provenance Details for noxdren-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for noxdren 0.2.0
File Interpreter ABI Platform Actions
noxdren-0.2.0-py3-none-any.whl Python 3 none any Details for noxdren-0.2.0-py3-none-any.whl

Total release size: 18.5 kB

Release files / noxdren-0.2.0.tar.gz

Download URL noxdren-0.2.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a380033a8e1edfcc018de6df594a1bab198b8064d9ebf6a2c22c931cad089a7e
BLAKE2b-256 checksum
How to use checksums
6ebbc807b3373d409ca12221bbdde6f94d70245e9d901636ac3de4cec2f2926f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / noxdren-0.2.0-py3-none-any.whl

Download URL noxdren-0.2.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41c7924cffbfe88b8defcb817842bb8c1ca07f4248b9e4555ff0515dfabbae36
BLAKE2b-256 checksum
How to use checksums
82fe4233d2a69428cebd39076198d536e9ee9014a9f0e97c389b452677b166c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Security for noxdren 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for noxdren-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page