Skip to main content

Convenience functions for typical reports run against Socotra Data Mart

Project description

Data Mart Reporting

A library for common Data Mart reporting needs.

Reports

Reports prefaced with platform_ have analogues in the Socotra platform.

You can run reports by passing database credentials to the report class instance, then calling the appropriate execution method.

Example:

from socotra_datamart_reports import TransactionFinancialImpactReport

creds = {
    'user': 'my-datamart-username',
    'password': 'my-datamart-password',
    'port': 'my-datamart-port',
    'host': 'my-datamart-host',
    'database': 'my-datamart-database'
}

tfir = TransactionFinancialImpactReport(creds)
tfir.write_transaction_financial_impact_report(
    'personal-auto', 1659326400000, 1664596800000, 'tx_report.csv')

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

socotra-datamart-reports-0.0.3.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

socotra_datamart_reports-0.0.3-py3-none-any.whl (12.6 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