FOSSLight Source
Project description
FOSSLight Source
Detect the license for the source code.
Use Source Code Scanner and process the scanner results.
FOSSLight Source uses ScanCode, a source code scanner, to detect the copyright and license phrases contained in the file. Some files (ex- build script), binary files, directory and files in specific directories (ex-test) are excluded from the result. And removes words such as "-only" and "-old-style" from the license name to be printed. The output result is generated in Excel format.
Contents
📋 Prerequisite
FOSSLight Source needs a Python 3.6+.
For windows, you need to install Microsoft Visual C++ Build Tools.
🎉 How to install
It can be installed using pip3. It is recommended to install it in the python 3.6 + virtualenv environment.
$ pip3 install fosslight_source
🚀 How to run
There are two commands for FOSSLight Scanner.
1. fosslight_source
After executing ScanCode, the source code scanner, print the OSS Report.
Parameter | Argument | Description |
---|---|---|
h | None | Print help message. |
p | String | Path to detect source. |
j | None | As an output, the result of executing ScanCode in json format other than OSS Report is additionally generated. |
o | String | Output file name without file extension. |
Ex. Print result to OSS Report and json file
$ fosslight_source -p /home/source_path -j
2. fosslight_convert
Converts the result of executing ScanCode in json format into OSS Report format.
Parameter | Argument | Description |
---|---|---|
h | None | Print help message. |
p | String | Path of ScanCode json files. |
o | String | Output file name without file extension. |
Ex. Converting scancode json result to OSS report
$ fosslight_convert -p /home/jsonfile_dir
📁 Result
$ tree
.
├── OSS-Report_2021-05-03_00-39-49.csv
├── OSS-Report_2021-05-03_00-39-49.xlsx
├── scancode_2021-05-03_00-39-49.json
└── fosslight_src_log_2021-05-03_00-39-49.txt
- OSS-Report_[datetime].xlsx : FOSSLight Source result in OSS Report format.
- OSS-Report_[datetime].csv : FOSSLight Source result in csv format. (Except Windows)
- fosslight_src_log_[datetime].txt : The execution log.
- scancode_[datetime].json : The ScanCode result in case of -j option.
👏 How to report issue
Please report any ideas or bugs to improve by creating an issue in Git Repository. Then there will be quick bug fixes and upgrades. Ideas to improve are always welcome.
📄 License
FOSSLight Source is Apache-2.0, as found in the LICENSE file.
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
Built Distribution
File details
Details for the file fosslight_source-1.4.7.tar.gz
.
File metadata
- Download URL: fosslight_source-1.4.7.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b7902bd7c65c89dc60a5b2fa79207944aa0c2b1d6085e47ec8f3900a7d84915 |
|
MD5 | c5ac54d453a72217b6b021d40cfc227e |
|
BLAKE2b-256 | 8f3a405df0d223a7336e5af60dc9b39b0aa3b9ba7a336b55efd21292d04778c7 |
File details
Details for the file fosslight_source-1.4.7-py3-none-any.whl
.
File metadata
- Download URL: fosslight_source-1.4.7-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff2a3aa9a41c0e2cca69f1d1a2899a3a92b69704b502f85cb071e20b26a6ad08 |
|
MD5 | 0c3e788c52157e03213ec50f1b979ba9 |
|
BLAKE2b-256 | ecc0021f74bf40ff6f02c81c702c677a13dbba90ec8b92dca196b5774a84e755 |