tiramisu/tiramisu/__init__.py

65 lines
2.3 KiB
Python
Raw Normal View History

2021-02-24 20:30:04 +01:00
# Copyright (C) 2012-2021 Team tiramisu (see AUTHORS for all contributors)
2013-09-22 22:33:09 +02:00
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2019-04-05 23:47:18 +02:00
"""Configuration management library written in python
"""
2019-10-27 11:09:15 +01:00
from .function import calc_value, calc_value_property_help, valid_ip_netmask, \
valid_network_netmask, valid_in_network, valid_broadcast, \
valid_not_equal
from .autolib import Calculation, Params, ParamOption, ParamDynOption, ParamSelfOption, \
2021-03-06 19:23:35 +01:00
ParamValue, ParamIndex, ParamSuffix, ParamInformation, ParamSelfInformation
2017-10-22 09:48:08 +02:00
from .option import *
from .error import APIError
2018-10-31 18:26:20 +01:00
from .api import Config, MetaConfig, GroupConfig, MixConfig
2017-10-22 09:48:08 +02:00
from .option import __all__ as all_options
from .setting import owners, groups, undefined
2019-02-23 12:25:20 +01:00
from .storage import default_storage, Storage, list_sessions, \
delete_session
2017-10-22 09:48:08 +02:00
2019-09-01 09:41:53 +02:00
allfuncs = ['Calculation',
'Params',
'ParamOption',
'ParamDynOption',
2019-09-01 09:41:53 +02:00
'ParamSelfOption',
'ParamValue',
2019-09-01 09:41:53 +02:00
'ParamIndex',
2019-10-27 11:09:15 +01:00
'ParamSuffix',
'ParamInformation',
2021-03-06 19:23:35 +01:00
'ParamSelfInformation',
'MetaConfig',
2018-10-31 18:26:20 +01:00
'MixConfig',
2018-01-03 21:07:51 +01:00
'GroupConfig',
2018-04-04 16:47:28 +02:00
'Config',
'APIError',
2018-12-24 09:30:58 +01:00
'undefined',
'owners',
'groups',
2019-02-23 12:25:20 +01:00
'default_storage',
'Storage',
'list_sessions',
'delete_session',
2019-09-01 09:41:53 +02:00
'calc_value',
2019-10-27 11:09:15 +01:00
'calc_value_property_help',
'valid_ip_netmask',
'valid_network_netmask',
'valid_in_network',
'valid_broadcast',
]
2017-10-22 09:48:08 +02:00
allfuncs.extend(all_options)
del(all_options)
__all__ = tuple(allfuncs)
del(allfuncs)
2020-04-01 11:49:18 +02:00
__version__ = "3.0rc16"