File: api.py

package info (click to toggle)
python-atom 0.12.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,616 kB
  • sloc: cpp: 9,040; python: 6,249; makefile: 123
file content (124 lines) | stat: -rw-r--r-- 2,451 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# --------------------------------------------------------------------------------------
# Copyright (c) 2013-2025, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# --------------------------------------------------------------------------------------
"""Module exporting the public interface to atom."""

from .atom import Atom
from .catom import (
    CAtom,
    ChangeType,
    DefaultValue,
    GetAttr,
    GetState,
    Member,
    PostGetAttr,
    PostSetAttr,
    PostValidate,
    SetAttr,
    Validate,
    atomclist,
    atomdict,
    atomlist,
    atomref,
    atomset,
    defaultatomdict,
)
from .coerced import Coerced
from .containerlist import ContainerList
from .delegator import Delegator
from .dict import DefaultDict, Dict
from .enum import Enum
from .event import Event
from .instance import ForwardInstance, Instance
from .list import List
from .meta import (
    AtomMeta,
    MissingMemberWarning,
    add_member,
    clone_if_needed,
    observe,
    set_default,
)
from .property import Property, cached_property
from .scalars import (
    Bool,
    Bytes,
    Callable,
    Constant,
    Float,
    FloatRange,
    Int,
    Range,
    ReadOnly,
    Str,
    Value,
)
from .set import Set
from .signal import Signal
from .subclass import ForwardSubclass, Subclass
from .tuple import FixedTuple, Tuple
from .typed import ForwardTyped, Typed
from .typing_utils import ChangeDict

__all__ = [
    "Atom",
    "AtomMeta",
    "Bool",
    "Bytes",
    "CAtom",
    "Callable",
    "ChangeDict",
    "ChangeType",
    "Coerced",
    "Constant",
    "ContainerList",
    "DefaultDict",
    "DefaultValue",
    "Delegator",
    "Dict",
    "Enum",
    "Event",
    "FixedTuple",
    "Float",
    "FloatRange",
    "ForwardInstance",
    "ForwardSubclass",
    "ForwardTyped",
    "GetAttr",
    "GetState",
    "Instance",
    "Int",
    "List",
    "Member",
    "MissingMemberWarning",
    "PostGetAttr",
    "PostSetAttr",
    "PostValidate",
    "Property",
    "Range",
    "ReadOnly",
    "Set",
    "SetAttr",
    "Signal",
    "Str",
    "Subclass",
    "Tuple",
    "Typed",
    "Validate",
    "Value",
    "add_member",
    "atomclist",
    "atomdict",
    "atomlist",
    "atomref",
    "atomset",
    "cached_property",
    "clone_if_needed",
    "defaultatomdict",
    "observe",
    "set_default",
]