Skip to main content

A sample test package

Project description

afl-ai-utils

rm -rf build dist 
python3 setup.py sdist bdist_wheel
twine upload --repository pypi dist/* 

Usage

    """Send a Slack message to a channel via a webhook.

    Args:
        dataframe(pandas dataframe): for dataframe to be dumped to bigquery
        schema(BigQuery.Schema ): ex:
            schema = [
                        bigquery.SchemaField("date_range_start", bigquery.enums.SqlTypeNames.DATE),
                        bigquery.SchemaField("date_range_end", bigquery.enums.SqlTypeNames.DATE)
                    ]

        table_id (list): table_id in which dataframe need to be inserted e.g project_id.dataset.table_name = table_id
        mode(str): To append or replace the table - e.g mode = "append"  or mode="replace"
    Returns:
        returns as success message with number of inserted rows and table name
    """

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

afl-ai-utils-0.0.4.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

afl_ai_utils-0.0.4-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page