木兰宽松许可证, 第2版

2026 年 4 月 16 日

关于「木兰宽松许可证，第2版」的原始文本，请参见：
https://license.coscl.org.cn/MulanPSL2

---

Mulan Permissive Software License，Version 2 (Mulan PSL v2)

Copyright (c) 2026 TapStat Contributors

Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v2 (this License) with the following terms and conditions:

0. Definition

   Software means the program and related documents which are licensed under this License and comprise all Contribution(s).

   Contribution means the copyrightable work licensed by a particular Contributor under this License.

   Contributor means the Subject who licenses the Contribution(s) under this License and is a natural person, Legal Person or unincorporated organization.

   You means the individual or Legal Entity exercising rights under this License.

   Legal Entity means the entity which exercises rights under this License through a particular Contributor.

1. Granting of Copyright License

   Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, royalty-free, non-exclusive, sublicensable copyright license to reproduce, use, modify, or distribute its Contribution or Software.

2. Granting of Patent License

   Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, royalty-free, non-exclusive, sublicensable patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in the future which will be necessarily infringed by its Contribution alone, excluding of any contribution from others. If You or Your Affiliates directly or indirectly institute patent litigation against any person to enforce any patent claim(s) against the Contribution or Software (including a cross-claim or counterclaim in a lawsuit), the patent license granted to You under this License for the Contribution or Software shall terminate as of the date such litigation is filed.

3. No Trademark License

   No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributors, except as required to fulfill notice conditions in Section 4.

4. Distribution Restriction

   You may distribute the Software in any medium with or without modification, and in Source or Object form, provided that You provide recipients all the materials in the source code form of the Software and a copy of this License, and meet the following conditions:

   (1) You must give any other recipients of the Software or derivative works a copy of this License; and

   (2) You must cause any modified files to carry prominent notices stating that You changed the files; and

   (3) You must retain, in the Source form of any derivative works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Software; and

   (4) If the Software includes a "NOTICE" text file as part of its distribution, then any derivative works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the derivative works, in at least one of the following places: within a NOTICE text file distributed as part of the derivative works; within the Source form or documentation, if provided along with the derivative works; or, within a display generated by the derivative works, if and wherever such third-party notices normally appear.

5. Disclaimer of Warranty and Limitation of Liability

   THE SOFTWARE AND ALL CONTRIBUTIONS THEREUNDER ARE PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE SOFTWARE AND ASSUME ANY RISKS ASSOCIATED WITH YOUR EXERCISE OF PERMISSIONS UNDER THIS LICENSE.

6. Language

   THIS LICENSE IS WRITTEN IN BOTH CHINESE AND ENGLISH, AND THE CHINESE VERSION AND ENGLISH VERSION SHALL HAVE THE SAME LEGAL EFFECT. IN CASE OF ANY DISCREPANCY BETWEEN THE CHINESE VERSION AND THE ENGLISH VERSION, THE ENGLISH VERSION SHALL PREVAIL.

   本许可证以中英文双语书写。中英文版本具有同等法律效力。如果中英文版本存在任何不一致，以英文版本为准。
