mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-29 11:18:20 +08:00
The AssetDBWriter class and its subclasses will ultimately be responsible for creating the SQLite database tables and writing data to these tables. In the longer term AssetDBWriter and AssetFinder will be decoupled, sharing only an SQLite connection. However, for backward compatibility reasons this has not yet been fully implemented. Modify tests since AssetFinder no longer has a metadata_cache attribute.
51 lines
1.3 KiB
Python
51 lines
1.3 KiB
Python
#
|
|
# Copyright 2015 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 ._assets import (
|
|
Asset,
|
|
Equity,
|
|
Future,
|
|
make_asset_array,
|
|
CACHE_FILE_TEMPLATE
|
|
)
|
|
from .asset_writer import (
|
|
AssetDBWriterFromDictionary,
|
|
NullAssetDBWriterLegacy,
|
|
AssetDBWriterLegacyFromList,
|
|
AssetDBWriterLegacyFromDictionary,
|
|
AssetDBWriterLegacyFromDataFrame,
|
|
AssetDBWriterLegacyFromReadable
|
|
)
|
|
from .assets import (
|
|
AssetFinder,
|
|
AssetConvertible
|
|
)
|
|
|
|
__all__ = [
|
|
'Asset',
|
|
'Equity',
|
|
'Future',
|
|
'AssetDBWriterFromDictionary',
|
|
'NullAssetDBWriterLegacy',
|
|
'AssetDBWriterLegacyFromList',
|
|
'AssetDBWriterLegacyFromDictionary',
|
|
'AssetDBWriterLegacyFromDataFrame',
|
|
'AssetDBWriterLegacyFromReadable',
|
|
'AssetFinder',
|
|
'AssetConvertible',
|
|
'make_asset_array',
|
|
'CACHE_FILE_TEMPLATE'
|
|
]
|