Skip to content

Commit

Permalink
Expose get_daemon_client so it can be imported from aiida.engine (#…
Browse files Browse the repository at this point in the history
…6008)

This is public API that users should use to easily obtain a
`DaemonClient` instance to control the daemon. Currently it has to be
imported from `aiida.engine.daemon.client` which is unnecessarily buried
deep down.
  • Loading branch information
sphuber committed May 11, 2023
1 parent 2bfc3c6 commit 1a0c1ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions aiida/engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
'assign_',
'calcfunction',
'construct_awaitable',
'get_daemon_client',
'get_object_loader',
'if_',
'interruptable_task',
Expand Down
1 change: 1 addition & 0 deletions aiida/engine/daemon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

__all__ = (
'DaemonClient',
'get_daemon_client',
)

# yapf: enable
2 changes: 1 addition & 1 deletion aiida/engine/daemon/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# Recent versions of virtualenv create the environment variable VIRTUAL_ENV
VIRTUALENV = os.environ.get('VIRTUAL_ENV', None)

__all__ = ('DaemonClient',)
__all__ = ('DaemonClient', 'get_daemon_client')


class ControllerProtocol(enum.Enum):
Expand Down

0 comments on commit 1a0c1ee

Please sign in to comment.