-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path__init__.py
More file actions
29 lines (24 loc) · 745 Bytes
/
Copy path__init__.py
File metadata and controls
29 lines (24 loc) · 745 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
import os
from capsolver.capsolver import Capsolver
from capsolver.error import InvalidRequestError, IncompleteJobError, RateLimitError, AuthenticationError, InsufficientCreditError, UnknownError, Timeout, APIError, ServiceUnavailableError
api_base = os.environ.get("CAPSOLVER_API_BASE", "https://api.capsolver.com")
api_key = os.environ.get("CAPSOLVER_API_KEY")
solve = Capsolver.solve
balance = Capsolver.balance
proxy = None
__all__ = [
"Capsolver"
"CAPSOLVERError",
"InvalidRequestError",
"IncompleteJobError",
"RateLimitError",
"AuthenticationError",
"InsufficientCreditError",
"UnknownError",
"Timeout",
"APIError",
"ServiceUnavailableError",
"api_base",
"api_key",
"proxy",
]