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,直连正常
64 lines
1.7 KiB
Python
64 lines
1.7 KiB
Python
#
|
|
# Copyright 2018 Quantopian, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
from .calendar_utils import (
|
|
clear_calendars,
|
|
deregister_calendar,
|
|
get_calendar,
|
|
get_calendar_names,
|
|
register_calendar,
|
|
register_calendar_alias,
|
|
register_calendar_type,
|
|
resolve_alias,
|
|
names_to_aliases,
|
|
aliases_to_names,
|
|
)
|
|
from .exchange_calendar import ExchangeCalendar
|
|
|
|
__all__ = [
|
|
"ExchangeCalendar",
|
|
"aliases_to_names",
|
|
"clear_calendars",
|
|
"deregister_calendar",
|
|
"get_calendar",
|
|
"get_calendar_names",
|
|
"names_to_aliases",
|
|
"register_calendar",
|
|
"register_calendar_alias",
|
|
"register_calendar_type",
|
|
"resolve_alias",
|
|
]
|
|
|
|
__version__ = None
|
|
|
|
import contextlib
|
|
from importlib.metadata import version
|
|
|
|
with contextlib.suppress(ImportError):
|
|
# get version from installed package
|
|
__version__ = version("exchange_calendars")
|
|
|
|
if __version__ is None:
|
|
try:
|
|
# if package not installed, get version as set when package built
|
|
from ._version import version
|
|
except Exception: # noqa: BLE001
|
|
# If package not installed and not built, leave __version__ as None
|
|
pass
|
|
else:
|
|
__version__ = version
|
|
|
|
del version
|