thamos.swagger_client.thoth package

Submodules

thamos.swagger_client.thoth.advise_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.advise_api.AdviseApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_advise_python(analysis_id, **kwargs)[source]

Get computed adviser result based on its identifier # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AdviserResultResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_log(analysis_id, **kwargs)[source]

Retrieve an adviser run log # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_log(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_log_with_http_info(analysis_id, **kwargs)[source]

Retrieve an adviser run log # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_log_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_status(analysis_id, **kwargs)[source]

Show status of an adviser computing recommendations # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_status(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_status_with_http_info(analysis_id, **kwargs)[source]

Show status of an adviser computing recommendations # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_status_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_with_http_info(analysis_id, **kwargs)[source]

Get computed adviser result based on its identifier # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AdviserResultResponse

If the method is called asynchronously, returns the request thread.

post_advise_python(body, recommendation_type, **kwargs)[source]

Get an advise for a Python application # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_advise_python(body, recommendation_type, async_req=True) >>> result = thread.get()

:param async_req bool :param AdviseInput body: Specification of Python application stack with runtime specific information (required) :param str recommendation_type: Recommendation type (required) :param str origin: A repository where the application stack is used :param str source_type: A flag marking what Thoth integration is requesting adviser: * cli: Thamos CLI * s2i: OpenShift’s S2I (Source-to-Image) build * kebechet: Kebechet Bot * jupyter_notebook: Jupyter Notebook using jupyterlab-requirements :param bool dev: Consider or do not consider development dependencies when resolving stacks :param bool debug: Run the given analyzer in a verbose mode so developers can debug it :param bool force: Do not use cached results, always run the analysis :param str token: An API token for authenticated requests :return: AnalysisWithAuthenticationResponse

If the method is called asynchronously, returns the request thread.

post_advise_python_with_http_info(body, recommendation_type, **kwargs)[source]

Get an advise for a Python application # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_advise_python_with_http_info(body, recommendation_type, async_req=True) >>> result = thread.get()

:param async_req bool :param AdviseInput body: Specification of Python application stack with runtime specific information (required) :param str recommendation_type: Recommendation type (required) :param str origin: A repository where the application stack is used :param str source_type: A flag marking what Thoth integration is requesting adviser: * cli: Thamos CLI * s2i: OpenShift’s S2I (Source-to-Image) build * kebechet: Kebechet Bot * jupyter_notebook: Jupyter Notebook using jupyterlab-requirements :param bool dev: Consider or do not consider development dependencies when resolving stacks :param bool debug: Run the given analyzer in a verbose mode so developers can debug it :param bool force: Do not use cached results, always run the analysis :param str token: An API token for authenticated requests :return: AnalysisWithAuthenticationResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.build_analysis_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.build_analysis_api.BuildAnalysisApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

post_build(body, **kwargs)[source]

Analyze the given build imagestream and log # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_build(body, async_req=True) >>> result = thread.get()

:param async_req bool :param Build body: Fill up the build details such as output imagestream, base imagestream, and build log (required) :param str base_registry_user: Registry user to be used for pulling images from registry :param str base_registry_password: Registry password or token to be used for pulling images from source registry :param bool base_registry_verify_tls: Verify TLS certificates of registry from where images are pulled from during the build :param str output_registry_user: Registry user to be used for pulling images from registry :param str output_registry_password: Registry password or token to be used for pulling images from destination registry :param bool output_registry_verify_tls: Verify TLS certificates of registry from where images are pulled to during the build :param str environment_type: Type of environment (runtime or buildtime) which is being analyzed :param str origin: A remote where the image is being used :param bool debug: Run the given analyzer in a verbose mode so developers can debug it :param bool force: Do not use cached results, always run the analysis :return: BuildAnalysisResponse

If the method is called asynchronously, returns the request thread.

post_build_with_http_info(body, **kwargs)[source]

Analyze the given build imagestream and log # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_build_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param Build body: Fill up the build details such as output imagestream, base imagestream, and build log (required) :param str base_registry_user: Registry user to be used for pulling images from registry :param str base_registry_password: Registry password or token to be used for pulling images from source registry :param bool base_registry_verify_tls: Verify TLS certificates of registry from where images are pulled from during the build :param str output_registry_user: Registry user to be used for pulling images from registry :param str output_registry_password: Registry password or token to be used for pulling images from destination registry :param bool output_registry_verify_tls: Verify TLS certificates of registry from where images are pulled to during the build :param str environment_type: Type of environment (runtime or buildtime) which is being analyzed :param str origin: A remote where the image is being used :param bool debug: Run the given analyzer in a verbose mode so developers can debug it :param bool force: Do not use cached results, always run the analysis :return: BuildAnalysisResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.buildlogs_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.buildlogs_api.BuildlogsApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_buildlog(document_id, **kwargs)[source]

Retrieve the given build log # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_buildlog(document_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str document_id: Build log to be retrieved (required) :return: None

If the method is called asynchronously, returns the request thread.

get_buildlog_with_http_info(document_id, **kwargs)[source]

Retrieve the given build log # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_buildlog_with_http_info(document_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str document_id: Build log to be retrieved (required) :return: None

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.container_images_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.container_images_api.ContainerImagesApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

list_thoth_container_images(**kwargs)[source]

List available Thoth container images # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_thoth_container_images(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination :param int per_page: Number of items returned per page :param str os_name: Name of the operating system to consider :param str os_version: Version of the operating system to consider :param str python_version: Version of Python interpreter provided :param str cuda_version: Filter based on CUDA version available :param str image_name: Filter based on the image name :param str library_name: Filter based on library name :param str symbol: Filter based on symbol :param str package_name: Filter based on Python package name :param str rpm_package_name: Filter based on RPM package name :return: ContainerImagesResponse

If the method is called asynchronously, returns the request thread.

list_thoth_container_images_with_http_info(**kwargs)[source]

List available Thoth container images # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_thoth_container_images_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination :param int per_page: Number of items returned per page :param str os_name: Name of the operating system to consider :param str os_version: Version of the operating system to consider :param str python_version: Version of Python interpreter provided :param str cuda_version: Filter based on CUDA version available :param str image_name: Filter based on the image name :param str library_name: Filter based on library name :param str symbol: Filter based on symbol :param str package_name: Filter based on Python package name :param str rpm_package_name: Filter based on RPM package name :return: ContainerImagesResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.environments_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.environments_api.EnvironmentsApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

list_python_environments(**kwargs)[source]

Get environments available for Python resolutions # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_environments(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonEnvironments

If the method is called asynchronously, returns the request thread.

list_python_environments_with_http_info(**kwargs)[source]

Get environments available for Python resolutions # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_environments_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonEnvironments

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.image_analysis_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.image_analysis_api.ImageAnalysisApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_analyze(analysis_id, **kwargs)[source]

Retrieve an analyzer result # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_analyze_by_hash(image_hash, **kwargs)[source]

Retrieve an analyzer result # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_by_hash(image_hash, async_req=True) >>> result = thread.get()

:param async_req bool :param str image_hash: Image hash for identifying image (including hash type, now supported only “sha256”) (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_analyze_by_hash_with_http_info(image_hash, **kwargs)[source]

Retrieve an analyzer result # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_by_hash_with_http_info(image_hash, async_req=True) >>> result = thread.get()

:param async_req bool :param str image_hash: Image hash for identifying image (including hash type, now supported only “sha256”) (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_analyze_log(analysis_id, **kwargs)[source]

Show logs of an analysis # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_log(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_analyze_log_with_http_info(analysis_id, **kwargs)[source]

Show logs of an analysis # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_log_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_analyze_status(analysis_id, **kwargs)[source]

Show an analysis status # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_status(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_analyze_status_with_http_info(analysis_id, **kwargs)[source]

Show an analysis status # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_status_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_analyze_with_http_info(analysis_id, **kwargs)[source]

Retrieve an analyzer result # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

post_analyze(image, **kwargs)[source]

Analyze the given image asynchronously # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_analyze(image, async_req=True) >>> result = thread.get()

:param async_req bool :param str image: Name of an image - can also specify remote registry to pull image from (required) :param str registry_user: Registry user to be used for pulling images from registry :param str registry_password: Registry password or token to be used for pulling images from registry :param str environment_type: Type of environment (runtime or buildtime) which is being analyzed :param str origin: A remote where the image is being used :param bool debug: Run the given analyzer in a verbose mode so developers can debug it :param bool verify_tls: Verify TLS certificates of registry from where images are pulled from :param bool force: Do not use cached results, always run the analysis :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

post_analyze_with_http_info(image, **kwargs)[source]

Analyze the given image asynchronously # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_analyze_with_http_info(image, async_req=True) >>> result = thread.get()

:param async_req bool :param str image: Name of an image - can also specify remote registry to pull image from (required) :param str registry_user: Registry user to be used for pulling images from registry :param str registry_password: Registry password or token to be used for pulling images from registry :param str environment_type: Type of environment (runtime or buildtime) which is being analyzed :param str origin: A remote where the image is being used :param bool debug: Run the given analyzer in a verbose mode so developers can debug it :param bool verify_tls: Verify TLS certificates of registry from where images are pulled from :param bool force: Do not use cached results, always run the analysis :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

post_image_metadata(image, **kwargs)[source]

Get metadata for the given image # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_image_metadata(image, async_req=True) >>> result = thread.get()

:param async_req bool :param str image: Name of an image - can also specify remote registry to pull image from (required) :param str registry_user: Registry user to be used for pulling images from registry :param str registry_password: Registry password or token to be used for pulling images from registry :param bool verify_tls: Verify TLS certificates of registry from where images are pulled from :return: ImageMetadataResponse

If the method is called asynchronously, returns the request thread.

post_image_metadata_with_http_info(image, **kwargs)[source]

Get metadata for the given image # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_image_metadata_with_http_info(image, async_req=True) >>> result = thread.get()

:param async_req bool :param str image: Name of an image - can also specify remote registry to pull image from (required) :param str registry_user: Registry user to be used for pulling images from registry :param str registry_password: Registry password or token to be used for pulling images from registry :param bool verify_tls: Verify TLS certificates of registry from where images are pulled from :return: ImageMetadataResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.kebechet_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.kebechet_api.KebechetApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

initialize_repo(body, **kwargs)[source]

Initialize the user’s provided repository. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.initialize_repo(body, async_req=True) >>> result = thread.get()

:param async_req bool :param RepoInitInput body: (required) :return: None

If the method is called asynchronously, returns the request thread.

initialize_repo_with_http_info(body, **kwargs)[source]

Initialize the user’s provided repository. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.initialize_repo_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param RepoInitInput body: (required) :return: None

If the method is called asynchronously, returns the request thread.

schedule_kebechet_webhook(body, **kwargs)[source]

Schedule kebechet instance from webhook, this endpoint is not intended for users # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.schedule_kebechet_webhook(body, async_req=True) >>> result = thread.get()

:param async_req bool :param KebechetWebhookInput body: Body of a git service webhook (required) :return: None

If the method is called asynchronously, returns the request thread.

schedule_kebechet_webhook_with_http_info(body, **kwargs)[source]

Schedule kebechet instance from webhook, this endpoint is not intended for users # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.schedule_kebechet_webhook_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param KebechetWebhookInput body: Body of a git service webhook (required) :return: None

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.provenance_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.provenance_api.ProvenanceApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_provenance_python(analysis_id, **kwargs)[source]

Retrieve a provenance check result # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: ProvenanceResultResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_log(analysis_id, **kwargs)[source]

Show logs of a provenance check # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_log(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_log_with_http_info(analysis_id, **kwargs)[source]

Show logs of a provenance check # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_log_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_status(analysis_id, **kwargs)[source]

Show status of a provenance check # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_status(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_status_with_http_info(analysis_id, **kwargs)[source]

Show status of a provenance check # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_status_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_with_http_info(analysis_id, **kwargs)[source]

Retrieve a provenance check result # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An identifier of the requested analysis (required) :return: ProvenanceResultResponse

If the method is called asynchronously, returns the request thread.

post_provenance_python(body, **kwargs)[source]

Check provenance of packages stated in an application stack # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_provenance_python(body, async_req=True) >>> result = thread.get()

:param async_req bool :param ProvenanceInput body: Input to be checked for provenance (required) :param str origin: A repository where the application stack is used :param bool debug: Run the given analyzer in a verbose mode so developers can debug it :param bool force: Do not use cached results, always run the analysis :param str token: An API token for authenticated requests :return: AnalysisWithAuthenticationResponse

If the method is called asynchronously, returns the request thread.

post_provenance_python_with_http_info(body, **kwargs)[source]

Check provenance of packages stated in an application stack # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_provenance_python_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param ProvenanceInput body: Input to be checked for provenance (required) :param str origin: A repository where the application stack is used :param bool debug: Run the given analyzer in a verbose mode so developers can debug it :param bool force: Do not use cached results, always run the analysis :param str token: An API token for authenticated requests :return: AnalysisWithAuthenticationResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.python_packages_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.7.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.python_packages_api.PythonPackagesApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_package_from_imported_packages(import_name, **kwargs)[source]

List imported packages (name, version, index) # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_package_from_imported_packages(import_name, async_req=True) >>> result = thread.get()

:param async_req bool :param str import_name: Names of the Python Packages (name, version, index) for the given import package name (required) :return: PythonPackageNameImportResponse

If the method is called asynchronously, returns the request thread.

get_package_from_imported_packages_with_http_info(import_name, **kwargs)[source]

List imported packages (name, version, index) # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_package_from_imported_packages_with_http_info(import_name, async_req=True) >>> result = thread.get()

:param async_req bool :param str import_name: Names of the Python Packages (name, version, index) for the given import package name (required) :return: PythonPackageNameImportResponse

If the method is called asynchronously, returns the request thread.

get_python_package_dependencies(name, version, index, **kwargs)[source]

Get direct dependencies of Python libraries. If environment is provided, take into account environment markers that are evaluated during dependencies installation. If environment is not provided, any environment is considered # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_package_dependencies(name, version, index, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package (required) :param str version: Version of the Python Package (required) :param str index: Index url of the Python Package (required) :param str os_name: Name of the operating system to consider :param str os_version: Version of the operating system to consider :param str python_version: Version of Python interpreter provided :param bool marker_evaluation_result: Consider marker evaluation result for the given environment. If set to None, marker evaluation result is not taken into account :return: PythonPackageDependencies

If the method is called asynchronously, returns the request thread.

get_python_package_dependencies_with_http_info(name, version, index, **kwargs)[source]

Get direct dependencies of Python libraries. If environment is provided, take into account environment markers that are evaluated during dependencies installation. If environment is not provided, any environment is considered # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_package_dependencies_with_http_info(name, version, index, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package (required) :param str version: Version of the Python Package (required) :param str index: Index url of the Python Package (required) :param str os_name: Name of the operating system to consider :param str os_version: Version of the operating system to consider :param str python_version: Version of Python interpreter provided :param bool marker_evaluation_result: Consider marker evaluation result for the given environment. If set to None, marker evaluation result is not taken into account :return: PythonPackageDependencies

If the method is called asynchronously, returns the request thread.

get_python_package_version_metadata(name, version, index, os_name, os_version, python_version, **kwargs)[source]

Get metadata for the given package # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_package_version_metadata(name, version, index, os_name, os_version, python_version, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package (required) :param str version: Version of the Python Package (required) :param str index: Index url of the Python Package (required) :param str os_name: Name of operating system to consider as environment where package is installed in (required) :param str os_version: Version of operating system to consider as environment where package is installed in (required) :param str python_version: Version of Python interpreter used to install the given package (required) :return: PythonPackageVersionMetadataResponse

If the method is called asynchronously, returns the request thread.

get_python_package_version_metadata_with_http_info(name, version, index, os_name, os_version, python_version, **kwargs)[source]

Get metadata for the given package # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_package_version_metadata_with_http_info(name, version, index, os_name, os_version, python_version, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package (required) :param str version: Version of the Python Package (required) :param str index: Index url of the Python Package (required) :param str os_name: Name of operating system to consider as environment where package is installed in (required) :param str os_version: Version of operating system to consider as environment where package is installed in (required) :param str python_version: Version of Python interpreter used to install the given package (required) :return: PythonPackageVersionMetadataResponse

If the method is called asynchronously, returns the request thread.

get_python_platform(**kwargs)[source]

Get supported platforms for the Python ecosystem # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_platform(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonPlatforms

If the method is called asynchronously, returns the request thread.

get_python_platform_with_http_info(**kwargs)[source]

Get supported platforms for the Python ecosystem # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_platform_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonPlatforms

If the method is called asynchronously, returns the request thread.

list_python_package_indexes(**kwargs)[source]

List registered Python package indexes # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_package_indexes(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonPackageIndexes

If the method is called asynchronously, returns the request thread.

list_python_package_indexes_with_http_info(**kwargs)[source]

List registered Python package indexes # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_package_indexes_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonPackageIndexes

If the method is called asynchronously, returns the request thread.

list_python_package_version_environments(name, version, index, **kwargs)[source]

List environments used to solve the given Python package # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_package_version_environments(name, version, index, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package (required) :param str version: Version of the Python Package (required) :param str index: Index url of the Python Package (required) :return: PythonPackageVersionEnvironmentsResponse

If the method is called asynchronously, returns the request thread.

list_python_package_version_environments_with_http_info(name, version, index, **kwargs)[source]

List environments used to solve the given Python package # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_package_version_environments_with_http_info(name, version, index, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package (required) :param str version: Version of the Python Package (required) :param str index: Index url of the Python Package (required) :return: PythonPackageVersionEnvironmentsResponse

If the method is called asynchronously, returns the request thread.

list_python_package_versions(name, **kwargs)[source]

List versions of the given Python package # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_package_versions(name, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package (required) :param str order_by: Sort the response list :param str os_name: Name of the operating system to consider :param str os_version: Version of the operating system to consider :param str python_version: Version of Python interpreter provided :return: PythonPackageVersionsResponse

If the method is called asynchronously, returns the request thread.

list_python_package_versions_with_http_info(name, **kwargs)[source]

List versions of the given Python package # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_package_versions_with_http_info(name, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package (required) :param str order_by: Sort the response list :param str os_name: Name of the operating system to consider :param str os_version: Version of the operating system to consider :param str python_version: Version of Python interpreter provided :return: PythonPackageVersionsResponse

If the method is called asynchronously, returns the request thread.

list_python_packages(**kwargs)[source]

List Python packages # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_packages(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination :param int per_page: Number of items returned per page :param str os_name: Name of the operating system to consider :param str os_version: Version of the operating system to consider :param str python_version: Version of Python interpreter provided :param str like: Filter Python package name by string. (wildcard characters “%” and “_” are supported) :return: PythonPackagesResponse

If the method is called asynchronously, returns the request thread.

list_python_packages_with_http_info(**kwargs)[source]

List Python packages # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_packages_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination :param int per_page: Number of items returned per page :param str os_name: Name of the operating system to consider :param str os_version: Version of the operating system to consider :param str python_version: Version of Python interpreter provided :param str like: Filter Python package name by string. (wildcard characters “%” and “_” are supported) :return: PythonPackagesResponse

If the method is called asynchronously, returns the request thread.

Module contents