BackcastPro 0.0.1__tar.gz → 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of BackcastPro might be problematic. Click here for more details.

@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: BackcastPro
3
+ Version: 0.0.2
4
+ Summary: A small example package
5
+ Author-email: 笹澤ようすけ <yosuke.sasazawa@gmail.com>
6
+ Project-URL: Homepage, https://BackcastPro.github.io/BackcastPro/
7
+ Project-URL: Issues, https://github.com/BackcastPro/BackcastPro/issues
8
+ Project-URL: Logo, https://raw.githubusercontent.com/BackcastPro/BackcastPro/main/docs/img/2.png
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+
15
+ # BackcastPro
16
+
17
+ A Python backtesting library for trading strategies.
18
+
19
+ ## Installation
20
+
21
+ ### From PyPI (for end users)
22
+
23
+ ```bash
24
+ pip install BackcastPro
25
+ ```
26
+
27
+ ### Development Installation
28
+
29
+ For development, clone the repository and install in development mode:
30
+
31
+ ```bash
32
+ git clone <repository-url>
33
+ cd BackcastPro
34
+ pip install -e .
35
+ ```
36
+
37
+ **開発モードインストール(pip install -e .)を行う**
38
+ - 先ほど実行したpip install -e .により、プロジェクトが開発モードでインストールされています
39
+ - これにより、srcディレクトリが自動的にPythonパスに追加されました
40
+
41
+ ## Usage
42
+
43
+ ```python
44
+ from BackcastPro import Strategy, Backtest
45
+ from BackcastPro.lib import resample_apply
46
+
47
+ # Your trading strategy implementation here
48
+ ```
49
+
50
+ ## Documents
51
+
52
+ - [How to deploy to PyPI](./docs/How%20to%20deploy%20to%20PyPI.md)
53
+ - [Examples](./docs/examples/)
@@ -0,0 +1,39 @@
1
+ # BackcastPro
2
+
3
+ A Python backtesting library for trading strategies.
4
+
5
+ ## Installation
6
+
7
+ ### From PyPI (for end users)
8
+
9
+ ```bash
10
+ pip install BackcastPro
11
+ ```
12
+
13
+ ### Development Installation
14
+
15
+ For development, clone the repository and install in development mode:
16
+
17
+ ```bash
18
+ git clone <repository-url>
19
+ cd BackcastPro
20
+ pip install -e .
21
+ ```
22
+
23
+ **開発モードインストール(pip install -e .)を行う**
24
+ - 先ほど実行したpip install -e .により、プロジェクトが開発モードでインストールされています
25
+ - これにより、srcディレクトリが自動的にPythonパスに追加されました
26
+
27
+ ## Usage
28
+
29
+ ```python
30
+ from BackcastPro import Strategy, Backtest
31
+ from BackcastPro.lib import resample_apply
32
+
33
+ # Your trading strategy implementation here
34
+ ```
35
+
36
+ ## Documents
37
+
38
+ - [How to deploy to PyPI](./docs/How%20to%20deploy%20to%20PyPI.md)
39
+ - [Examples](./docs/examples/)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "BackcastPro"
3
- version = "0.0.1"
3
+ version = "0.0.2"
4
4
  authors = [
5
5
  { name="笹澤ようすけ", email="yosuke.sasazawa@gmail.com" },
6
6
  ]
@@ -16,6 +16,7 @@ classifiers = [
16
16
  [project.urls]
17
17
  Homepage = "https://BackcastPro.github.io/BackcastPro/"
18
18
  Issues = "https://github.com/BackcastPro/BackcastPro/issues"
19
+ Logo = "https://raw.githubusercontent.com/BackcastPro/BackcastPro/main/docs/img/2.png"
19
20
 
20
21
  [tool.setuptools]
21
22
  include-package-data = true
@@ -0,0 +1,90 @@
1
+ """
2
+
3
+ ![xkcd.com/1570](https://imgs.xkcd.com/comics/engineer_syllogism.png){: height=263}
4
+
5
+ ## Manuals
6
+
7
+ * [**Quick Start User Guide**](../examples/Quick Start User Guide.html)
8
+
9
+ ## Tutorials
10
+
11
+ The tutorials encompass most framework features, so it's important
12
+ and advisable to go through all of them. They are short.
13
+
14
+ * [Library of Utilities and Composable Base Strategies](../examples/Strategies Library.html)
15
+ * [Multiple Time Frames](../examples/Multiple Time Frames.html)
16
+ * [**Parameter Heatmap & Optimization**](../examples/Parameter Heatmap &amp; Optimization.html)
17
+ * [Trading with Machine Learning](../examples/Trading with Machine Learning.html)
18
+
19
+ These tutorials are also available as live Jupyter notebooks:
20
+ [![Binder](https://mybinder.org/badge_logo.svg)][binder]
21
+ [![Google Colab](https://colab.research.google.com/assets/colab-badge.png)][colab]
22
+ <br>In Colab, you might have to `!pip install backtesting`.
23
+
24
+ [binder]: \
25
+ https://mybinder.org/v2/gh/kernc/backtesting.py/master?\
26
+ urlpath=lab%2Ftree%2Fdoc%2Fexamples%2FQuick%20Start%20User%20Guide.ipynb
27
+ [colab]: https://colab.research.google.com/github/kernc/backtesting.py/
28
+
29
+ ## Video Tutorials
30
+
31
+ * Some [**coverage on YouTube**](https://github.com/kernc/backtesting.py/discussions/677).
32
+ * [YouTube search](https://www.youtube.com/results?q=%22backtesting.py%22)
33
+
34
+ ## Example Strategies
35
+
36
+ * (contributions welcome)
37
+
38
+
39
+ .. tip::
40
+ For an overview of recent changes, see
41
+ [What's New, i.e. the **Change Log**](https://github.com/kernc/backtesting.py/blob/master/CHANGELOG.md).
42
+
43
+
44
+ ## FAQ
45
+
46
+ Some answers to frequent and popular questions can be found on the
47
+ [issue tracker](https://github.com/kernc/backtesting.py/issues?q=label%3Aquestion+-label%3Ainvalid)
48
+ or on the [discussion forum](https://github.com/kernc/backtesting.py/discussions) on GitHub.
49
+ Please use the search!
50
+
51
+ ## License
52
+
53
+ This software is licensed under the terms of [AGPL 3.0]{: rel=license},
54
+ meaning you can use it for any reasonable purpose and remain in
55
+ complete ownership of all the excellent trading strategies you produce,
56
+ but you are also encouraged to make sure any upgrades to _Backtesting.py_
57
+ itself find their way back to the community.
58
+
59
+ [AGPL 3.0]: https://www.gnu.org/licenses/agpl-3.0.html
60
+
61
+ # API Reference Documentation
62
+ """
63
+ try:
64
+ from ._version import version as __version__
65
+ except ImportError:
66
+ __version__ = '?.?.?' # Package not installed
67
+
68
+ from . import lib # noqa: F401
69
+ from ._plotting import set_bokeh_output # noqa: F401
70
+ from .backtesting import Backtest, Strategy # noqa: F401
71
+
72
+
73
+ # Add overridable backtesting.Pool used for parallel optimization
74
+ def Pool(processes=None, initializer=None, initargs=()):
75
+ import multiprocessing as mp
76
+ if mp.get_start_method() == 'spawn':
77
+ import warnings
78
+ warnings.warn(
79
+ "If you want to use multi-process optimization with "
80
+ "`multiprocessing.get_start_method() == 'spawn'` (e.g. on Windows),"
81
+ "set `backtesting.Pool = multiprocessing.Pool` (or of the desired context) "
82
+ "and hide `bt.optimize()` call behind a `if __name__ == '__main__'` guard. "
83
+ "Currently using thread-based paralellism, "
84
+ "which might be slightly slower for non-numpy / non-GIL-releasing code. "
85
+ "See https://github.com/kernc/backtesting.py/issues/1256",
86
+ category=RuntimeWarning, stacklevel=3)
87
+ from multiprocessing.dummy import Pool
88
+ return Pool(processes, initializer, initargs)
89
+ else:
90
+ return mp.Pool(processes, initializer, initargs)