cli-support-1.3
توضیحات
Support component license information (CLI) files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cli-support-1.3 |
| نام | cli-support |
| نسخه کتابخانه | 1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Thomas Graf |
| ایمیل نویسنده | thomas.graf@siemens.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/cli-support/ |
| مجوز | MIT |
# CLI Support for Python
Python library to read Component License Information (CLI) files. They can be
created by [FOSSology](https://www.fossology.org) and stored in
[SW360](https://www.eclipse.org/sw360/).
For more information about the CLI file format, please have a look at
[ComponentLicenseInformation.md](ComponentLicenseInformation.md).
## Usage
### Installation
This project is available as [Python package on PyPi.org](https://pypi.org/project/cli-support/).
Install cli_support and required dependencies:
```shell
pip install cli
```
### Required Packages
* none
## Using the API
* Start using the API:
```python
import cli
clifile = cli.CLI.CliFile()
clifile.read_from_file("cli_filename")
```
## Contribute
* All contributions in form of bug reports, feature requests or merge requests are welcome!
* Please use proper [docstrings](https://realpython.com/documenting-python-code/) to document
functions and classes.
* Extend the testsuite **poetry run pytest** with the new functions/classes
## Build
### Building Python package
For building the library, you need [Poetry](https://python-poetry.org/). Build is then
simply triggered using
```shell
poetry build
```
This creates the source and wheel files in ```dist/``` subdirectory -- which can then
be uploaded or installed locally using ```pip```.
## Test
Start the complete test suite or a specific test case (and generate coverage report):
```shell
poetry run pytest
```
or
```shell
poetry run coverage run -m pytest
poetry run coverage report -m --omit "*/site-packages/*.py"
poetry run coverage html --omit "*/site-packages/*.py"
```
## Demo
The script ``show_licenses.py`` shows how to use the library to retrieve some information
of a given CLI file.
```shell
python ./show_licenses.py ./test/testfiles/CLIXML_MIT_simple.xml
```
## License
The project is licensed under the MIT license.
SPDX-License-Identifier: MIT
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl cli-support-1.3:
pip install cli-support-1.3.whl
نصب پکیج tar.gz cli-support-1.3:
pip install cli-support-1.3.tar.gz