A secure curl wrapper with middleware support and HTML-to-markdown extraction
Project description
scurl
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.1.tar.gz
(15.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sibylline_scurl-0.1.1.tar.gz.
File metadata
- Download URL: sibylline_scurl-0.1.1.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
466a714cbe8aa3162f4b2731680b44eee66bad182b4661d9619445996fc04e0e
|
|
| MD5 |
4753ba19942f0a78c623f1bfca49d4bb
|
|
| BLAKE2b-256 |
441cbdabc43e08590d9eba4f55539f7531a2621863af87da01cf9df70686b99c
|
File details
Details for the file sibylline_scurl-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sibylline_scurl-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54f38584ed29f5d9d6f12ea9d5e67285fe19ae04d031606e47d1fd1ca0445f4d
|
|
| MD5 |
23dcf6b9b95bd91ba5ce8e0bd2f27041
|
|
| BLAKE2b-256 |
c62e614a57b94527fad5eb6bbdbcb24895137671b30f76540946af1aed2d1c20
|