RepositoryPythonFRPháp
jawah

jawah/kiss-headers

Python package for HTTP/1.1 style headers. Parse headers to objects. Most advanced available structure for http headers.

126sao
12fork
2issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: email-parsing

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: header

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: headers

#1 Repository của tháng

🧰 kiss-headers: Bộ công cụ HTTP Header hoàn chỉnh bằng Python

Object-oriented headers. Kind of structured headers.

kiss-headers là một thư viện Python cho phép xử lý header kiểu HTTP/1.1 và email một cách có cấu trúc, dưới dạng đối tượng. Thay vì thao tác thủ công với chuỗi header như headers['Content-Type'].split(';')[-1].split('=')[-1], bạn có thể truy cập trực tiếp các thuộc tính như headers.content_type.charset.

✨ Điểm nổi bật

  • Parse bất kỳ đối tượng nào: hỗ trợ bytes, str, fp, dict, email.Message, requests.Response, httpx._models.Response, urllib3.HTTPResponse.

  • Toán tử + và -: thêm/xóa header một cách trực quan, dễ đọc.

  • Case-insensitive & đồng nhất -/_: truy cập headers.set_cookie hoặc headers["Set-Cookie"] đều được.

  • Hỗ trợ header lặp lại: Set-Cookie trả về danh sách, mỗi phần tử là một đối tượng riêng biệt.

  • Tự động unquote/Fold: giá trị thuộc tính được xử lý tự động khi truy cập.

  • Type annotation đầy đủ: hỗ trợ tốt auto-completion trong IDE.

  • Không có dependency: nhẹ, độc lập, dễ tích hợp.

  • Hỗ trợ JSON trong giá trị header.

💡 Vì sao đáng chú ý

kiss-headers không chỉ là một parser đơn thuần — nó cung cấp một cách tiếp cận hướng đối tượng (OO) hoàn toàn mới cho header, kết hợp khả năng serialize/deserialize có kiểu. Phù hợp cho dự án cần xử lý header phức tạp từ HTTP hoặc email, đặc biệt khi làm việc với requests hoặc httpx.


#Python #HTTPHeaders #Parser #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.6k
Nov 27, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryPython
opendatalab/MinerU

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

84.6k
Dec 2, 2026
RepositoryPython
psf/requests

A simple, yet elegant, HTTP library.

54.8k
Nov 2, 2026
RepositoryPython
psf/requests-html

Pythonic HTML Parsing for Humans™

13.8k
Apr 16, 2024