composer package¶
Subpackages¶
- composer.cli package- Submodules
- composer.cli.blueprints module
- composer.cli.cmdline module
- composer.cli.compose module
- composer.cli.help module
- composer.cli.modules module
- composer.cli.projects module
- composer.cli.providers module
- composer.cli.sources module
- composer.cli.status module
- composer.cli.upload module
- composer.cli.utilities module
- Module contents
 
Submodules¶
composer.http_client module¶
- 
composer.http_client.append_query(url, query)[source]¶
- Add a query argument to a URL - The query should be of the form "param1=what¶m2=ever", i.e., no leading '?'. The new query data will be appended to any existing query string. 
- 
composer.http_client.delete_url_json(socket_path, url, timeout=120)[source]¶
- Send a DELETE request to the url and return JSON response 
- 
composer.http_client.download_file(socket_path, url, progress=True)[source]¶
- Download a file, saving it to the CWD with the included filename 
- 
composer.http_client.get_filename(headers)[source]¶
- Get the filename from the response header - Parameters
- response (Response) -- The urllib3 response object 
- Raises
- RuntimeError if it cannot find a filename in the header 
- Returns
- Filename from content-disposition header 
- Return type
 
- 
composer.http_client.get_url_json(socket_path, url)[source]¶
- Return the JSON results of a GET request 
- 
composer.http_client.get_url_json_unlimited(socket_path, url, total_fn=None)[source]¶
- Return the JSON results of a GET request - For URLs that use offset/limit arguments, this command will fetch all results for the given request. 
composer.unix_socket module¶
- 
class composer.unix_socket.UnixHTTPConnection(socket_path, timeout=60)[source]¶
- Bases: - http.client.HTTPConnection,- object