Collection of tools for working with Open Source licenses
Project description
License tools
Collection of tools for working with Open Source licenses, focusing on Python packages.
Features
At the moment, this primarily provides some convenience wrappers around the ScanCode toolkit by nexB Inc.
- Use dataclasses instead of dictionaries for returning data.
- Automatically download a specific Python package from PyPI and analyze it.
- Aggregate how often each license has been used inside the current artifact.
- Look into shared object files (
*.so*
) to see what they are linking to. - Make everything available from the terminal.
- Drop all confusing parameters.
Installation
You can install this package from PyPI:
python -m pip install license_tools
Alternatively, you can use the package from source directly after installing the required dependencies.
Usage
To see the supported CLI parameters, just run:
python -m license_tools --help
Example: To see the licenses of a specific joblib package version, use something like this:
python -m license_tools --package "joblib==1.2.0"
If you want to use the package as a library, have a look at the license_tools.scancode_tools.run
method for example to see how everything interacts.
License
This package is subject to the terms of the Apache-2.0 license.
Disclaimer
All results are generated automatically and provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. No generated content should be considered or used as legal advice. Consult an Attorney for any legal advice.
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
Hashes for license_tools-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bfc1db18d10d31c666418ebc2c204dde83495f2fa13e2685b3df53a2eee15d2 |
|
MD5 | 2e278d7429d867d779cadf46fbf7b777 |
|
BLAKE2b-256 | 3ae0123f14ec2d603843597f3a5c230b3bf339f9bfdc26f7036f2496f2c570b7 |