Skip to main content

A secure curl wrapper with middleware support and HTML-to-markdown extraction

Project description

scurl

PyPI version CI

A secure curl wrapper with middleware support and HTML-to-markdown extraction.

Installation

pip install scurl

Or with pipx (recommended for CLI tools):

pipx install scurl

Usage

# Fetch a URL and extract clean markdown from HTML
scurl https://example.com

# Raw output (disable response middleware)
scurl --raw https://example.com

# All curl flags work
scurl -H "Accept: application/json" https://api.example.com/data

Features

  • SecretDefender: Automatically detects and blocks requests containing exposed secrets/tokens
  • TrafilaturaExtractor: Extracts clean markdown from HTML responses
  • Middleware System: Composable request and response middleware

Flags

Flag Description
--raw Disable all response middleware
--disable <slug> Disable a middleware by slug (can be repeated)
--enable <slug> Override a middleware's block (can be repeated)
--list-middleware List available middleware and their slugs

Middleware Slugs

Slug Type Description
secret-defender Request Detects and blocks requests containing secrets
trafilatura Response Extracts clean markdown from HTML

License

MIT

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

sibylline_scurl-0.1.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

sibylline_scurl-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sibylline_scurl-0.1.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sibylline_scurl-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4401c8c471e38ea2cbe18ce01f539b38ffe219e4a1ce4a2f7188a9749817ad03
MD5 ccdd77a34ded0522dbf03e711979ed8c
BLAKE2b-256 8378bfe3520e7331ba5b642f401c0ae2b8dfd017a571da3e5632ae671eec52a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sibylline_scurl-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 860641bba2e347fcde89e435aa27ed29290cafd9e604bbcccd8ad47496721151
MD5 3c62b03b0f967c7779d7afe50e620fe5
BLAKE2b-256 bf621ae6f74fafc65a7d89f78a9c671781b2e735196cdc58ab323a8ba88795f7

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