Generate legal notices (attribution to authors and copyrights) for software packages
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
PURL2NOTICES - Package URL (PURL) to Legal Notices
Generate legal notices (attribution to authors and copyrights) for software packages.
Features
- Multi-format support: Process PURLs, archives (JAR/WAR/WHL), directories, and cache files
- 12+ ecosystems: npm, PyPI, Maven, Cargo, Go, NuGet, Conda, and more
- Smart extraction: Uses multiple engines (purl2src, upmex, oslili) for accurate license detection
- Flexible output: Text/HTML with customizable Jinja2 templates
- Cache management: CycloneDX format with merge capabilities
- Override system: Customize licenses and filter unwanted content
Installation
pip install semantic-copycat-purl2notices
For development:
git clone https://github.com/oscarvalenzuelab/semantic-copycat-purl2notices.git
cd semantic-copycat-purl2notices
pip install -e .[dev]
Quick Start
# Process a single package
purl2notices -i pkg:npm/express@4.0.0
# Process an archive file
purl2notices -i library.jar -o NOTICE.txt
# Scan a directory
purl2notices -i ./src --recursive -o NOTICE.html -f html
# Process multiple packages
echo "pkg:npm/express@4.0.0" > packages.txt
echo "pkg:pypi/django@4.2.0" >> packages.txt
purl2notices -i packages.txt -o NOTICE.txt
Documentation
- User Guide - Complete usage documentation
- Examples - Detailed examples and use cases
- Configuration - Configuration options and customization
Common Use Cases
Generate notices for a project
purl2notices -i ./my-project --recursive --cache project.cache.json -o NOTICE.txt
Merge notices from multiple sources
purl2notices -i cache1.json --merge-cache cache2.json -o combined-NOTICE.txt
Customize output with overrides
purl2notices -i packages.txt --overrides custom.json -o NOTICE.txt
API Usage
from purl2notices import Purl2Notices
import asyncio
processor = Purl2Notices()
package = asyncio.run(processor.process_single_purl("pkg:npm/express@4.0.0"))
notices = processor.generate_notices([package])
print(notices)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semantic_copycat_purl2notices-1.2.0.tar.gz.
File metadata
- Download URL: semantic_copycat_purl2notices-1.2.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17af1ff38c2d4db904d5e4d55bc806f659b9755a4322554996d01cd3f5dde632
|
|
| MD5 |
78d847013eaf259594d6acb07d559d74
|
|
| BLAKE2b-256 |
2272b888761bd9540f5334c2bb2f2ad844971ef56d8283c9e858a1f50f058233
|
Provenance
The following attestation bundles were made for semantic_copycat_purl2notices-1.2.0.tar.gz:
Publisher:
python-publish.yml on oscarvalenzuelab/semantic-copycat-purl2notices
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semantic_copycat_purl2notices-1.2.0.tar.gz -
Subject digest:
17af1ff38c2d4db904d5e4d55bc806f659b9755a4322554996d01cd3f5dde632 - Sigstore transparency entry: 618493340
- Sigstore integration time:
-
Permalink:
oscarvalenzuelab/semantic-copycat-purl2notices@db1fd422fc6f5d4a5435ba68d92a73f60db443cd -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/oscarvalenzuelab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@db1fd422fc6f5d4a5435ba68d92a73f60db443cd -
Trigger Event:
release
-
Statement type:
File details
Details for the file semantic_copycat_purl2notices-1.2.0-py3-none-any.whl.
File metadata
- Download URL: semantic_copycat_purl2notices-1.2.0-py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
811b6b29884f4e18ee3d13e57fe99b63a42849d4b186118bc9fcadd30c4520a1
|
|
| MD5 |
6b2c1bd8802ceeb85c20a17f3f690da1
|
|
| BLAKE2b-256 |
d8be22d05567de693651ed3d73a7c100e68668d08167219e01c8b545612ea7ed
|
Provenance
The following attestation bundles were made for semantic_copycat_purl2notices-1.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on oscarvalenzuelab/semantic-copycat-purl2notices
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semantic_copycat_purl2notices-1.2.0-py3-none-any.whl -
Subject digest:
811b6b29884f4e18ee3d13e57fe99b63a42849d4b186118bc9fcadd30c4520a1 - Sigstore transparency entry: 618493342
- Sigstore integration time:
-
Permalink:
oscarvalenzuelab/semantic-copycat-purl2notices@db1fd422fc6f5d4a5435ba68d92a73f60db443cd -
Branch / Tag:
refs/tags/v1.2.0 - Owner: https://github.com/oscarvalenzuelab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@db1fd422fc6f5d4a5435ba68d92a73f60db443cd -
Trigger Event:
release
-
Statement type: