Phápjawah/kiss-headers
Python package for HTTP/1.1 style headers. Parse headers to objects. Most advanced available structure for http headers.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tháng
#1 Repository của tháng
#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ậpheaders.set_cookiehoặcheaders["Set-Cookie"]đều được. -
Hỗ trợ header lặp lại:
Set-Cookietrả 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.
Reverse engineer anything with agents, from app behavior down to native binaries.
:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.
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.
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.
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.