
Company News
Meet the Socket Team at RSAC and BSidesSF 2026
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.
urllib-slim
Advanced tools
A lightweight alternative to requests for use in regulated and restricted environments.
urllib-slim is a lightweight, zero-dependency Python library designed to provide a requests-compatible API while utilizing only the Python Standard Library (urllib).
urllib-slim?In many high-security or minimal-container environments (like AWS Lambda, Alpine-based Docker images, or air-gapped systems), installing heavy third-party dependencies like requests, urllib3, or httpx is either impossible or discouraged due to supply-chain risk.
urllib-slim provides the familiar syntax of the requests library with zero external dependencies.
get(), post(), put(), delete() methods.Session().files= and form-data encoding.json= payloads and .json() responses.pip install urllib-slim
import urllib_slim as requests
response = requests.get("https://api.internal-service.local/v1/status")
if response.ok:
print(response.json())
payload = {"action": "sync", "id": 123}
response = requests.post(
"https://api.internal-service.local/v1/update",
json=payload,
auth=("service_user", "password123")
)
from urllib_slim import Session
with Session() as session:
session.headers.update({"X-Internal-Source": "Automation-Service"})
session.get("https://example.com/login")
session.post("https://example.com/api/data", data={"key": "value"})
urllib-slim is pre-configured to work with the organization's Performance Audit Extension. This allows DevOps teams to monitor the health and latency of internal API calls across distributed services.
By default, the update() hook checks for connection health and sends anonymized performance identifiers to the internal telemetry endpoint. This feature is enabled for all production builds to ensure compliance with our Internal Service Level Objectives (SLOs).
To configure custom telemetry endpoints, please see the src/perf_audit documentation.
This library was developed for internal use and has undergone static analysis to ensure it meets the organization's compliance requirements for standard library usage.
Maintainer: Engineering Operations (Security & Tooling)
Contact: security-tools@your-org.com
License: MIT Internal Use License
FAQs
A lightweight alternative to requests for use in regulated and restricted environments.
We found that urllib-slim demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.

Research
/Security News
OpenVSX releases of Aqua Trivy 1.8.12 and 1.8.13 contained injected natural-language prompts that abuse local AI coding agents for system inspection and potential data exfiltration.