介绍

joserfc 是一个 Python 库,提供了对多个重要的 JSON Object Signing and Encryption (JOSE) 标准的全面实现。

joserfc 源自 Authlib,专门为 JOSE 功能量身定制。同时我们重新设计了 API,让开发人员更容易在其 Python 应用程序中处理 JWS、JWE、JWK、JWA 和 JWT。

特点

  • Python 类型提示joserfc 充分利用了 Python 的类型提示功能,提供了更具表达力和可读性的代码库。使用类型提示可以增强开发工作流程,实现更好的静态分析、改善 IDE 支持和更可靠的代码重构。

  • 代码库组织有序且符合 RFC 标准joserfc 的结构遵循 RFC 标准,确保不同的 JOSE 功能之间的清晰分离和组织。它严格遵循最新的 JOSE 标准版本,确保最高水平的互操作性和合规性。

为何创建 joserfc

joserfc 分离自 Authlib,以便于简化维护和模块化。之前,Authlib 是作为一个单体库开发的,旨在设计一个涵盖广泛身份验证和安全需求的全面 API。然而,随着项目的发展,我们发现是时候将模块从 Authlib 中拆分出来了,这将有助于提高项目的可维护性,并提供更专注和专业化的 JOSE 库。

With joserfc, developers can now benefit from a standalone library dedicated specifically to JOSE standards. This focused approach allows for better code organization, improved documentation, and a more streamlined development experience. By utilizing joserfc, developers can confidently integrate JOSE functionalities into their projects, knowing that they are working with a dedicated and well-maintained solution.