Skip to content

Commit

Permalink
Expose API for first level import aiida
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Dec 2, 2024
1 parent 835d13b commit d4c4954
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/aiida/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
More information at http://www.aiida.net
"""

from aiida.common.log import configure_logging # noqa: F401
from aiida.manage.configuration import get_config_option, get_profile, load_profile, profile_context # noqa: F401
from aiida.common.log import configure_logging
from aiida.manage.configuration import get_config_option, get_profile, load_profile, profile_context

__copyright__ = (
'Copyright (c), This file is part of the AiiDA platform. '
Expand All @@ -35,6 +35,17 @@
)
__paper_short__ = 'S. P. Huber et al., Scientific Data 7, 300 (2020).'

__all__ = [
'load_profile',
'configure_logging',
'get_config_option',
'get_profile',
'profile_context',
'get_strict_version',
'get_version',
'get_file_header',
]


def get_strict_version():
"""Return a distutils StrictVersion instance with the current distribution version
Expand Down Expand Up @@ -93,7 +104,7 @@ def get_file_header(comment_char: str = '# ') -> str:
return '\n'.join(f'{comment_char}{line}' for line in lines)


def load_ipython_extension(ipython):
def _load_ipython_extension(ipython):
"""Load the AiiDA IPython extension, using ``%load_ext aiida``."""
from .tools.ipython.ipython_magics import AiiDALoaderMagics

Expand Down

0 comments on commit d4c4954

Please sign in to comment.