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

Uploaded Python 3

File details

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

File metadata

  • Download URL: HALdata-0.1.24.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.24.tar.gz
Algorithm Hash digest
SHA256 349000d5a71460bb50f2eadc099f093edcf72764a41a4b52025f8f90ca7db7c4
MD5 08b2985efde94985951847984225df1a
BLAKE2b-256 474f45ac6ebf2ebd036484636471930d9dca39db7bbcf803c177ceeaa0483597

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HALdata-0.1.24-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.24-py3-none-any.whl
Algorithm Hash digest
SHA256 aeb0e56b6b908735f6b587a39a1c0a7f6e17b95383af11cd9816d8c2b6a325c6
MD5 032c7089cca72f5ef5cce243b4f2ac81
BLAKE2b-256 45e679c2e301eefde8d2fd0c5795d642510170c544b131de29d395aec04e9a8d

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