# Apache 2.0 License block (Saduko-style) Emit this block as `` in `readme-py.template.md` **only** when `project.license` resolves to Apache 2.0. For any other licence, emit the one-liner ` is licensed under .` instead. Substitute every angle-bracketed token; if a token can't be resolved (missing author, no `project.urls.Repository`), ask the user — do not invent. ```markdown is licensed under the Apache License 2.0. You are free to: - Use for any purpose (commercial or non-commercial) - Modify and distribute the code - Use it in proprietary software - Patent protection included ### Requirements: - Include the LICENSE and NOTICE files - Preserve copyright notices - State any changes you made ### Attribution When using , we appreciate attribution such as: In your project: > Powered by by In academic papers: ```bibtex @software{, author = {, }, title = {: }, year = {}, url = {} } ``` Full license: See LICENSE and NOTICE files. ``` ## Token resolution | Token | Source | |---|---| | `` | `pyproject.toml` → `project.name` | | `` | `pyproject.toml` → `project.description` | | `` | `project.authors[0].name` (full name as given) | | `` | last whitespace-separated token of `` | | `` | everything before `` | | `` | current year (UTC) | | `` | `project.urls.Repository`, fall back to `Homepage` | ## NOTICE file The block references a `NOTICE` file. If the repo does not already have one, write a minimal `NOTICE` alongside the README: ``` Copyright This product includes software developed by . ``` The Apache 2.0 licence does not *require* a NOTICE file unless the upstream `LICENSE` says it does, but the attribution block references it, so emit one to keep the README honest.