Skip to main content

Transfering Data between s3, snowflake & Domo with server integration

Project description

HALdata

Transfering Data between s3, snowflake & Domo. With server error detection capabilities.

Overview:

This code base is used to transfer data in between snowflake, aws s3 buckets domo and an api for email transfer through a corporate network. This code base is private to SharkNinja and is not meant to be copied or used elsewhere.

Data Manager Features;

  • Create list of domo address to send new data into
  • Create list of sql queries needed to select the right data from snowflake
  • Connect to snowflake using snowflake.connector
  • Query data from snowflake and save query as a dataframe then a csv
  • Upload the file to aws s3
  • Send json payload to api directing its use
  • iterate through for loop for each domo address and sql query

TestID features:

  • Query snowflake for hash table
  • Save and output current hash table to user
  • Ask user for new test ID, go through extensive error checking
  • If the ID is new create a new description
  • If ID first 5 digits already exist, automatically create new ID with next index and ask for new test desc from user

Server fetures:

  • load a pickled df
  • load a master df
  • unpickle, check for errors
  • pad missing columns in df
  • if there are no errors then upload to s3 bucket
  • store local copy onto server

Limitations:

There is currently a bug in the create new test ID script where if you use the wrong count of first numbers, it breaks later on.

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

HALdata-0.1.22.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

HALdata-0.1.22-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file HALdata-0.1.22.tar.gz.

File metadata

  • Download URL: HALdata-0.1.22.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for HALdata-0.1.22.tar.gz
Algorithm Hash digest
SHA256 b4cc98559d7c26ed706bc0423ce346cce5c4afc9bb33a200f608f9c4bb180c46
MD5 d948687a75967797a9c74f2103d5bf24
BLAKE2b-256 38e3d6c0f50f5e1f977d879b6194205b1b0ae12af664960b988c3e06528b45ea

See more details on using hashes here.

File details

Details for the file HALdata-0.1.22-py3-none-any.whl.

File metadata

  • Download URL: HALdata-0.1.22-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for HALdata-0.1.22-py3-none-any.whl
Algorithm Hash digest
SHA256 b55d920665a90ab1c554b5c8e7f7de75aa59cffd4860b2d1d6bfb2b2d3ca7dc0
MD5 a4b4ca95bec57b2bb1f4efdafd143c42
BLAKE2b-256 2dfd2e106408e54e13ccd11ff54bc08e74a9ee6b7d4e2b81b483558a423de52f

See more details on using hashes here.

Supported by

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