-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (146 loc) · 4.26 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (146 loc) · 4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["scikit-build-core>=0.8", "pybind11>=3.0.1"]
build-backend = "scikit_build_core.build"
[project]
name = "bbstrader"
dynamic = ["version"]
description = "Simplified Investment & Trading Toolkit with Python & C++"
readme = "README.md"
dependencies = [
"beautifulsoup4>=4.13.5",
"colorama>=0.4.6",
"eodhd>=1.0.32",
"exchange_calendars>=4.11.1",
"financetoolkit>=2.0.4",
"ipython>=9.5.0",
"notify_py>=0.3.43",
"numpy>=2.2.6",
"pandas>=2.0",
"pybind11>=3.0.1",
"pyfiglet>=1.0.4",
"pyportfolioopt>=1.5.6",
"python-dotenv>=1.1.1",
"python-telegram-bot>=22.3",
"PyYAML>=6.0.2",
"QuantStats>=0.0.77",
"tabulate>=0.9.0",
"yfinance>=0.2.65",
]
authors = [
{ name = "Bertin Balouki SIMYELI", email = "bertin@bbs-trading.com" },
]
maintainers = [
{ name = "Bertin Balouki SIMYELI", email = "bertin@bbs-trading.com" },
]
license = "MIT"
requires-python = ">=3.12"
keywords = [
"Finance", "Toolkit", "Financial", "Analysis", "Fundamental", "Quantitative",
"Database", "Equities", "Currencies", "Economics", "ETFs", "Funds",
"Indices", "Moneymarkets", "Commodities", "Futures", "CFDs", "Derivatives",
"Trading", "Investing", "Portfolio", "Optimization", "Performance",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Office/Business :: Financial :: Investment",
"Programming Language :: Python :: 3.12",
"Programming Language :: C++",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
]
[project.urls]
"Homepage" = "https://github.com/bbalouki/bbstrader"
"Download" = "https://pypi.org/project/bbstrader/"
"Documentation" = "https://bbalouki.github.io/bbstrader/"
"Source Code" = "https://github.com/bbalouki/bbstrader"
"Changelog" = "https://github.com/bbalouki/bbstrader/blob/main/CHANGELOG.md"
"Issue Tracker" = "https://github.com/bbalouki/bbstrader/issues"
[project.scripts]
bbstrader = "bbstrader.__main__:main"
[project.optional-dependencies]
mt5 = ["MetaTrader5"]
# Backwards-compatible alias for the original extra name.
MT5 = ["MetaTrader5"]
nlp = [
"nltk>=3.9.1",
"spacy>=3.8.11",
"sumy>=0.11.0",
"textblob>=0.19.0",
"vaderSentiment>=3.3.2",
]
social = [
"praw>=7.8.1",
"tweepy>=4.16.0",
]
viz = [
"plotly>=5.24.1",
"seaborn>=0.13.2",
]
# Parquet/Arrow store for the data catalog (falls back to CSV when absent).
catalog = [
"pyarrow>=14.0",
]
all = [
"bbstrader[mt5,nlp,social,viz,catalog]",
]
# Scikit-Build-Core Configuration
[tool.scikit-build]
cmake.version = ">=3.20"
cmake.define = { "BUILD_PYTHON_BINDINGS" = "ON", "CMAKE_VS_GLOBALS" = "IgnoreWarnIntDirInTempDetected=true" }
wheel.packages = ["src/bbstrader"]
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "VERSION.txt"
regex = '(?P<value>\d+\.\d+\.\d+)'
[tool.scikit-build.sdist]
include = ["src/bbstrader/assets/*"]
# Static typing.
[tool.mypy]
python_version = "3.12"
files = ["src/bbstrader"]
ignore_missing_imports = true
follow_imports = "silent"
warn_unused_ignores = false
warn_redundant_casts = true
no_implicit_optional = true
show_error_codes = true
exclude = "(?x)(^src/bbstrader/api/|^build/)"
[[tool.mypy.overrides]]
module = [
"bbstrader.btengine.friction",
"bbstrader.btengine.vectorized",
"bbstrader.btengine.analytics",
"bbstrader.btengine.overfitting",
"bbstrader.btengine.timeframe",
"bbstrader.btengine.experiment",
"bbstrader.core.broker",
"bbstrader.core.indicators",
]
# The newly added research modules are written to a stricter standard.
disallow_untyped_defs = false
check_untyped_defs = true
[tool.ruff]
line-length = 88
target-version = "py312"
extend-exclude = ["build", "docs"]
[tool.ruff.lint]
# Default rule set (pyflakes + a pycodestyle subset) is enforced in CI. Broader
# rule sets (import sorting, pyupgrade, bugbear, ...) are being adopted
# incrementally; see CONTRIBUTING.md.
select = ["E4", "E7", "E9", "F"]
[tool.ruff.format]
quote-style = "double"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-mock>=3.14",
"ruff>=0.15",
"mypy>=1.11",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.26",
]