FractalSnowflakeHandler

class qcfractal.FractalSnowflakeHandler(ncores: int = 2)[source]

Bases: object

Attributes Summary

logfilename

Methods Summary

client()

Builds a client from this server.

get_address([endpoint])

Obtains the full URI for a given function on the FractalServer.

restart([timeout])

Restarts the current FractalSnowflake instances and destroys all data in the process.

show_log([nlines, clean, show])

Displays the FractalSnowflakes log data.

start([timeout])

Stop the current FractalSnowflake instance and destroys all data.

stop([keep_storage])

Stop the current FractalSnowflake instance and destroys all data.

Attributes Documentation

logfilename

Methods Documentation

client()qcfractal.interface.client.FractalClient[source]

Builds a client from this server.

Returns

An active client connected to the server.

Return type

FractalClient

get_address(endpoint: Optional[str] = None)str[source]

Obtains the full URI for a given function on the FractalServer.

Parameters

endpoint (Optional[str], optional) – Specifies a endpoint to provide the URI for. If None returns the server address.

Returns

The endpoint URI

Return type

str

restart(timeout: int = 5)None[source]

Restarts the current FractalSnowflake instances and destroys all data in the process.

show_log(nlines: int = 20, clean: bool = True, show: bool = True)[source]

Displays the FractalSnowflakes log data.

Parameters
  • nlines (int, optional) – The the last n lines of the log.

  • clean (bool, optional) – If True, cleans the log of manager operations where nothing happens.

  • show (bool, optional) – If True prints to the log, otherwise returns the result text.

Returns

Description

Return type

TYPE

start(timeout: int = 5)None[source]

Stop the current FractalSnowflake instance and destroys all data.

stop(keep_storage: bool = False)None[source]

Stop the current FractalSnowflake instance and destroys all data.

Parameters

keep_storage (bool, optional) – Does not delete the storage object if True.