This release is a pre-release and may not be stable for production use.
This script requires some initial setup to be completed before using it:
- Export your Platform API credentials to your localhost's environment variables as SCH_CRED_ID (credential id) and SCH_AUTH_TOKEN (authentication token).
- Export your Snowflake Password (the password used to log into your Snowflake organization) to your localhost's environment variables as SF_P. You will supply the username as an argument to the snowflake_conn method.
- Export your MySQL password (the password used to authenticate with your MySQL instance) to your localhost's environment variables as MYSQL_P. You will supply the username as an argument to the mysql_conn method.
- Spin up a Transformer deployment with a 'docker' install type, and run the resulting install/startup command
on the same host where the script is being run. Note: you may need to add
-p 19630:19630to expose the Transformer instance inside the docker container on your localhost's 19630 port. - Use
docker cpto copy your target CSV file into your Transformer docker container, and use the path of the copied file in thefrom_csvmethod.
The current script usage is as follows:
import essx
sx = essx.Sx()
mysql_conn = sx.mysql_conn(host='url.of.mysql:port', username='username')
snowflake_conn = sx.snowflake_conn(account='snowflake-account', role='SNOWFLAKE_ROLE',
warehouse='SNOWFLAKE_WAREHOUSE', database='DATABASE', schema='SCHEMA',
username='USERNAME')
pt1_df = sx.from_mysql(connection=mysql_conn, schema='SCHEMA', tables=['TABLE_NAME'])
pt2_df = sx.from_csv('/path/to/file.csv')
final_df = sx.merge(pt1_df, pt2_df, how='JOIN_TYPE', on='COLUMN_NAME')
final_df = sx.drop(columns=['COLUMN_ONE', 'COLUMN_TWO', 'COLUMN_THREE', 'COLUMN_FOUR'])
Metadata
Release files for essx 0.0.0a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| essx-0.0.0a0.tar.gz | 6.8 kB | Without provenance | Details for essx-0.0.0a0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| essx-0.0.0a0-py3-none-any.whl | Python 3 | none | any | Details for essx-0.0.0a0-py3-none-any.whl |
Total release size: 15.0 kB
Release files / essx-0.0.0a0.tar.gz
| Download URL | essx-0.0.0a0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62e179e627ba2f7258c428bd245be78c983a8eabeb8a4dd780863145a9c886b7
|
|
BLAKE2b-256 checksum How to use checksums |
dbd0802b980542bc6ed822ff16db78b25a072b6961dbb8e4cf551c05b65b10d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / essx-0.0.0a0-py3-none-any.whl
| Download URL | essx-0.0.0a0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aefd0639e6ff22a80cda203beb42aa4876584f34f042bff3141755af7d58f915
|
|
BLAKE2b-256 checksum How to use checksums |
05518b27be6c602be332fea4dad3b4aa5c47fe2a3c868e2025a93b1f4ca44607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for essx 0.0.0a0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.