Skip to main content

CLI tool that helps us easily define which licenses are not good based on the requirements.txt file. It uses pkg_resources to get details from the packages, given us the licenses listed byt the package owner and returns exit 1 if found a package that contains a blocked license.

Project description

About

CLI tool that helps us easily define which licenses are not good based on the requirements.txt file. It uses pkg_resources to get details from the packages, given us the licenses listed byt the package owner and returns exit 1 if found a package that contains a blocked license. Here goes the output of with all the possible options of the CLI package:

Usage: block-licenses [OPTIONS]

  CLI tool that helps us easily define which licenses are not good based on
  the requirements.txt file. It uses pkg_resources to get details from the
  packages, given us the licenses listed byt the package owner and returns
  exit 1 if found a package that contains a blocked license.

Options:
  -b, --blocked                   Print blocked licenses list.
  -p, --permitted                 Print permitted licenses list.
  -i, --interactive               Block packages interactively by analysing
                                  their licenses.
  -q, --quiet                     Do not print any output.
  -v, --verbose                   Print a detailed output for blocked
                                  packages.
  -P, --paranoid                  Paranoid mode for the interactive option,
                                  loop through each package even if contains
                                  a license that was already checked.
  -r TEXT                         Indicate the requirements file to be used.
  -a, --all                       Print all available licenses based on the
                                  requirements file.
  --mode [permitted|blocked]      Mode which will be used to check packages,
                                  either from the permitted list or blocked
                                  list perspective.
  --format [text|json|column|content]
                                  Format output.
  --get-allowed                   Retrieve allowed packages instead.
  -h, --help                      Show this message and exit.

Project details


Download files

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

Source Distribution

block-licenses-0.0.10.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

block_licenses-0.0.10-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file block-licenses-0.0.10.tar.gz.

File metadata

  • Download URL: block-licenses-0.0.10.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for block-licenses-0.0.10.tar.gz
Algorithm Hash digest
SHA256 94e99eefca08335828e828115d29b4204c5a85b07bdd159836d87c30f348a7be
MD5 a26b1bb5e5900668eb14ba3252a4e043
BLAKE2b-256 e643fae9f1a3648676a2bf4d5f409a61e1f5a0122ede4f6433923eeb5c937803

See more details on using hashes here.

File details

Details for the file block_licenses-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for block_licenses-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 e7fb9581d352cbcc7c53719e7a9203ee965a759e06b64c32fa06ab38e5239d64
MD5 55e91ecbfd9520244e5599724ccc4d1f
BLAKE2b-256 d56b55d44b87f971a02be90edf552fd7f70f8cd00e405c580ea2582f51364328

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