Skip to main content

FetchNode Python & Django SDK

PyPI Python Versions License: MIT

Official Python and Django client SDK for FetchNode, the focused operations and monitoring workspace for Django teams and portfolio operators.

FetchNode captures unhandled exceptions, error logs, slow database queries, Celery background tasks, and business conversions with zero configuration bloat and privacy-safe defaults.


Installation

Install the package using pip or uv:

pip install fetchnode

(Or uv add fetchnode)


Quickstart (Django)

1. Add to INSTALLED_APPS

In your Django settings.py:

INSTALLED_APPS = [
    # ...
    "fetchnode",
]

2. Add the Middleware

Add FetchNodeMiddleware near the top of your MIDDLEWARE list:

MIDDLEWARE = [
    "fetchnode.middleware.FetchNodeMiddleware",
    "django.middleware.security.SecurityMiddleware",
    # ...
]

3. Configure settings.FETCHNODE

FETCHNODE = {
    "API_KEY": "fn_live_your_project_key_here",
    "ENVIRONMENT": "production",  # e.g. "production", "staging"
    
    # Optional: override endpoint for self-hosted FetchNode instances
    # Defaults to FetchNode Cloud: "https://monitor.fetchnode.com"
    # "ENDPOINT": "https://monitor.fetchnode.com",
}

You can also configure via environment variables:

  • FETCHNODE_API_KEY
  • FETCHNODE_ENVIRONMENT
  • FETCHNODE_RELEASE
  • FETCHNODE_ENDPOINT

Usage

Milestone & Conversion Tracking

Track business events (form submits, leads, signups, payments) server-side with automatic visitor attribution:

import fetchnode

def contact_view(request):
    form = ContactForm(request.POST)
    if form.is_valid():
        lead = form.save()
        
        # Track authoritative conversion
        fetchnode.track(
            "lead_submitted",
            request=request,
            idempotency_key=str(lead.id),
            properties={"email": lead.email},
            conversion=True,
        )
        return redirect("thank_you")

Manual Exception Capture

import fetchnode

try:
    risky_operation()
except Exception as exc:
    fetchnode.capture_exception(exc)

Celery Task Monitoring

FetchNode automatically instruments Celery when installed. To manually monitor tasks or commands:

from fetchnode import capture_job

@capture_job(name="sync_external_inventory")
def sync_inventory():
    ...

Privacy by Default

FetchNode is engineered with privacy-safe defaults:

  • Sensitive keys (password, token, secret, api_key, authorization, cookie, csrfmiddlewaretoken) are scrubbed before payload transmission.
  • Request bodies and raw IP addresses are excluded by default.
  • Query string parameters and raw SQL values are normalized.

License

MIT License. See LICENSE for details.

Metadata

Release files for fetchnode 0.4.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 fetchnode 0.4.0
File Size Uploaded Provenance
fetchnode-0.4.0.tar.gz 19.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 47.6 kB

Release files / fetchnode-0.4.0.tar.gz

Download URL fetchnode-0.4.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7928ccc0306e7e0e213671aefcdbdd8fbd79b3553f6ecf7de0da8df8dc7a4e74
BLAKE2b-256 checksum
How to use checksums
b859de0994ea0d2f9c30d07bde38276150ebc72c67d96bd9bca47399ae34a620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / fetchnode-0.4.0-py3-none-any.whl

Download URL fetchnode-0.4.0-py3-none-any.whl
Size 27.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd0274b0e5c5815bdb608cb274fe44fec2b859b6089b0894d5c0ed59181e3969
BLAKE2b-256 checksum
How to use checksums
001fcb13349fd2b2cca1ecdcadcd2f7ea1625ed63c0e6ff6525fd8bec09b1a02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.9 {"installer":{"name":"uv","version":"0.11.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for fetchnode 0.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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