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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for afl_ai_utils-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7b345c81f2f3d0dd3afc45fd12773141af984e649728bf46bccfdce656731e2 |
|
MD5 | 380fe1e822857682f89921f4b8ee53ae |
|
BLAKE2b-256 | b0b85b4f2d2723aac19f215205c3ad5fcc8015608894ee5ed041475fb45aabbc |