File: __init__.py

package info (click to toggle)
python-pgspecial 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 384 kB
  • sloc: python: 3,778; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 323 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import importlib.metadata

__version__ = importlib.metadata.version("pgspecial")
__all__ = []


def export(defn):
    """Decorator to explicitly mark functions that are exposed in a lib."""
    globals()[defn.__name__] = defn
    __all__.append(defn.__name__)
    return defn


from . import dbcommands, iocommands  # noqa