Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ instead of `bin`.
## Example
Here are some examples of possible use cases to quickly get you started with the spdx-tools:
```python
import logging

from license_expression import get_spdx_licensing

from spdx.model.checksum import Checksum, ChecksumAlgorithm
from spdx.model.file import File, FileType
from spdx.model.relationship import Relationship, RelationshipType
from spdx.parser.parse_anything import parse_file
from spdx.validation.document_validator import validate_full_spdx_document
from spdx.writer.write_anything import write_file

# read in an SPDX document from a file
document = parse_file("spdx_document.json")

Expand Down