kalsi-avneet / py-fossology Goto Github PK
View Code? Open in Web Editor NEWPython wrapper around FOSSology's REST API
License: MIT License
Python wrapper around FOSSology's REST API
License: MIT License
When a property of a resource is modified on the server via an object, the object's properties do not contain the updated values
eg:
>>> from fossology import Fossology
>>> fossology = Fossology(server='http://localhost:8085/repo/', auth={'username':'fossy', 'password':'fossy', 'token_expire':'2019-09-07', 'token_scope':'write'})
>>> top_folder=fossology.folder(folder_id=1)
>>> top_folder.description
'Top Folder'
>>> top_folder.edit_description('Modified description')
True
>>> top_folder.description
'Top Folder' # <-----This should be 'Modified description'
>>> top_folder_2=fossology.folder(folder_id=1)
>>> top_folder_2.description
'Modified description' # <----- A new object pointing to the same resource has the expected properties
>>>
eg:
>>> from fossology import Fossology
>>> fossology = Fossology(server='http://localhost:8085/repo/', auth={'username':'fossy', 'password':'fossy', 'token_expire':'2019-09-07', 'token_scope':'write'})
>>> top_folder=fossology.folder(folder_id=1)
>>>
>>>
>>> new_folder=fossology.new_folder(folder_name='untitled', parent_folder=top_folder)
>>> type(new_folder.folder_name)
<class 'NoneType'> # <----- This should be a string with value 'untitled', as passed
>>>
Investigate and structure the codebase to be able to be distributed via pip
Is there a way to upload files to TOKEN already created without password?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.