io_agent module

@file: io_agent.py Created on 11.12.2016 19:59 @project: GitHubRepositoryClassifier

@author: QueensGambit

The InputOutputAgent loads data (json-Data, README...) from a given repository which
is defined by strUser and strName. If the needed data has already been requested before, then is loaded from a file. Otherwise a new connection is created. By default the autorization of the connection is done with an API-Token
class io_agent.InputOutputAgent(strUser, strName)[source]

Bases: object

getReadme(strPathReadme)[source]

Gets the content from the Redme as a string. The Readme is either loaded from file or web.

Parameters:strPathReadme – path were the readme is loaded and exported to
Returns:
loadJSONdata(strPathJSON)[source]

loads the requested json-data either from a file or alternatively from the web files are exported in the ‘./json/’ directory if they were requested

static setRedownload(bRedownload)[source]

sets up if the readme and json-file shall get redownload

Parameters:bRedownload – true, false
Returns:
static setWithToken(bWithToken)[source]

sets up if the github token shall be used for connection to github

Parameters:bWithToken – true, false
Returns: