# License

This project's source code is licensed under the **GNU Lesser General Public License** (LGPL) version 3.

The LGPL license allows you to use mcproto as a library pretty much in any code-base, including in proprietary
code-bases. However, if you wish to make a derivative project to mcproto itself, such a project will need to be licensed under
LGPL as well.

!!! tip

    If you want to see a quick glance of what this license allows, prohibits & requires, check it out in [tl;dr
    legal][tldr-lgpl].

??? example "Full LICENSE text"

    ```title="LICENSE.txt"
    --8<-- "LICENSE.txt"
    ```

!!! note

    If you need a copyright header for attribution, you can use:

    === "Rendered"

        <a href="https://github.com/py-mine/mcproto">mcproto</a>

        Copyright &copy; 2025 ItsDrike &lt;itsdrike@protonmail.com&gt;

    === "HTML"

        ```html
        <a href="https://github.com/py-mine/mcproto">mcproto</a>

        Copyright &copy; 2025 ItsDrike &lt;itsdrike@protonmail.com&gt;
        ```

## This documentation

This documentation itself follows a Creative Commons license: <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> <img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1" alt="">

!!! note

    If you need a copyright header for proper attribution, you can use:

    === "Rendered"

        <a href="https://py-mine.github.io/mcproto">Mcproto Documentation</a> &copy; 2024 by <a href="mailto:itsdrike@protonmail.com">ItsDrike</a>

        If you also need the license identifier, use the following:

        <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> <img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1" alt="">

    === "HTML"

        ```html
        <a href="https://py-mine.github.io/mcproto">Mcproto Documentation</a> &copy; 2024 by <a href="mailto:itsdrike@protonmail.com">ItsDrike</a>
        ```

        If you also need the license identifier, use the following:

        ```html
        <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> <img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1" alt="">
        ```

## Differently licensed parts

Some parts of the project follow a different license. See the `LICENSE-THIRD-PARTY.txt` file, which lists all of these
parts and their respective licenses.

??? example "Full LICENSE-THIRD-PARTY text"

    ```title="LICENSE-THIRD-PARTY.txt"
    --8<-- "LICENSE-THIRD-PARTY.txt"
    ```

[tldr-lgpl]: https://www.tldrlegal.com/license/gnu-lesser-general-public-license-v3-lgpl-3
