How to use the clu.exporting.ExporterBase function in clu

To help you get started, we’ve selected a few clu examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fish2000 / instakit / instakit / exporting.py View on Github external
# -*- coding: utf-8 -*-
from __future__ import print_function

import os

from clu.exporting import ExporterBase

# The “basepath” is the directory enclosing the package root:
basepath = os.path.dirname(
           os.path.dirname(__file__))

class Exporter(ExporterBase, basepath=basepath, appname="instakit"):
    pass

exporter = Exporter(path=__file__)
export = exporter.decorator()

export(Exporter)

# Assign the modules’ `__all__` and `__dir__` using the exporter:
__all__, __dir__ = exporter.all_and_dir()