%global _empty_manifest_terminate_build 0 Name: python-canalyst-candas Version: 0.0.44 Release: 1 Summary: The official Canalyst Software Development Kit (SDK) for our public API License: Apache-2.0 URL: https://pypi.org/project/canalyst-candas/ Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7e/c0/4b10cfaae0448a39d8fcc45b3e21a95b12ec4bdbd2a10b68819bed2f6f7e/canalyst_candas-0.0.44.tar.gz BuildArch: noarch Requires: python3-boto Requires: python3-boto3 Requires: python3-botocore Requires: python3-fred Requires: python3-fredapi Requires: python3-future Requires: python3-graphviz Requires: python3-joblib Requires: python3-networkx Requires: python3-numexpr Requires: python3-numpy Requires: python3-pandas Requires: python3-plotly Requires: python3-pydantic Requires: python3-pydot Requires: python3-graphql-client Requires: python3-pyvis Requires: python3-openpyxl Requires: python3-requests Requires: python3-requests-html Requires: python3-urllib3 Requires: python3-matplotlib Requires: python3-statsmodels Requires: python3-yahoo-fin Requires: python3-pyarrow %description # Canalyst Data Science Library Canalyst's Python SDK is intended as a full featured data science library facilitating dataframe manipulation, data model mapping, and interactive scenario analysis of core Model, ModelSet, and ModelMap objects. # Python Version Requirement This package requires Python version `>=3.7`. Recommended Python version `>=3.8`. # Usage ## Install Required Packages Run `pip install -r requirements.txt` to install the requried packages. ## To Preview Sample Data The Python SDK supports a preview of sample data for three tickers: DIS US, TSLA US, or NFLX US. ``` import canalyst_candas as cd model = cd.SampleModel(ticker="DIS US") df = model.model_frame() ``` ## Configuration The Python SDK supports three ways of providing configuration, in order of precedence: 1. [Creating a `Config` instance](#using-config) 2. [Using environment variables](#using-environment-variables) 3. [Using a configuration file](#using-configuration-file) `Config` is used to store a user's configuration information. On initial `canalyst_candas` import, it will attempt to retrieve the configuration. ### Using `Config` A `Config` instance can be created with the desired configurations. In Python/iPython or Jupyter Notebook. Replace `<..>` with values ``` import sys sys.path.append('/src') import canalyst_candas as cd from canalyst_candas.configuration.config import Config # if you want to set a default directory, otherwise `default_dir` will be a temporary directory # from pathlib import Path # home = Path.home() # default_dir = f"{home}/" config_info = { "canalyst_api_key": "", "s3_access_key_id": "", "s3_secret_key": "", "fred_key": "", "default_dir": "", "mds_host": "", "wp_host": "", "verify_ssl": "True", } config = Config(config=config_info) ticker = "" model = cd.Model(ticker=ticker, config=config) model_set = cd.ModelSet(ticker_list=[ticker], config=config) cd.ModelMap( ticker=ticker, config=config, time_series_name=time_series, col_for_labels=