Skip to main content

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](https://github.com/nexB/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:

`bash 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:

`bash python -m license_tools --help `

Example: To see the licenses of a specific joblib package version, use something like this:

`bash 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

license_tools-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file license_tools-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: license_tools-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for license_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7871bc2498899b9f931944aee52abfc7d5262e4566ee6227b34424923fa4175
MD5 3a92b6158db9adc1528bb7468fc0749f
BLAKE2b-256 eb136490b445334e3f531e8f75d134fa5e70f66610e1c06c8ea3a0f7c2e1f6bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page