代码拉取完成,页面将自动刷新
# -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2024/1/13 23:20
Desc: AKTools 的 PYPI 基本信息文件
"""
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 aktools version number
:return: version number
:rtype: str
"""
with open("aktools/__init__.py", "rb") as file:
version_line = re.search(
r"__version__\s+=\s+(.*)", file.read().decode("utf-8")
).group(1)
return str(ast.literal_eval(version_line))
setuptools.setup(
name="aktools",
version=get_version_string(),
author="AKFamily",
author_email="albertandking@gmail.com",
license="MIT",
description="AKTools is a tool for AKShare HTTP API!",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/akfamily/aktools",
packages=setuptools.find_packages(),
install_requires=[
"akshare>=1.13.7",
"fastapi>=0.110.0",
"uvicorn>=0.16.0",
"python-multipart>=0.0.9",
"jinja2>=3.1.2",
"typer[all]>=0.6.1",
],
package_data={"": ["*.py", "*.json", "*.pk", "*.woff", "*.html", "*.ico"]},
keywords=[
"stock",
"option",
"futures",
"bond",
"index",
"air",
"others",
"finance",
"spider",
"quant",
"quantitative",
"investment",
"trading",
"algotrading",
],
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。