-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path__init__.py
More file actions
38 lines (34 loc) · 827 Bytes
/
__init__.py
File metadata and controls
38 lines (34 loc) · 827 Bytes
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
"""
diffbot - Python client library for the Diffbot APIs.
"""
from importlib.metadata import PackageNotFoundError, version as _version
try:
__version__ = _version("diffbot-python")
except PackageNotFoundError: # not installed (e.g. running from a source tree)
__version__ = "0.0.0"
from ._auth import resolve_token
from .client import Diffbot, DiffbotAsync
from .crawl import CrawlEvent, CrawlEventType
from .errors import (
APIError,
AuthError,
DiffbotError,
ExtractionError,
RateLimitError,
ValidationError,
)
from .ontology import Ontology
__all__ = [
"Diffbot",
"DiffbotAsync",
"resolve_token",
"CrawlEvent",
"CrawlEventType",
"Ontology",
"DiffbotError",
"AuthError",
"ExtractionError",
"RateLimitError",
"APIError",
"ValidationError",
]