Changeset View
Changeset View
Standalone View
Standalone View
swh/lister/cran/lister.py
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | def safely_issue_request(self, identifier): | ||||
""" | """ | ||||
return None | return None | ||||
def list_packages(self, response) -> List[Mapping[str, str]]: | def list_packages(self, response) -> List[Mapping[str, str]]: | ||||
"""Runs R script which uses inbuilt API to return a json response | """Runs R script which uses inbuilt API to return a json response | ||||
containing data about the R packages. | containing data about the R packages. | ||||
Returns: | Returns: | ||||
List of Dict about r packages. For example: | List of Dict about R packages. For example:: | ||||
.. code-block:: python | |||||
[ | [ | ||||
{ | { | ||||
'Package': 'A3', | 'Package': 'A3', | ||||
'Version': '1.0.0', | 'Version': '1.0.0', | ||||
'Title': | 'Title': 'A3 package', | ||||
'Accurate, Adaptable, and Accessible Error Metrics | 'Description': ... | ||||
for Predictive\nModels', | |||||
'Description': | |||||
'Supplies tools for tabulating and analyzing the | |||||
results of predictive models. The methods employed | |||||
are ... ' | |||||
}, | }, | ||||
{ | { | ||||
'Package': 'abbyyR', | 'Package': 'abbyyR', | ||||
'Version': '0.5.4', | 'Version': '0.5.4', | ||||
'Title': | 'Title': 'Access to Abbyy OCR (OCR) API', | ||||
'Access to Abbyy OCR (OCR) API', | 'Description': ...' | ||||
'Description': 'Get text from images of text using | |||||
Abbyy Cloud Optical Character\n ...' | |||||
}, | }, | ||||
... | ... | ||||
] | ] | ||||
""" | """ | ||||
return read_cran_data() | return read_cran_data() | ||||
def get_model_from_repo( | def get_model_from_repo( | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |