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

Uploaded Python 3

File details

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

File metadata

  • Download URL: HALdata-0.1.25.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.25.tar.gz
Algorithm Hash digest
SHA256 c3ffad977528bc3f45d20b4ba28da1c3193aae30171d7de110210fbf7b5cf69b
MD5 a1b95c618c9e05c5630ea4fc73194f95
BLAKE2b-256 6036f6a3c83a9bfa508cc05edc0dbfea09ec25eea9f8843ec2424bfc71902442

See more details on using hashes here.

File details

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

File metadata

  • Download URL: HALdata-0.1.25-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.25-py3-none-any.whl
Algorithm Hash digest
SHA256 9dc81e6565a5ebaea68b53e6a2355cd616b296656d11e0a467735c39f8252532
MD5 cc947f3dabcd6e0e921c180339efe580
BLAKE2b-256 e6fcd5256c492739547d69dcd826e44a9abdb97c173a4b6a49f1f08936390036

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