Skip to main content

Capture outgoing HTTP requests and inspect them in a local web dashboard

Project description

Smello

Capture outgoing HTTP requests from your Python code and browse them in a local web dashboard — including gRPC calls made by Google Cloud libraries.

Like Mailpit, but for HTTP requests.

Setup

Install the client SDK and the server:

pip install smello smello-server

Start the server:

smello-server run

Add two lines to your code:

import smello
smello.init(server_url="http://localhost:5110")

import requests
resp = requests.get("https://api.stripe.com/v1/charges")

# Browse captured requests at http://localhost:5110

Smello monkey-patches requests, httpx, and grpc to capture all outgoing traffic. Browse results at http://localhost:5110.

Or leave smello.init() without arguments and set SMELLO_URL in your environment — no URL, no side effects.

Google Cloud libraries

Many Google Cloud Python libraries — BigQuery, Firestore, Pub/Sub, Analytics Data API (GA4), Vertex AI, Speech-to-Text, Vision, Translation, and others — use gRPC under the hood. Smello captures these calls automatically:

import smello
smello.init(server_url="http://localhost:5110")

from google.cloud import bigquery
client = bigquery.Client()
rows = client.query("SELECT 1").result()

# gRPC calls to bigquery.googleapis.com appear at http://localhost:5110

Any library that calls grpc.secure_channel() or grpc.insecure_channel() is automatically captured.

What Smello Captures

  • Method, URL, headers, and body
  • Response status code, headers, and body
  • Duration in milliseconds
  • Library used (requests, httpx, or grpc)

Smello redacts sensitive headers (Authorization, X-Api-Key) by default.

Configuration

smello.init(
    server_url="http://localhost:5110",  # where to send captured data
    capture_hosts=["api.stripe.com"],    # only capture these hosts
    capture_all=True,                     # capture everything (default)
    ignore_hosts=["localhost"],          # skip these hosts
    redact_headers=["Authorization"],    # replace values with [REDACTED]
)

All parameters fall back to SMELLO_* environment variables when not passed explicitly:

Parameter Env variable Default
server_url SMELLO_URL None (inactive)
capture_all SMELLO_CAPTURE_ALL True
capture_hosts SMELLO_CAPTURE_HOSTS []
ignore_hosts SMELLO_IGNORE_HOSTS []
redact_headers SMELLO_REDACT_HEADERS ["Authorization", "X-Api-Key"]

The server URL is the activation signal — init() does nothing unless server_url is passed or SMELLO_URL is set. Boolean env vars accept true/1/yes and false/0/no (case-insensitive). List env vars are comma-separated.

Supported Libraries

  • requests — patches Session.send()
  • httpx — patches Client.send() and AsyncClient.send()
  • grpc — patches insecure_channel() and secure_channel() to intercept unary-unary calls

Requires

Links

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

smello-0.4.0.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

smello-0.4.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file smello-0.4.0.tar.gz.

File metadata

  • Download URL: smello-0.4.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for smello-0.4.0.tar.gz
Algorithm Hash digest
SHA256 d1ecf0551d16c7955c451f39f31d32570a6907f2e5dfdea467c729001c2a3083
MD5 a5a84ea57d74ac95f13266b45a10de4d
BLAKE2b-256 84265208e2cbe6537eb0edddfaffd8893fd5964ddd38158b547c63c8f79c3757

See more details on using hashes here.

Provenance

The following attestation bundles were made for smello-0.4.0.tar.gz:

Publisher: publish-client.yml on smelloscope/smello

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smello-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: smello-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for smello-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 433eca8763c835cf55f34a4957c1785acd1eb7739a08358375606a94efc3310d
MD5 8a3f0f0ec1451cd237d57da578b6d317
BLAKE2b-256 e621c3c8b27ba3d7b3f30b1ab3250c377c33798d271850f979eccf98ae68af1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for smello-0.4.0-py3-none-any.whl:

Publisher: publish-client.yml on smelloscope/smello

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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