Skip to main content

LiLiLi: List the Licenses of the Libraries

PyPI Version Python Versions License Code style: black Imports: isort

LiLiLi helps you to retrieve and audit software license information.

Installation

LiLiLi is available on PyPI:

$ pip install lilili

You can also use poetry to add it to a specific Python project.

$ poetry add lilili

Examples

Search for and list the licenses of libraries

Python libraries

$ pip list > pip-list.txt
$ lilili search --yaml pip-list.txt

Example of result.yml:

- domain: pypi
  name: requests
  version: 2.25.1
  licenses:
    - spdx_id: Apache-2.0
      basis: API_EXACT
      source_url: https://pypi.org/pypi/requests/2.25.1/json
  download_url: https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl
  homepage: https://requests.readthedocs.io
  git_url: https://github.com/psf/requests
  updated_at: "2021-02-22T17:32:25.323561"
- domain: pypi
  name: idna
  version: "2.10"
  licenses:
    - spdx_id: BSD-3-Clause
      basis: API_LATEST
      source_url: https://pypi.org/pypi/idna/json
    - spdx_id: BSD-3-Clause
      basis: GITHUB_LICENSES_API
      source_url: https://api.github.com/repos/kjd/idna/license
  download_url: https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl
  homepage: https://github.com/kjd/idna
  git_url: https://github.com/kjd/idna
  updated_at: "2021-02-22T17:32:24.035106"

Ruby libraries

$ bundle list > bundle-list.txt
$ lilili search --yaml bundle-list.txt

The output result.yml is in the same format as above.

Node.js libraries

$ yarn list > yarn-list.txt
$ lilili search --yaml yarn-list.txt

The output result.yml is in the same format as above.

Why LiLiLi?

  • LiLiLi uses the SPDX license list, which is also used by GitHub Licenses API, so the license notation can be reused.
  • If LiLiLi cannot determine the license for a particular version of the library, it will search for the latest version of the license or a license registered in the GitHub repository.
  • LiLiLi will reveal the URL of the API on which the licensing decision is based, so you can double-check it yourself.

Download files

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

Source Distribution

lilili-0.1.0.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

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

lilili-0.1.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file lilili-0.1.0.tar.gz.

File metadata

  • Download URL: lilili-0.1.0.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/4.18.0-240.1.1.el8_3.x86_64

File hashes

Hashes for lilili-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b8f42c65d717d344bfcb32a75c912690efe0402957ea9d4dd87f6826638cf3eb
MD5 a06d3aaa306eb3764d4661f6da58d025
BLAKE2b-256 0e8c5744fb93c8cd1f2634d640fc71e597a9929324ff804715f3ade5f4ecb20b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lilili-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/4.18.0-240.1.1.el8_3.x86_64

File hashes

Hashes for lilili-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e50aa45a4707c69ab383f11756a9aed94a6eb102bef9a0c398ce8018938ebded
MD5 982aef5972adfa2745379f90ae560e2a
BLAKE2b-256 c9c6681338d1e82efb78e732fbbd145d7de353d31674a7a9f75c1c1eb991453e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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