Debian Codegraph @

docs/reference/api/models.md

raw symbols SCIP
1 # Models
2
3 Griffe stores information extracted from Python source code into data models.
4
5 These models represent trees of objects, starting with modules, and containing classes, functions, attributes, and type aliases.
6
7 Modules can have submodules, classes, functions, attributes, and type aliases. Classes can have nested classes, methods, attributes, and type aliases. Functions and attributes do not have any members.
8
9 Indirections to objects declared in other modules are represented as "aliases". An alias therefore represents an imported object, and behaves almost exactly like the object it points to: it is a light wrapper around the object, with special methods and properties that allow to access the target's data transparently.
10
11 The 6 models:
12
13 - [`Module`][griffe.Module]
14 - [`Class`][griffe.Class]
15 - [`Function`][griffe.Function]
16 - [`Attribute`][griffe.Attribute]
17 - [`Alias`][griffe.Alias]
18 - [`TypeAlias`][griffe.TypeAlias]
19
20 ## **Model kind enumeration**
21
22 ::: griffe.Kind
23
24 ## **Model base classes**
25
26 ::: griffe.GetMembersMixin
27
28 ::: griffe.SetMembersMixin
29
30 ::: griffe.DelMembersMixin
31
32 ::: griffe.SerializationMixin
33
34 ::: griffe.ObjectAliasMixin
35
36 ::: griffe.Object
37
38 ## **Type parameters**
39
40 ::: griffe.TypeParameters
41
42 ::: griffe.TypeParameter
43
44 ::: griffe.TypeParameterKind
45
46 ## **Git information**
47
48 ::: griffe.KnownGitService
49
50 ::: griffe.GitInfo