py-fossology
Python wrapper around FOSSology's REST API.
Works with FOSSology version 3.5.0
Example usage
from fossology import Fossology
fossology = Fossology(server='http://localhost:8085/repo/',
auth={'username' : 'fossy',
'password' : 'fossy',
'token_scope' : 'write',
'token_expire' : '2019-09-07'
})
# Get the root folder
root_folder = fossology.folder(folder_id=1)
# Upload a file to the root folder
upload = fossology.new_upload(target_folder=root_folder, fileInput='/tmp/sample.tar')
# Schedule a scan on this new upload
job = upload.schedule_agents(agents='''{
"analysis": {
"bucket": true,
"copyright_email_author": true,
"ecc": true,
"keyword": true,
"mime": true,
"monk": true,
"nomos": true,
"package": true
},
"decider": {
"nomos_monk": true,
"bulk_reused": true,
"new_scanner": true
},
"reuse": {
"reuse_upload": 0,
"reuse_group": 0,
"reuse_main": true,
"reuse_enhanced": true
}
}''')
# Generate a report
report = upload.request_report_generation(reportFormat='unifiedreport')
# Download the report
report.download()
Documentation
TBD
Installation
Use the following command to install
pip install py-fossology
Metadata
Release files for py-fossology 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-fossology-0.1.1.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_fossology-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.5 kB
Release files / py-fossology-0.1.1.tar.gz
| Download URL | py-fossology-0.1.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40345aa3a8e02eb43e608de20f29363cf7cd2ead3289cf9848711beced0c906d
|
|
BLAKE2b-256 checksum How to use checksums |
3dd75464ce8825563fd793817af9084298d3642a3b347d0d38d659898a38aab6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8
|
Release files / py_fossology-0.1.1-py3-none-any.whl
| Download URL | py_fossology-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a14f49ccabf7dba671a3dd67111fa09896d50abbab0c2ad595340ef866bec0c
|
|
BLAKE2b-256 checksum How to use checksums |
7b73acebc40d58bccd84e09ba53d65010926d39dbc64af8a216dc19d7a7a4e9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8
|