-
Notifications
You must be signed in to change notification settings - Fork 17
feat: add pilFlavor to generate license terms #177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… and improve error messages for clarity
…nd commercial use cases
…anagement and enhance validation logic
…mproved validation and error handling
…e to snake_case license terms and update return types for license terms methods
… management and enhance deprecation messages for clarity
…cluding non-commercial and commercial use cases
…or license terms and improve validation logic
…alidate_address function and update related unit tests
…g configuration validation logic
…ersion and adjust related tests for consistency
… into Group and IPAsset for improved licensing configuration management
… IPAsset, including commercial remix and non-commercial terms
…arify future usage of register_pil_terms
…for improved clarity and consistency
…alty policies and currencies, along with corresponding unit tests
…n logic for improved readability
…evenue share calculation and streamline address validation in DerivativeData class
lucas2brh
approved these changes
Dec 12, 2025
jia57b
approved these changes
Dec 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
PILFlavorutility class with pre-configured license term flavors (non-commercial social remixing, commercial use, commercial remix, creative commons attribution) for easier license terms creationLicenseTermsOverridedataclass to allow optional field overrides when using PILFlavor methodsLicenseclass:register_non_com_social_remixing_pil()→ Useregister_pil_terms(**asdict(PILFlavor.non_commercial_social_remixing()))register_commercial_use_pil()→ Useregister_pil_terms(**asdict(PILFlavor.commercial_use(...)))register_commercial_remix_pil()→ Useregister_pil_terms(**asdict(PILFlavor.commercial_remix(...)))PILFlavor.validate_license_terms()acrossLicense.pyandIPAsset.pysnake_to_camelandconvert_dict_keys_to_camel_caseutility functions for dictionary key transformationLicensingConfig.hook_datatype fromHexStrtostrwith properWeb3.to_bytes()conversionPILFlavor,PILFlavorError,LicenseTermsOverride,NativeRoyaltyPolicyCode Examples
Using PILFlavor with IPAsset.register_ip_asset()