fa45d8aa5f
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
Privoxy对node122:18003返回500,直连正常
29 lines
921 B
Python
29 lines
921 B
Python
"""
|
|
Even more features than `tqdm.auto` (all the bells & whistles):
|
|
|
|
- `tqdm.auto`
|
|
- `tqdm.tqdm.pandas`
|
|
- `tqdm.contrib.slack`
|
|
+ uses `${TQDM_SLACK_TOKEN}` and `${TQDM_SLACK_CHANNEL}`
|
|
- `tqdm.contrib.telegram`
|
|
+ uses `${TQDM_TELEGRAM_TOKEN}` and `${TQDM_TELEGRAM_CHAT_ID}`
|
|
- `tqdm.contrib.discord`
|
|
+ uses `${TQDM_DISCORD_TOKEN}` and `${TQDM_DISCORD_CHANNEL_ID}`
|
|
"""
|
|
__all__ = ['tqdm', 'trange']
|
|
import warnings
|
|
from os import getenv
|
|
|
|
if getenv("TQDM_SLACK_TOKEN") and getenv("TQDM_SLACK_CHANNEL"):
|
|
from .slack import tqdm, trange
|
|
elif getenv("TQDM_TELEGRAM_TOKEN") and getenv("TQDM_TELEGRAM_CHAT_ID"):
|
|
from .telegram import tqdm, trange
|
|
elif getenv("TQDM_DISCORD_TOKEN") and getenv("TQDM_DISCORD_CHANNEL_ID"):
|
|
from .discord import tqdm, trange
|
|
else:
|
|
from ..auto import tqdm, trange
|
|
|
|
with warnings.catch_warnings():
|
|
warnings.simplefilter("ignore", category=FutureWarning)
|
|
tqdm.pandas()
|