snowflake-ai


Namesnowflake-ai JSON
Version 0.5.3 PyPI version JSON
download
home_pagehttps://github.com/illuminairy-ai/snowflake-ai#readme
SummaryA Snowflake centic Enterprise AI/ML framework with tight integration of popular data science libraries
upload_time2023-09-11 07:05:51
maintainer
docs_urlNone
authorIlluminairy AI
requires_python>=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*, !=3.11.*
licenseApache Software License 2
keywords snowflake enterprise ai/ml ai ml machine learning illuminairy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)
[![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3810/)
[![PyPI downloads month](https://img.shields.io/pypi/dm/snowflake-ai.svg)](https://pypi.python.org/pypi/snowflake-ai/)

Snowflake-AI
=======

*Snowflake_AI* is a Snowflake-centric **Enterprise AI/ML** framework with the tight integration of popular Python data science libraries, e.g., *Pandas*, *Scikit-Learn*, *Pytorch*, *MLFlow*, *Tensorflow*, etc. This project simplifies the process of integrating your company's Snowflake data securely with those popular libraries, making it easier to develop *Snowflake AI* applications leveraging *Snowpark* and other Snowflake ML capabilities to deploy machine learning models in the production environment following the standard MLOps process and enterprise security and governance. Currently, this framework supports OAuth (Authorization Code flow, Device Code flow, Client Credentials flow, etc.) and SAML SSO Snowflake Connection, Streamlit and Notebook Apps development framework, build-in light-weigth MLOps pipelines and initial *Snowpandas* feature engineering APIs.


Installation
------

Use pip to install:

```bash
pip install snowflake-ai
```

or, use Poetry to install:

```bash
poetry add snowflake-ai
```


Configuration
-------

Copy the sample configuration file from the {installed lib dir}/snowflake_ai/conf directory and update the Snowflake connection parameters.

For example, you may do the following to find out where is the {installed lib dir}:

```bash
pip show snowflake-ai
```

While you are in {installed lib dir}, you may do:

```bash
mkdir -p ~/.snowflake_ai/conf
cp snowflake_ai/conf/app_config.toml ~/.snowflake_ai/conf/
```

Then, edit snowflake_ai/conf/app_config.toml with your Snowflake connection details.
Please consult your system admins for your company specific OAuth setup (Note: Azure AD has been fully tested).


Usage
------

To get started with Snowflake-AI, import StreamlitApp and DataFrameFactory from the library:

```python
from snowflake_ai.common import DataFrameFactory as DFF
from snowflake_ai.apps import StreamlitApp

```

Create a SnowConnect instance:

```python
app = StreamlitApp("streamlit_group.app_1")
connect = app.get_default_snow_connect()

```

Specify the table/view or sql you want to work with and create a DataFrame:

```python
tbl_nm = 'SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.CUSTOMER'
sdf = DFF.create_df(tbl_nm, connect)
```

Display the contents of the DataFrame:

```python
sdf.show()
```

Currently, in addition to Streamlit app support, Jupyter notebook, Console app, and Base App are supported.

From here, you can use Snowflake-AI to preprocess and manipulate your data using additional Snowpark API, Pandas and Scikit-Learn, Pytorch, etc. to train machine learning models, and perform predictions. Stay tuned, as there are many features in the pipelines waiting to be released.

Enjoy building your next AI/ML project with Snowflake-AI!



Contribution & Development
------

We are always actively seeking contributors to help enhance our open-source project! Whether you're interested in coding, designing, or testing and documentation, your participation can make a valuable difference. Join us in shaping the future of this project and be part of a collaborative community.

It is recommended that you have *Poetry* installed on your system as it would simplify dependence management and code releases. You can install *Poetry* by following the instructions [here](https://python-poetry.org/docs/).

Next, clone [*this*](https://github.com/illuminairy-ai/snowflake-ai.git) repository and navigate to the project directory (assume you are in bash terminal):

```bash
git clone https://github.com/illuminairy-ai/snowflake-ai.git
cd snowflake-ai
```

Then, use Poetry to install all dependencies:

```bash
poetry install
```


License
------

This project is licensed under the Apache 2.0 License - see the [LICENSE](https://github.com/illuminairy-ai/snowflake-ai/blob/master/LICENSE.txt) file for details.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/illuminairy-ai/snowflake-ai#readme",
    "name": "snowflake-ai",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*, !=3.11.*",
    "maintainer_email": "",
    "keywords": "Snowflake,Enterprise,AI/ML,AI,ML,Machine Learning,Illuminairy",
    "author": "Illuminairy AI",
    "author_email": "tony.liu@yahoo.com",
    "download_url": "https://files.pythonhosted.org/packages/f6/5f/52fa8a225c5ede1e2a6f50851333a2778f2a776b980172a1295f22ed27d4/snowflake_ai-0.5.3.tar.gz",
    "platform": null,
    "description": "[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)\n[![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3810/)\n[![PyPI downloads month](https://img.shields.io/pypi/dm/snowflake-ai.svg)](https://pypi.python.org/pypi/snowflake-ai/)\n\nSnowflake-AI\n=======\n\n*Snowflake_AI* is a Snowflake-centric **Enterprise AI/ML** framework with the tight integration of popular Python data science libraries, e.g., *Pandas*, *Scikit-Learn*, *Pytorch*, *MLFlow*, *Tensorflow*, etc. This project simplifies the process of integrating your company's Snowflake data securely with those popular libraries, making it easier to develop *Snowflake AI* applications leveraging *Snowpark* and other Snowflake ML capabilities to deploy machine learning models in the production environment following the standard MLOps process and enterprise security and governance. Currently, this framework supports OAuth (Authorization Code flow, Device Code flow, Client Credentials flow, etc.) and SAML SSO Snowflake Connection, Streamlit and Notebook Apps development framework, build-in light-weigth MLOps pipelines and initial *Snowpandas* feature engineering APIs.\n\n\nInstallation\n------\n\nUse pip to install:\n\n```bash\npip install snowflake-ai\n```\n\nor, use Poetry to install:\n\n```bash\npoetry add snowflake-ai\n```\n\n\nConfiguration\n-------\n\nCopy the sample configuration file from the {installed lib dir}/snowflake_ai/conf directory and update the Snowflake connection parameters.\n\nFor example, you may do the following to find out where is the {installed lib dir}:\n\n```bash\npip show snowflake-ai\n```\n\nWhile you are in {installed lib dir}, you may do:\n\n```bash\nmkdir -p ~/.snowflake_ai/conf\ncp snowflake_ai/conf/app_config.toml ~/.snowflake_ai/conf/\n```\n\nThen, edit snowflake_ai/conf/app_config.toml with your Snowflake connection details.\nPlease consult your system admins for your company specific OAuth setup (Note: Azure AD has been fully tested).\n\n\nUsage\n------\n\nTo get started with Snowflake-AI, import StreamlitApp and DataFrameFactory from the library:\n\n```python\nfrom snowflake_ai.common import DataFrameFactory as DFF\nfrom snowflake_ai.apps import StreamlitApp\n\n```\n\nCreate a SnowConnect instance:\n\n```python\napp = StreamlitApp(\"streamlit_group.app_1\")\nconnect = app.get_default_snow_connect()\n\n```\n\nSpecify the table/view or sql you want to work with and create a DataFrame:\n\n```python\ntbl_nm = 'SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.CUSTOMER'\nsdf = DFF.create_df(tbl_nm, connect)\n```\n\nDisplay the contents of the DataFrame:\n\n```python\nsdf.show()\n```\n\nCurrently, in addition to Streamlit app support, Jupyter notebook, Console app, and Base App are supported.\n\nFrom here, you can use Snowflake-AI to preprocess and manipulate your data using additional Snowpark API, Pandas and Scikit-Learn, Pytorch, etc. to train machine learning models, and perform predictions. Stay tuned, as there are many features in the pipelines waiting to be released.\n\nEnjoy building your next AI/ML project with Snowflake-AI!\n\n\n\nContribution & Development\n------\n\nWe are always actively seeking contributors to help enhance our open-source project! Whether you're interested in coding, designing, or testing and documentation, your participation can make a valuable difference. Join us in shaping the future of this project and be part of a collaborative community.\n\nIt is recommended that you have *Poetry* installed on your system as it would simplify dependence management and code releases. You can install *Poetry* by following the instructions [here](https://python-poetry.org/docs/).\n\nNext, clone [*this*](https://github.com/illuminairy-ai/snowflake-ai.git) repository and navigate to the project directory (assume you are in bash terminal):\n\n```bash\ngit clone https://github.com/illuminairy-ai/snowflake-ai.git\ncd snowflake-ai\n```\n\nThen, use Poetry to install all dependencies:\n\n```bash\npoetry install\n```\n\n\nLicense\n------\n\nThis project is licensed under the Apache 2.0 License - see the [LICENSE](https://github.com/illuminairy-ai/snowflake-ai/blob/master/LICENSE.txt) file for details.\n\n",
    "bugtrack_url": null,
    "license": "Apache Software License 2",
    "summary": "A Snowflake centic Enterprise AI/ML framework with tight integration of popular data science libraries",
    "version": "0.5.3",
    "project_urls": {
        "Homepage": "https://github.com/illuminairy-ai/snowflake-ai#readme"
    },
    "split_keywords": [
        "snowflake",
        "enterprise",
        "ai/ml",
        "ai",
        "ml",
        "machine learning",
        "illuminairy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7aca6c2896364d67131db70f95b6c2006026378f8b794f30c818db7c9e38fbe2",
                "md5": "f72372748fe8f054086d202b678adf17",
                "sha256": "5cf6727ee63b56c2f0d1e47a15d20b0df285652d04e204ff215cdd221c81e714"
            },
            "downloads": -1,
            "filename": "snowflake_ai-0.5.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f72372748fe8f054086d202b678adf17",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*, !=3.11.*",
            "size": 89925,
            "upload_time": "2023-09-11T07:05:50",
            "upload_time_iso_8601": "2023-09-11T07:05:50.360584Z",
            "url": "https://files.pythonhosted.org/packages/7a/ca/6c2896364d67131db70f95b6c2006026378f8b794f30c818db7c9e38fbe2/snowflake_ai-0.5.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f65f52fa8a225c5ede1e2a6f50851333a2778f2a776b980172a1295f22ed27d4",
                "md5": "a4292125e5c3144a96930e20fe17b8f2",
                "sha256": "d4662f3c1212b38a869dcb549e807ed32db7d9344bbd8264c20b979cd334b744"
            },
            "downloads": -1,
            "filename": "snowflake_ai-0.5.3.tar.gz",
            "has_sig": false,
            "md5_digest": "a4292125e5c3144a96930e20fe17b8f2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*, !=3.11.*",
            "size": 61744,
            "upload_time": "2023-09-11T07:05:51",
            "upload_time_iso_8601": "2023-09-11T07:05:51.666391Z",
            "url": "https://files.pythonhosted.org/packages/f6/5f/52fa8a225c5ede1e2a6f50851333a2778f2a776b980172a1295f22ed27d4/snowflake_ai-0.5.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-11 07:05:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "illuminairy-ai",
    "github_project": "snowflake-ai#readme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "snowflake-ai"
}
        
Elapsed time: 0.11287s