"""Main QNET package

The :mod:`qnet` package exposes all of QNET's functionality for easy
interactive or programmative use.

For interactive usage, the package should be initialized as follows::

    >>> import qnet
    >>> qnet.init_printing()

"""

import qnet._flat_api_tools
import qnet.algebra._rules

__doc__ += qnet._flat_api_tools.__doc__

__all__ = []  # will be extended by _import_submodules

__imported_data__ = {
    'SCALAR_TYPES': ':data:`~qnet.algebra.scalar_types.SCALAR_TYPES`'}

__version__ = "2.0.0-dev"


# dynamic initialization

qnet._flat_api_tools._import_submodules(
    __all__, __path__, __name__)

qnet.algebra._rules._algebraic_rules()

@@ -520,16 +520,980 @@
 -dev%22%0A%0A%0A
+def _git_version():%0A    %22%22%22If installed with 'pip installe -e .' from inside a git repo, the%0A    current git revision as a string%22%22%22%0A%0A    import subprocess%0A    import os%0A%0A    def _minimal_ext_cmd(cmd):%0A        # construct minimal environment%0A        env = %7B%7D%0A        for k in %5B'SYSTEMROOT', 'PATH'%5D:%0A            v = os.environ.get(k)%0A            if v is not None:%0A                env%5Bk%5D = v%0A        # LANGUAGE is used on win32%0A        env%5B'LANGUAGE'%5D = 'C'%0A        env%5B'LANG'%5D = 'C'%0A        env%5B'LC_ALL'%5D = 'C'%0A        FNULL = open(os.devnull, 'w')%0A        cwd = os.path.dirname(os.path.realpath(__file__))%0A        proc = subprocess.Popen(%0A            cmd, stdout=subprocess.PIPE, stderr=FNULL, env=env, cwd=cwd)%0A        out = proc.communicate()%5B0%5D%0A        return out%0A%0A    try:%0A        out = _minimal_ext_cmd(%5B'git', 'rev-parse', 'HEAD'%5D)%0A        return out.strip().decode('ascii')%0A    except OSError:%0A        return %22unknown%22%0A%0A%0A__git_version__ = _git_version()%0A%0A%0A
 # dynami

Add qdyn.__git_version__ attribute