Warning
Client version 2 is obsolete, please use Client version 3 instead.
General
-
copr.create_client2_from_params(cls, root_url=None, login=None, token=None)
Create client instance using the given parameters
-
copr.create_client2_from_file_config(cls, filepath=None, ignore_error=False)
Creates Copr client using the information from the config file.
Parameters: |
- filepath (str) – specifies config location,
default: “~/.config/copr”
- ignore_error (bool) – When true and config is missing,
creates default Client without credentionals
|
Return type: | client_v2.client.CoprClient
|
CoprClient
-
class copr.client_v2.client.CoprClient(net_client, root_url=None, no_config=False)[source]
Main interface to the copr service
Parameters: |
- net_client (NetClient) – wrapper for http requests
- root_url (unicode) – used as copr projects root
- no_config (bool) – helper flag to indicate that no config was provided
|
- Could be created:
-
If you create Client directly call CoprClient.post_init() method after the creation.
-
projects[source]
-
-
project_chroots[source]
-
-
builds[source]
-
-
build_tasks[source]
-
-
mock_chroots[source]
-
-
classmethod create_from_params(root_url=None, login=None, token=None)[source]
Create client instance using the given parameters
-
classmethod create_from_file_config(filepath=None, ignore_error=False)[source]
Creates Copr client using the information from the config file.
Parameters: |
- filepath (str) – specifies config location,
default: “~/.config/copr”
- ignore_error (bool) – When true and config is missing,
creates default Client without credentionals
|
Return type: | client_v2.client.CoprClient
|
-
post_init()[source]
Finalizes client initialization by querying API root info