canswim
Developer toolkit for CANSLIM investment style practitioners
For a brief introduction read this blog post.
Here is also a video recording of a CANSWIM presentation for the Python Austin Meetup.
Setup
pip install canswim
Install canswim package in dev mode
pip install -e ./
Command line interface
$ python -m canswim -h
usage: canswim [-h] [--forecast_start_date FORECAST_START_DATE] [--new_model NEW_MODEL] [--same_data SAME_DATA] {dashboard,gatherdata,downloaddata,uploaddata,modelsearch,train,forecast}
CANSWIM is a toolkit for CANSLIM style investors. Aims to complement the Simple Moving Average and other technical indicators.
positional arguments:
{dashboard,gatherdata,downloaddata,uploaddata,modelsearch,train,forecast}
Which canswim task to run: `dashboard` for stock charting and scans of recorded forecasts. 'gatherdata` to gather 3rd party stock market data and save to HF Hub. 'downloaddata` download model training and forecast
data from HF Hub to local data storage. 'uploaddata` upload to HF Hub any interim changes to local train and forecast data. `modelsearch` to find and save optimal hyperparameters for model training. `train` for
continuous model training. `forecast` to run forecast on stocks and upload dataset to HF Hub.
options:
-h, --help show this help message and exit
--forecast_start_date FORECAST_START_DATE
Optional argument for the `forecast` task. Indicate forecast start date in YYYY-MM-DD format. If not specified, forecast will start from the end of the target series.
--new_model NEW_MODEL
Optional argument for the `train` task. Whether to train a newly created model or continue training an existing pre-trained model.
--same_data SAME_DATA
Optional argument for the `dashboard` task. Whether to reuse previously created search database (faster start time) or update with new forecast data (slower start time).
NOTE: NOT FINANCIAL OR INVESTMENT ADVICE. USE AT YOUR OWN RISK.
Metadata
Release files for canswim 0.0.20250106
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| canswim-0.0.20250106.tar.gz | 52.3 kB | Without provenance | Details for canswim-0.0.20250106.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| canswim-0.0.20250106-py3-none-any.whl | Python 3 | none | any | Details for canswim-0.0.20250106-py3-none-any.whl |
Total release size: 107.8 kB
Release files / canswim-0.0.20250106.tar.gz
| Download URL | canswim-0.0.20250106.tar.gz |
|---|---|
| Size | 52.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd63189a7c33fa1f1e9aa2fc006913d8a600bdc064b8f68c54dfa5d283879f30
|
|
BLAKE2b-256 checksum How to use checksums |
01419f12be6ae5fcb6f14f5174754eb2d5a7ac9dffb4284323e3686c197c606f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Release files / canswim-0.0.20250106-py3-none-any.whl
| Download URL | canswim-0.0.20250106-py3-none-any.whl |
|---|---|
| Size | 55.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c16320c479808a9a50a2e4e84acaf321bbcde0a89cc3ca898d87b8b62e79bd48
|
|
BLAKE2b-256 checksum How to use checksums |
83aacc7f7f9e345ec75a734f4b0226f44207d3be60c772ab4ac29ec9532b2ac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.7
|
Security for canswim 0.0.20250106
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.