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.23.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.23-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: HALdata-0.1.23.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.23.tar.gz
Algorithm Hash digest
SHA256 80b2ff5af0f7d6b2aa0a65ac092a6ef05ed7b41029f2f9d690f95fd65a7cadf4
MD5 72721ff0eea89728464bacef04fe7a2f
BLAKE2b-256 37a991fe7b892726302f7514ef2b07b704971a0d184beecfab2c5464d7468f58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HALdata-0.1.23-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.23-py3-none-any.whl
Algorithm Hash digest
SHA256 aff3e4c439934fe7fa012604bc33fdadd41ab2b5a30482b4a2d90a6ae4fef3cb
MD5 e7dd92b5bc65f70bef2bb05c80bf4736
BLAKE2b-256 b461795d249a3056dd9fcbf38831961fe3e912e26421afb70055fdea80270d9d

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