List license requirement of a project based on configuration file.
Project description
List license information from package specification file
Conda
For Conda environment:
- Create an environment specification file. Please follow this guide to create this file.
- Edit the file and remove all unnecessary dependencies (very important, otherwise the
it is easy to get inundated with too much packages). For example, remove things like
ipython
,ipykernel
, which are used for purpose other than the library itself. - Install this package.
- Run:
listcondalic conda environment.yml > output.json
Here environment.yml
should be the environment specification file.
The package licence information will be saved at output.json
.
Pip
Note: We use liccheck internally to produce the analysis.
- Create your package specification file (e.g.
requirements.txt
) including all the packages required. pipreqs is a good helping tool for this as well. - Install this package
- Run:
listcondalic pip requirements.txt > output.json
The package licence information will be saved at output.json
.
Existing problems
This packages isn't quite clever yet:
- It tries to skip a few packages such as
python', 'setuptools', 'wheel' and 'pip
. Hopefully, we won't neglect any important packages. - It only understand very basic package specifications in the conda environment file.
Complicated package sources (e.g.
-e .
,git
-based packages) will likely create bugs in the result.
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
listcondalic-0.1.0.tar.gz
(24.6 kB
view details)
Built Distribution
File details
Details for the file listcondalic-0.1.0.tar.gz
.
File metadata
- Download URL: listcondalic-0.1.0.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e7b31f23d56548740400dae6b21982d9b12c22906b647abd432c854849676fe |
|
MD5 | 05139facec9baecf6eb5c7c220181d50 |
|
BLAKE2b-256 | d4f9654bb5e840d03569d3073095e1d8fa94ff682d99449c343b3dafeb139f13 |
File details
Details for the file listcondalic-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: listcondalic-0.1.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5115a86b70554de574c5a344d1b80f5dca63890541a6b7eaa8438314196ad6ac |
|
MD5 | 14b9167bc49cdeb9e3d5a075005ede03 |
|
BLAKE2b-256 | dee3c557527a5b0f43586ee31367f3dd78b1adf96072ce1eb7a27f74d2331031 |