-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
40 lines (34 loc) · 1.23 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python3
"""
An object-oriented framework for command-line apps.
"""
__version__ = '0.28.1'
# Define the public API
_pre_import_keys = set()
_pre_import_keys |= set(globals())
from .app import App, BareMeta
from .model import (
init, load, reload, insert_config, insert_configs, append_config,
append_configs, prepend_config, prepend_configs, share_configs,
get_meta,
)
from .params.param import param
from .params.toggle import toggle_param, pick_toggled, Toggle as toggle
from .params.inherited import inherited_param
from .configs.configs import *
from .configs.layers import Layer, DictLayer, FileNotFoundLayer, dict_like
from .configs.attrs import config_attr
from .configs.on_load import on_load
from .getters import Key, Method, Func, Value
from .pick import first
from .cast import Context, relpath, arithmetic_eval, float_eval, int_eval
from .key import jmes
from .meta import meta_view
from .errors import NoValueFound
from .utils import lookup
# Make everything imported above appear to come from this module:
_post_import_keys = set(globals())
for _key in _post_import_keys - _pre_import_keys:
globals()[_key].__module__ = 'byoc'
del _pre_import_keys, _post_import_keys, _key
toggle.__name__ = 'toggle'