Skip to main content

afl-ai-utils

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

Usage

Slack Alerting

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

Args:
    info_alert_slack_webhook_url(str): Infor slack channel url
    red_alert_slack_webhook_url(str): red alert channel url
    slack_red_alert_userids (list): userid's to mention in slack for red alert notification
    payload (dict): Dictionary containing Slack message, i.e. {"text": "This is a test"}
    is_red_alert (bool): Full Slack webhook URL for your chosen channel.

Returns:
    HTTP response code, i.e. <Response [503]>
"""

BigQuery Dataframe to BigQuery

    """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
    """

Metadata

Release files for afl-ai-utils 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for afl-ai-utils 0.0.5
File Size Uploaded Provenance Actions
afl-ai-utils-0.0.5.tar.gz 3.3 kB Without provenance Details for afl-ai-utils-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for afl-ai-utils 0.0.5
File Interpreter ABI Platform Actions
afl_ai_utils-0.0.5-py3-none-any.whl Python 3 none any Details for afl_ai_utils-0.0.5-py3-none-any.whl

Total release size: 7.9 kB

Release files / afl-ai-utils-0.0.5.tar.gz

Download URL afl-ai-utils-0.0.5.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b4c8111df146f46af06077ecdb95692edb129bb164541942e84d5e4333571c10
BLAKE2b-256 checksum
How to use checksums
3733aa4adc5f4264bbabac811695ba2fff893fe8c7127cd9a9066889a28eca79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release files / afl_ai_utils-0.0.5-py3-none-any.whl

Download URL afl_ai_utils-0.0.5-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
012751c3a6c545885d7a40bf566c1c79bc85a4fe20118b3d2fb3449137fb89bd
BLAKE2b-256 checksum
How to use checksums
194564063a7e2f232b32515fa9337b10eea8be14d311364d6e56853aa42867fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Security for afl-ai-utils 0.0.5

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.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page