30 Star 131 Fork 63

Gitee 极速下载 / akshare

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/jindaxiang/akshare
克隆/下载
setup.py 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Date: 2021/12/8 17:09
Desc: AKShare's PYPI info file
"""
import re
import ast
import setuptools
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
def get_version_string() -> str:
"""
Get the akshare version number
:return: version number
:rtype: str, e.g. '0.6.24'
"""
with open("akshare/__init__.py", "rb") as _f:
version_line = re.search(
r"__version__\s+=\s+(.*)", _f.read().decode("utf-8")
).group(1)
return str(ast.literal_eval(version_line))
setuptools.setup(
name="akshare",
version=get_version_string(),
author="AKFamily",
author_email="akfamily.akshare@gmail.com",
license="MIT",
description="AKShare is an elegant and simple financial data interface library for Python, built for human beings!",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/akfamily/akshare",
packages=setuptools.find_packages(),
install_requires=[
"beautifulsoup4>=4.9.1",
"lxml>=4.2.1",
"pandas>=0.25",
"requests>=2.22.0",
"pypinyin>=0.35.0",
"websocket-client>=0.56.0",
"html5lib>=1.0.1",
"xlrd>=1.2.0",
"urllib3>=1.25.8",
"tqdm>=4.43.0",
"openpyxl>=3.0.3",
"jsonpath>=0.82",
"tabulate>=0.8.6",
"decorator>=4.4.2",
"py_mini_racer>=0.6.0",
"requests-cache>=0.9.3",
"cfscrape>=2.1.1",
],
package_data={"": ["*.py", "*.json", "*.pk", "*.js", "*.zip"]},
keywords=[
"stock",
"option",
"futures",
"fund",
"bond",
"index",
"air",
"finance",
"spider",
"quant",
"quantitative",
"investment",
"trading",
"algotrading",
"data",
],
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)
Python
1
https://gitee.com/mirrors/akshare.git
git@gitee.com:mirrors/akshare.git
mirrors
akshare
akshare
master

搜索帮助