legacy-puyo-tools 0.0.1__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. legacy_puyo_tools-0.2.0/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
  2. legacy_puyo_tools-0.2.0/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  3. legacy_puyo_tools-0.2.0/.github/workflows/ci.yaml +62 -0
  4. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/.github/workflows/release.yaml +9 -11
  5. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/.markdownlint.yaml +1 -1
  6. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/.pre-commit-config.yaml +1 -0
  7. legacy_puyo_tools-0.2.0/CHANGELOG.md +43 -0
  8. legacy_puyo_tools-0.2.0/CODE_OF_CONDUCT.md +128 -0
  9. legacy_puyo_tools-0.2.0/CONTRIBUTING.md +63 -0
  10. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/LICENSE +2 -1
  11. legacy_puyo_tools-0.2.0/LICENSES/CC-BY-4.0.txt +156 -0
  12. legacy_puyo_tools-0.2.0/PKG-INFO +128 -0
  13. legacy_puyo_tools-0.2.0/README.md +95 -0
  14. legacy_puyo_tools-0.2.0/REUSE.toml +20 -0
  15. legacy_puyo_tools-0.2.0/formats.md +61 -0
  16. legacy_puyo_tools-0.2.0/pyproject.toml +116 -0
  17. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/src/legacy_puyo_tools/__init__.py +2 -2
  18. legacy_puyo_tools-0.2.0/src/legacy_puyo_tools/__main__.py +10 -0
  19. legacy_puyo_tools-0.2.0/src/legacy_puyo_tools/cli.py +151 -0
  20. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/src/legacy_puyo_tools/exceptions.py +5 -0
  21. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/src/legacy_puyo_tools/fpd.py +61 -55
  22. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/src/legacy_puyo_tools/mtx.py +50 -33
  23. legacy_puyo_tools-0.2.0/tests/__init__.py +5 -0
  24. legacy_puyo_tools-0.2.0/tests/conftest.py +33 -0
  25. legacy_puyo_tools-0.2.0/tests/convert_fpd_test.py +61 -0
  26. legacy_puyo_tools-0.2.0/tests/create_fpd_test.py +81 -0
  27. legacy_puyo_tools-0.2.0/tests/create_mtx_test.py +32 -0
  28. legacy_puyo_tools-0.2.0/tests/misc_test.py +16 -0
  29. legacy_puyo_tools-0.2.0/uv.lock +944 -0
  30. legacy_puyo_tools-0.0.1/.github/workflows/ci.yaml +0 -35
  31. legacy_puyo_tools-0.0.1/CHANGELOG.md +0 -14
  32. legacy_puyo_tools-0.0.1/PKG-INFO +0 -34
  33. legacy_puyo_tools-0.0.1/README.md +0 -22
  34. legacy_puyo_tools-0.0.1/REUSE.toml +0 -15
  35. legacy_puyo_tools-0.0.1/docs/formats.md +0 -26
  36. legacy_puyo_tools-0.0.1/pyproject.toml +0 -87
  37. legacy_puyo_tools-0.0.1/src/legacy_puyo_tools/cli.py +0 -177
  38. legacy_puyo_tools-0.0.1/uv.lock +0 -492
  39. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/.editorconfig +0 -0
  40. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/.github/dependabot.yml +0 -0
  41. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/.gitignore +0 -0
  42. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/LICENSES/MIT-0.txt +0 -0
  43. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/LICENSES/MIT.txt +0 -0
  44. {legacy_puyo_tools-0.0.1 → legacy_puyo_tools-0.2.0}/src/legacy_puyo_tools/py.typed +0 -0
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: "[BUG]"
5
+ labels: enhancement
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. Windows]
28
+ - Python Version [e.g. 3.13, 3.12]
29
+ - Version [e.g. 1.0.0]
30
+
31
+ **Additional context**
32
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: "[FEATURE]"
5
+ labels: bug
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,62 @@
1
+ # SPDX-FileCopyrightText: 2025 Samuel Wu
2
+ #
3
+ # SPDX-License-Identifier: MIT-0
4
+
5
+ name: Lint, format, and test
6
+
7
+ on:
8
+ pull_request:
9
+ push:
10
+ branches:
11
+ - main
12
+
13
+ jobs:
14
+ lint:
15
+ name: Lint and format
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ # Setup environment
19
+ - uses: actions/checkout@v4
20
+ - uses: astral-sh/setup-uv@v6
21
+ - uses: actions/setup-python@v5
22
+ with:
23
+ python-version-file: "pyproject.toml"
24
+
25
+ # Disable rules about documentation and TODOs in CI.
26
+ # Instead yell at the developer and let them decide when to add
27
+ # documentation or remove TODOs.
28
+ - name: Ruff lint
29
+ run: uv run ruff check --fix --ignore=D101,D102,FIX002
30
+
31
+ - name: Lint using pylint
32
+ run: uv run pylint src tests --disable=C0115,C0116,W0511
33
+
34
+ - name: Lint using pyright
35
+ run: uv run pyright
36
+
37
+ - name: Ruff format
38
+ run: uv run ruff format
39
+
40
+ test:
41
+ name: Run tests
42
+ strategy:
43
+ matrix:
44
+ os:
45
+ - ubuntu-latest
46
+ - macos-latest
47
+ - windows-latest
48
+ python-version:
49
+ - "3.9"
50
+ - "3.10"
51
+ - "3.11"
52
+ - "3.12"
53
+ - "3.13"
54
+ runs-on: ${{ matrix.os }}
55
+ steps:
56
+ - uses: actions/checkout@v4
57
+ - uses: astral-sh/setup-uv@v3
58
+ - uses: actions/setup-python@v5
59
+ with:
60
+ python-version: ${{ matrix.python-version }}
61
+
62
+ - run: uv run pytest
@@ -15,25 +15,23 @@ jobs:
15
15
  environment:
16
16
  name: pypi
17
17
  permissions:
18
+ contents: write
18
19
  id-token: write
19
20
  steps:
21
+ # Setup environment
20
22
  - uses: actions/checkout@v4
21
-
22
- - name: Install uv
23
- uses: astral-sh/setup-uv@v6
24
- with:
25
- enable-cache: true
26
-
27
- - name: Set up Python
28
- uses: actions/setup-python@v5
23
+ - uses: astral-sh/setup-uv@v6
24
+ - uses: actions/setup-python@v5
29
25
  with:
30
26
  python-version-file: "pyproject.toml"
31
27
 
32
- - name: Install package
33
- run: uv sync --locked --all-extras --dev
34
-
35
28
  - name: Build package
36
29
  run: uv build
37
30
 
31
+ - name: Upload package to existing release
32
+ uses: softprops/action-gh-release@v2
33
+ with:
34
+ files: dist/legacy_puyo_tools-*
35
+
38
36
  - name: Publish package
39
37
  run: uv publish --trusted-publishing always
@@ -59,4 +59,4 @@ link-image-style:
59
59
  url_inline: false
60
60
 
61
61
  table-pipe-style:
62
- style: no_leading_or_trailing
62
+ style: leading_and_trailing
@@ -16,6 +16,7 @@ repos:
16
16
  - id: end-of-file-fixer
17
17
  - id: fix-byte-order-marker
18
18
  - id: mixed-line-ending
19
+ - id: name-tests-test
19
20
  - id: trailing-whitespace
20
21
 
21
22
  - repo: https://github.com/astral-sh/ruff-pre-commit
@@ -0,0 +1,43 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to
7
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
+
9
+ ## 0.2.0 - 2025-07-18
10
+
11
+ ### Added
12
+
13
+ - A way to run the project using `runpy` or `python -m legacy_puyo_tools`.
14
+ - Testing infrastructure to avoid regressions.
15
+ - Tests for the `fpd` module.
16
+ - Custom `__str__` functions to avoid re-encoding.
17
+
18
+ ### Changed
19
+
20
+ - Backport project to Python 3.9+ to follow Debian LTS.
21
+ - Take in strings and Path-Like objects for path arguments.
22
+ - `main` to `app` for the command line interface.
23
+
24
+ ## 0.1.0 - 2025-07-16
25
+
26
+ ### Added
27
+
28
+ - Installation, usage, and supported games sections in README.md.
29
+ - Information about the `fmp` format (#2).
30
+
31
+ ### Changed
32
+
33
+ - Rewrite the command line interface to use [`cloup`] instead of `argparse`.
34
+ - Update formats.md with current support progress.
35
+
36
+ [`cloup`]: https://cloup.readthedocs.io
37
+
38
+ ## 0.0.1 - 2025-07-15
39
+
40
+ ### Added
41
+
42
+ - Basic extraction support for the `mtx` format.
43
+ - Full conversion support for the `fpd` format.
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ - Demonstrating empathy and kindness toward other people
21
+ - Being respectful of differing opinions, viewpoints, and experiences
22
+ - Giving and gracefully accepting constructive feedback
23
+ - Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ - Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ - The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ - Trolling, insulting or derogatory comments, and personal or political attacks
33
+ - Public or private harassment
34
+ - Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ - Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ <twopizza9621536@gmail.com>.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ <https://www.contributor-covenant.org/version/2/0/code_of_conduct.html>.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ <https://www.contributor-covenant.org/faq>. Translations are available at
128
+ <https://www.contributor-covenant.org/translations>.
@@ -0,0 +1,63 @@
1
+ # How to contribute
2
+
3
+ First read and follow the [Code of Conduct](CODE_OF_CONDUCT.md).
4
+
5
+ Want a feature to be in to `legacy-puyo-tools`. Great! Create an issue at
6
+ <https://github.com/wushenrong/legacy-puyo-tools/issues> and add a description
7
+ on why it should be added. Be sure that the feature is related to the project's
8
+ goal.
9
+
10
+ Found a bug? Create an issue on how the bug occurred.
11
+
12
+ If you are contributing code, be sure to add a signoff to your commits with the
13
+ `-s` or `--signoff` flag as this project uses the
14
+ [Developer Certificate of Origin][dco] for resolving licensing issues between
15
+ contributors. Make sure to add tests and make them pass to avoid regression.
16
+
17
+ [dco]: https://developercertificate.org/
18
+
19
+ ## Contributors
20
+
21
+ - @nickworonekin for creating Puyo Text Editor, some code is from that project.
22
+ - @52871299hzy for contributing information about the `fmp` format.
23
+
24
+ ## Developer Certificate of Origin
25
+
26
+ Below is a reproduction of the [DCO][dco] for reference.
27
+
28
+ ```txt
29
+ Developer Certificate of Origin
30
+ Version 1.1
31
+
32
+ Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
33
+
34
+ Everyone is permitted to copy and distribute verbatim copies of this
35
+ license document, but changing it is not allowed.
36
+
37
+
38
+ Developer's Certificate of Origin 1.1
39
+
40
+ By making a contribution to this project, I certify that:
41
+
42
+ (a) The contribution was created in whole or in part by me and I
43
+ have the right to submit it under the open source license
44
+ indicated in the file; or
45
+
46
+ (b) The contribution is based upon previous work that, to the best
47
+ of my knowledge, is covered under an appropriate open source
48
+ license and I have the right under that license to submit that
49
+ work with modifications, whether created in whole or in part
50
+ by me, under the same open source license (unless I am
51
+ permitted to submit under a different license), as indicated
52
+ in the file; or
53
+
54
+ (c) The contribution was provided directly to me by some other
55
+ person who certified (a), (b) or (c) and I have not modified
56
+ it.
57
+
58
+ (d) I understand and agree that this project and the contribution
59
+ are public and that a record of the contribution (including all
60
+ personal information I submit with it, including my sign-off) is
61
+ maintained indefinitely and may be redistributed consistent with
62
+ this project or the open source license(s) involved.
63
+ ```
@@ -1,6 +1,7 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Samuel Wu
3
+ Copyright (c) 2021 Nick Woronekin
4
+ Copyright (c) 2025 Samuel Wu and contributors
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
7
  this software and associated documentation files (the "Software"), to deal in
@@ -0,0 +1,156 @@
1
+ Creative Commons Attribution 4.0 International
2
+
3
+ Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
4
+
5
+ Using Creative Commons Public Licenses
6
+
7
+ Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
8
+
9
+ Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
10
+
11
+ Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
12
+
13
+ Creative Commons Attribution 4.0 International Public License
14
+
15
+ By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
16
+
17
+ Section 1 – Definitions.
18
+
19
+ a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
20
+
21
+ b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
22
+
23
+ c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
24
+
25
+ d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
26
+
27
+ e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
28
+
29
+ f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
30
+
31
+ g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
32
+
33
+ h. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
34
+
35
+ i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
36
+
37
+ j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
38
+
39
+ k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
40
+
41
+ Section 2 – Scope.
42
+
43
+ a. License grant.
44
+
45
+ 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
46
+
47
+ A. reproduce and Share the Licensed Material, in whole or in part; and
48
+
49
+ B. produce, reproduce, and Share Adapted Material.
50
+
51
+ 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
52
+
53
+ 3. Term. The term of this Public License is specified in Section 6(a).
54
+
55
+ 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
56
+
57
+ 5. Downstream recipients.
58
+
59
+ A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
60
+
61
+ B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
62
+
63
+ 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
64
+
65
+ b. Other rights.
66
+
67
+ 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
68
+
69
+ 2. Patent and trademark rights are not licensed under this Public License.
70
+
71
+ 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
72
+
73
+ Section 3 – License Conditions.
74
+
75
+ Your exercise of the Licensed Rights is expressly made subject to the following conditions.
76
+
77
+ a. Attribution.
78
+
79
+ 1. If You Share the Licensed Material (including in modified form), You must:
80
+
81
+ A. retain the following if it is supplied by the Licensor with the Licensed Material:
82
+
83
+ i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
84
+
85
+ ii. a copyright notice;
86
+
87
+ iii. a notice that refers to this Public License;
88
+
89
+ iv. a notice that refers to the disclaimer of warranties;
90
+
91
+ v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
92
+
93
+ B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
94
+
95
+ C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
96
+
97
+ 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
98
+
99
+ 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
100
+
101
+ 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
102
+
103
+ Section 4 – Sui Generis Database Rights.
104
+
105
+ Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
106
+
107
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
108
+
109
+ b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
110
+
111
+ c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
112
+ For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
113
+
114
+ Section 5 – Disclaimer of Warranties and Limitation of Liability.
115
+
116
+ a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
117
+
118
+ b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
119
+
120
+ c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
121
+
122
+ Section 6 – Term and Termination.
123
+
124
+ a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
125
+
126
+ b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
127
+
128
+ 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
129
+
130
+ 2. upon express reinstatement by the Licensor.
131
+
132
+ c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
133
+
134
+ d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
135
+
136
+ e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
137
+
138
+ Section 7 – Other Terms and Conditions.
139
+
140
+ a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
141
+
142
+ b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
143
+
144
+ Section 8 – Interpretation.
145
+
146
+ a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
147
+
148
+ b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
149
+
150
+ c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
151
+
152
+ d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
153
+
154
+ Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
155
+
156
+ Creative Commons may be contacted at creativecommons.org.