# [![arctic](logo/arctic_50.png)](https://github.com/manahl/arctic) [Arctic TimeSeries and Tick store](https://github.com/manahl/arctic)
[![Circle CI](https://circleci.com/gh/manahl/arctic.svg?style=shield)](https://circleci.com/gh/manahl/arctic)
[![Travis CI](https://travis-ci.org/manahl/arctic.svg?branch=master)](https://travis-ci.org/manahl/arctic)
[![Coverage Status](https://coveralls.io/repos/github/manahl/arctic/badge.svg?branch=master)](https://coveralls.io/github/manahl/arctic?branch=master)
[![Join the chat at https://gitter.im/manahl/arctic](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/manahl/arctic?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Arctic is a high performance datastore for numeric data. It supports [Pandas](http://pandas.pydata.org/),
[numpy](http://www.numpy.org/) arrays and pickled objects out-of-the-box, with pluggable support for
other data types and optional versioning.
Arctic can query millions of rows per second per client, achieves ~10x compression on network bandwidth,
~10x compression on disk, and scales to hundreds of millions of rows per second per
[MongoDB](https://www.mongodb.org/) instance.
Arctic has been under active development at [Man AHL](http://www.ahl.com/) since 2012.
## Quickstart
### Install Arctic
```
pip install git+https://github.com/manahl/arctic.git
```
### Run a MongoDB
```
mongod --dbpath <path/to/db_directory>
```
### Using VersionStore
```
from arctic import Arctic
import quandl
# Connect to Local MONGODB
store = Arctic('localhost')
# Create the library - defaults to VersionStore
store.initialize_library('NASDAQ')
# Access the library
library = store['NASDAQ']
# Load some data - maybe from Quandl
aapl = quandl.get("WIKI/AAPL", authtoken="your token here")
# Store the data in the library
library.write('AAPL', aapl, metadata={'source': 'Quandl'})
# Reading the data
item = library.read('AAPL')
aapl = item.data
metadata = item.metadata
```
VersionStore supports much more: [See the HowTo](howtos/how_to_use_arctic.py)!
### Adding your own storage engine
Plugging a custom class in as a library type is straightforward. [This example
shows how.](howtos/how_to_custom_arctic_library.py)
## Concepts
### Libraries
Arctic provides namespaced *libraries* of data. These libraries allow
bucketing data by *source*, *user* or some other metric (for example frequency:
End-Of-Day; Minute Bars; etc.).
Arctic supports multiple data libraries per user. A user (or namespace)
maps to a MongoDB database (the granularity of mongo authentication). The library
itself is composed of a number of collections within the database. Libraries look like:
* user.EOD
* user.ONEMINUTE
A library is mapped to a Python class. All library databases in MongoDB are prefixed with 'arctic_'
### Storage Engines
Arctic includes three storage engines:
* [VersionStore](arctic/store/version_store.py): a key-value versioned TimeSeries store. It supports:
* Pandas data types (other Python types pickled)
* Multiple versions of each data item. Can easily read previous versions.
* Create point-in-time snapshots across symbols in a library
* Soft quota support
* Hooks for persisting other data types
* Audited writes: API for saving metadata and data before and after a write.
* a wide range of TimeSeries data frequencies: End-Of-Day to Minute bars
* [See the HowTo](howtos/how_to_use_arctic.py)
* [TickStore](arctic/tickstore/tickstore.py): Column oriented tick database. Supports
dynamic fields, chunks aren't versioned. Designed for large continuously ticking data.
* [Chunkstore](arctic/chunkstore/chunkstore.py): A storage type that allows data to be stored in customizable chunk sizes. Chunks
aren't versioned, and can be appended to and updated in place.
Arctic storage implementations are **pluggable**. VersionStore is the default.
## Requirements
Arctic currently works with:
* Python 2.7, 3.4, 3.5
* pymongo >= 3.0
* Pandas
* MongoDB >= 2.4.x
## Acknowledgements
Arctic has been under active development at [Man AHL](http://www.ahl.com/) since 2012.
It wouldn't be possible without the work of the AHL Data Engineering Team including:
* [Richard Bounds](https://github.com/richardbounds)
* [James Blackburn](https://github.com/jamesblackburn)
* [Vlad Mereuta](https://github.com/vmereuta)
* [Tom Taylor](https://github.com/TomTaylorLondon)
* Tope Olukemi
* Drake Siard
* [Slavi Marinov](https://github.com/slavi)
* [Wilfred Hughes](https://github.com/wilfred)
* [Edward Easton](https://github.com/eeaston)
* ... and many others ...
Contributions welcome!
## License
Arctic is licensed under the GNU LGPL v2.1. A copy of which is included in [LICENSE](LICENSE)
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | arctic-1.29.0.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 118 浏览量
2022-02-10
03:11:13
上传
评论
收藏 440KB GZ 举报
温馨提示
共161个文件
py:130个
txt:5个
png:4个
资源来自pypi官网。 资源全名:arctic-1.29.0.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
PyPI 官网下载 | arctic-1.29.0.tar.gz (161个子文件)
_compress.c 679KB
lz4.c 44KB
lz4hc.c 29KB
setup.cfg 59B
.coveragerc 102B
.gitignore 124B
lz4.h 13KB
lz4hc.h 2KB
asv.conf.json 3KB
LICENSE 24KB
CHANGES.md 6KB
README.md 5KB
benchmarks.md 489B
PKG-INFO 15KB
PKG-INFO 15KB
test-data.pkl 725B
arctic_500.png 121KB
arctic_200.png 34KB
arctic_100.png 14KB
arctic_50.png 6KB
.project 3KB
test_pandas_store.py 72KB
test_chunkstore.py 46KB
version_store.py 40KB
test_version_store.py 38KB
tickstore.py 28KB
test_ts_read.py 26KB
_ndarray_store.py 21KB
arctic.py 18KB
test_arctic.py 16KB
test_bitemporal_store.py 16KB
chunkstore.py 16KB
test_toplevel.py 14KB
test_version_store.py 14KB
test_ndarray_store.py 13KB
test_daterange.py 11KB
test_version_store_audit.py 10KB
test_version_store_audit.py 10KB
test_toplevel.py 10KB
test_multi_index.py 10KB
_pandas_ndarray_store.py 10KB
test_arctic_fsck.py 9KB
toplevel.py 9KB
test_tickstore.py 9KB
_daterange.py 8KB
test_arctic.py 7KB
numpy_records.py 6KB
test_copy_data.py 6KB
audit.py 6KB
test_decorators_unit.py 6KB
test_pickle_store.py 6KB
numpy_arrays.py 6KB
how_to_custom_arctic_library.py 5KB
_util.py 5KB
test_utils.py 5KB
setup.py 5KB
multi_index.py 5KB
arctic_copy_data.py 5KB
test_initialize_library.py 5KB
mongo.py 5KB
bitemporal_store.py 4KB
date_chunker.py 4KB
test_pickle_store.py 4KB
test_arctic_create_user.py 4KB
arctic.py 4KB
_pickle_store.py 4KB
test_util.py 3KB
201507_demo_pydata.py 3KB
benchmarks.py 3KB
arctic_fsck.py 3KB
test_date_chunker.py 3KB
test_numpy_records.py 3KB
test_pandas_ndarray_store.py 3KB
test_compression.py 3KB
test_delete_library.py 3KB
decorators.py 3KB
test_initialize_library.py 3KB
test_ts_write.py 2KB
_version_store_utils.py 2KB
arctic_create_user.py 2KB
arctic_init_library.py 2KB
test_enable_sharding.py 2KB
_chunker.py 2KB
test_numpy_arrays.py 2KB
arctic_prune_versions.py 2KB
test_ndarray_store.py 2KB
test_arctic_fsck.py 2KB
test_ts_delete.py 2KB
test_datetime_to_ms_roundtrip.py 2KB
test_prune_versions.py 2KB
_compression.py 2KB
_util.py 2KB
_generalslice.py 2KB
utils.py 2KB
test_compress.py 2KB
passthrough_chunker.py 2KB
how_to_use_arctic.py 2KB
util.py 2KB
hosts.py 2KB
test_compress_integration.py 1KB
共 161 条
- 1
- 2
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功