Module: ncbi.datasets.openapi.api.version_api
NCBI Datasets API
Module: ncbi.datasets.openapi.api.version_api
### NCBI Datasets is a resource that lets you easily gather data from NCBI. The Datasets version 1 API is considred stable and will not be subject to breaking changes. However, certain endpoints will be [deprecated](https://www.ncbi.nlm.nih.gov/datasets/docs/v1/reference-docs/rest-api/deprecated_apis/), and then sunset as newer versions are published. For some larger downloads, you may want to download a [dehydrated zip archive](https://www.ncbi.nlm.nih.gov/datasets/docs/v1/how-tos/genomes/large-download/), and retrieve the individual data files at a later time. # noqa: E501
The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech
- class ncbi.datasets.openapi.api.version_api.VersionApi(api_client=None)
Bases:
object
NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech
Do not edit the class manually.
- version(**kwargs)
Retrieve service version # noqa: E501
Retrieve the latest version of the Datasets services. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True
>>> thread = api.version(async_req=True) >>> result = thread.get()
- Keyword Arguments
_return_http_data_only (bool) – response data without head status code and headers. Default is True.
_preload_content (bool) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout (int/float/tuple) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. Default is None.
_check_input_type (bool) – specifies if type checking should be done one the data sent to the server. Default is True.
_check_return_type (bool) – specifies if type checking should be done one the data received from the server. Default is True.
_host_index (int/None) – specifies the index of the server that we want to use. Default is read from the configuration.
async_req (bool) – execute request asynchronously
- Returns
- V1VersionReply
If the method is called asynchronously, returns the request thread.