labapi 1.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
labapi/__init__.py ADDED
@@ -0,0 +1,77 @@
1
+ """LabArchives API Client Library.
2
+
3
+ This package provides a Python client for interacting with the LabArchives API.
4
+ It offers an object-oriented interface to manage notebooks, folders, pages,
5
+ and various entry types, along with authentication and utility functions.
6
+
7
+ Key components include:
8
+
9
+ - :class:`~labapi.client.Client`: The main API client for connection and authentication.
10
+ - :class:`~labapi.user.User`: Represents an authenticated user session.
11
+ - :mod:`~labapi.tree`: Modules for managing the hierarchical tree structure (notebooks, directories, pages).
12
+ - :mod:`~labapi.entry`: Modules for handling different types of entries within pages.
13
+ - :mod:`~labapi.util`: General utility functions and data structures.
14
+ """
15
+
16
+ from importlib.metadata import PackageNotFoundError, version
17
+
18
+ from .client import Client
19
+ from .entry import (
20
+ Attachment,
21
+ AttachmentEntry,
22
+ Entry,
23
+ HeaderEntry,
24
+ PlainTextEntry,
25
+ TextEntry,
26
+ UnknownEntry,
27
+ WidgetEntry,
28
+ )
29
+ from .exceptions import (
30
+ ApiError,
31
+ AuthenticationError,
32
+ LabArchivesError,
33
+ NodeExistsError,
34
+ PathError,
35
+ TraversalError,
36
+ )
37
+ from .tree import (
38
+ AbstractTreeContainer,
39
+ Notebook,
40
+ NotebookDirectory,
41
+ NotebookPage,
42
+ )
43
+ from .user import User
44
+ from .util import Index, InsertBehavior, JsonData, NotebookPath
45
+
46
+ try:
47
+ __version__ = version("labapi")
48
+ except PackageNotFoundError:
49
+ __version__ = "unknown"
50
+
51
+ __all__ = [
52
+ "AbstractTreeContainer",
53
+ "ApiError",
54
+ "Attachment",
55
+ "AttachmentEntry",
56
+ "AuthenticationError",
57
+ "Client",
58
+ "Entry",
59
+ "HeaderEntry",
60
+ "Index",
61
+ "InsertBehavior",
62
+ "JsonData",
63
+ "LabArchivesError",
64
+ "NodeExistsError",
65
+ "Notebook",
66
+ "NotebookDirectory",
67
+ "NotebookPage",
68
+ "NotebookPath",
69
+ "PathError",
70
+ "PlainTextEntry",
71
+ "TextEntry",
72
+ "TraversalError",
73
+ "UnknownEntry",
74
+ "User",
75
+ "WidgetEntry",
76
+ "__version__",
77
+ ]