PyStore 项目教程
pystoreFast data store for Pandas time-series data项目地址:https://gitcode.com/gh_mirrors/py/pystore
1. 项目的目录结构及介绍
PyStore 项目的目录结构如下:
pystore/
├── examples/
│ └── ...
├── pystore/
│ ├── __init__.py
│ ├── store.py
│ ├── collection.py
│ ├── item.py
│ └── utils.py
├── .gitignore
├── .travis.yml
├── CHANGELOG.rst
├── LICENSE.txt
├── MANIFEST.in
├── README.rst
├── meta.yaml
├── requirements.txt
├── setup.cfg
├── setup.py
└── ...
目录结构介绍
examples/
: 包含使用 PyStore 的示例代码。pystore/
: 核心代码目录,包含项目的各个模块。__init__.py
: 初始化文件。store.py
: 存储管理模块。collection.py
: 集合管理模块。item.py
: 项目管理模块。utils.py
: 工具函数模块。
.gitignore
: Git 忽略文件配置。.travis.yml
: Travis CI 配置文件。CHANGELOG.rst
: 变更日志。LICENSE.txt
: 许可证文件。MANIFEST.in
: 清单文件。README.rst
: 项目说明文档。meta.yaml
: 元数据文件。requirements.txt
: 依赖包列表。setup.cfg
: 安装配置文件。setup.py
: 安装脚本。
2. 项目的启动文件介绍
PyStore 项目的启动文件是 pystore/__init__.py
。该文件负责初始化项目,并导入必要的模块。
# pystore/__init__.py
from .store import Store
from .collection import Collection
from .item import Item
from .utils import set_path
__version__ = "0.1.24"
启动文件介绍
Store
: 存储管理类。Collection
: 集合管理类。Item
: 项目管理类。set_path
: 设置存储路径的工具函数。__version__
: 项目版本号。
3. 项目的配置文件介绍
PyStore 项目的配置文件主要包括 setup.cfg
和 requirements.txt
。
setup.cfg
setup.cfg
文件包含了项目的安装配置信息。
[metadata]
name = pystore
version = attr: pystore.__version__
description = Fast data store for Pandas timeseries data
long_description = file: README.rst, CHANGELOG.rst
long_description_content_type = text/x-rst
author = Ran Aroussi
author_email = ran@aroussi.com
url = https://github.com/ranaroussi/pystore
license = Apache License, Version 2.0
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Topic :: Database :: Database Engines/Servers
Topic :: Software Development :: Libraries :: Python Modules
[options]
packages = find:
install_requires =
pandas
numpy
dask
pyarrow
pyyaml
[options.packages.find]
where = .
requirements.txt
requirements.txt
文件列出了项目运行所需的依赖包。
pandas
numpy
dask
pyarrow
pyyaml
配置文件介绍
setup.cfg
: 包含项目的元数据和安装选项。metadata
: 项目的基本信息,如名称、版本、描述、作者等。options
: 安装选项,包括需要安装的包和依赖。
requirements.txt
: 列出了项目运行所需的依赖包。
pystoreFast data store for Pandas time-series data项目地址:https://gitcode.com/gh_mirrors/py/pystore