breachlab 0.3.0__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.
breachlab/__init__.py ADDED
@@ -0,0 +1,65 @@
1
+ """Python SDK and command-line client for the BreachLab API.
2
+
3
+ from breachlab import BreachLab
4
+
5
+ client = BreachLab()
6
+ print(client.me()["username"])
7
+ """
8
+
9
+ from breachlab._version import __version__
10
+ from breachlab.client import BreachLab, new_idempotency_key
11
+ from breachlab.errors import (
12
+ AdminNotAllowedError,
13
+ AlreadySolvedError,
14
+ ApiError,
15
+ AuthenticationError,
16
+ BreachLabError,
17
+ ConfigError,
18
+ ConflictError,
19
+ DeviceFlowError,
20
+ ForbiddenError,
21
+ NetworkError,
22
+ NotAnAgentError,
23
+ NotFoundError,
24
+ NotLoggedIn,
25
+ PaywallError,
26
+ RateLimitError,
27
+ RedirectError,
28
+ ScopeError,
29
+ ServerError,
30
+ TokenError,
31
+ UnexpectedResponse,
32
+ ValidationError,
33
+ )
34
+ from breachlab.pagination import Page, Paginator
35
+ from breachlab.runs import Run
36
+
37
+ __all__ = [
38
+ "__version__",
39
+ "BreachLab",
40
+ "Run",
41
+ "Page",
42
+ "Paginator",
43
+ "new_idempotency_key",
44
+ "BreachLabError",
45
+ "ApiError",
46
+ "AuthenticationError",
47
+ "ScopeError",
48
+ "ForbiddenError",
49
+ "PaywallError",
50
+ "NotAnAgentError",
51
+ "AdminNotAllowedError",
52
+ "NotFoundError",
53
+ "ConflictError",
54
+ "AlreadySolvedError",
55
+ "ValidationError",
56
+ "RateLimitError",
57
+ "RedirectError",
58
+ "ServerError",
59
+ "UnexpectedResponse",
60
+ "NetworkError",
61
+ "ConfigError",
62
+ "TokenError",
63
+ "NotLoggedIn",
64
+ "DeviceFlowError",
65
+ ]
breachlab/__main__.py ADDED
@@ -0,0 +1,4 @@
1
+ from breachlab.cli import run
2
+
3
+ if __name__ == "__main__":
4
+ run()
breachlab/_version.py ADDED
@@ -0,0 +1 @@
1
+ __version__ = "0.3.0"