File: __init__.py

package info (click to toggle)
python-beanie 1.29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,544 kB
  • sloc: python: 14,413; makefile: 7; sh: 6
file content (82 lines) | stat: -rw-r--r-- 1,789 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
from beanie.migrations.controllers.free_fall import free_fall_migration
from beanie.migrations.controllers.iterative import iterative_migration
from beanie.odm.actions import (
    After,
    Before,
    Delete,
    Insert,
    Replace,
    Save,
    SaveChanges,
    Update,
    ValidateOnSave,
    after_event,
    before_event,
)
from beanie.odm.bulk import BulkWriter
from beanie.odm.custom_types import DecimalAnnotation
from beanie.odm.custom_types.bson.binary import BsonBinary
from beanie.odm.documents import (
    Document,
    DocumentWithSoftDelete,
    MergeStrategy,
)
from beanie.odm.enums import SortDirection
from beanie.odm.fields import (
    BackLink,
    BeanieObjectId,
    DeleteRules,
    Indexed,
    Link,
    PydanticObjectId,
    WriteRules,
)
from beanie.odm.queries.update import UpdateResponse
from beanie.odm.settings.timeseries import Granularity, TimeSeriesConfig
from beanie.odm.union_doc import UnionDoc
from beanie.odm.utils.init import init_beanie
from beanie.odm.views import View

__version__ = "1.29.0"
__all__ = [
    # ODM
    "Document",
    "DocumentWithSoftDelete",
    "View",
    "UnionDoc",
    "init_beanie",
    "PydanticObjectId",
    "BeanieObjectId",
    "Indexed",
    "TimeSeriesConfig",
    "Granularity",
    "SortDirection",
    "MergeStrategy",
    # Actions
    "before_event",
    "after_event",
    "Insert",
    "Replace",
    "Save",
    "SaveChanges",
    "ValidateOnSave",
    "Delete",
    "Before",
    "After",
    "Update",
    # Bulk Write
    "BulkWriter",
    # Migrations
    "iterative_migration",
    "free_fall_migration",
    # Relations
    "Link",
    "BackLink",
    "WriteRules",
    "DeleteRules",
    # Custom Types
    "DecimalAnnotation",
    "BsonBinary",
    # UpdateResponse
    "UpdateResponse",
]