Log License
A tool for helping developers staying compliant within their software projects. The tool crawls dependencies and logs their licenses, allowing to document and restrict certain licenses within a software project.
DISCLAIMER: There is no guarentee that all sublicenses or licenses will be identified and reported. For highest ensurance, use lock files to also catch sub-dependencies. However, this only looks within the given package manager, meaning C libraries and alike will not be reported here.
Features
- Report and save log of licenses included in project
- Check coverage of packages supported accepted licenses
- Supporting pre-commits with coverage thresholds and allowing manual validation of unknown license types
Supported dependency files
Though the tool supports multiple file types, it is highly recommended to use lock files or do a ´pip freeze > requirements.txt´ in order to ensure all sub-dependencies are also evaluated for their license.
- poetry.lock
- uv.lock
- pyproject.toml (traditional and poetry)
- requirements.txt (--develop adds search for requirements_dev.txt)
Supported package managers
- pypi
Installation
You can install Log License via pip from PyPI:
$ pip install loglicense
or using Poetry
$ poetry add loglicense
Quick example
Please see the Command-line Reference for details.
$ loglicense report path_to/poetry.lock
Example output:
| Name | License |
|:-------------------|:-----------------------------------|
| click | BSD-3-Clause |
| colorama | BSD |
| importlib-metadata | Apache Software License |
| pathlib | MIT License |
| tabulate | MIT |
| toml | MIT |
| typer | MIT License |
| typing-extensions | Python Software Foundation License |
| zipp | MIT License |
Alternatively you can let it search the executed directory for any supported file
$ loglicense report
Features to implement
- Support npmjs package manager (and package.json/package-lock.json)
- Support Pipfile, Pipfile.lock, conda.yaml, pip freeze
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the Apache 2.0 license, Log License is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.
This project is greatly inspired by dep-license created by Abdulelah Bin Mahfoodh.
Metadata
Release files for loglicense 0.1.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| loglicense-0.1.17.tar.gz | 14.1 kB | With provenance | Details for loglicense-0.1.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| loglicense-0.1.17-py3-none-any.whl | Python 3 | none | any | Details for loglicense-0.1.17-py3-none-any.whl |
Total release size: 28.4 kB
Release files / loglicense-0.1.17.tar.gz
| Download URL | loglicense-0.1.17.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75071f18140a6a6a22e72a5ca5c8bb4084e952354dbe3d407df4c7d9dba6ced2
|
|
BLAKE2b-256 checksum How to use checksums |
4c62e5211cac00cc192e825682a7c7f3b012d4ac132ccc55e18769fea6714ec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.
Transparency logRelease files / loglicense-0.1.17-py3-none-any.whl
| Download URL | loglicense-0.1.17-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21e29572939f599678e28d1c497d8335adcf1e846ee6716fbcc9c7ab40c05397
|
|
BLAKE2b-256 checksum How to use checksums |
c0279c964405a87ef2b823de8f12e380ec41bc8991bdaa88312e6777b4634465
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.
Transparency logSecurity for loglicense 0.1.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for loglicense-0.1.17.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.