REFRACT-IO: To read and write dataframe from different connectors.
Project description
Installation:
without any dependencies:
pip install refractio
With all dependencies:
pip install refractio[all]
With snowflake:
pip install refractio[snowflake]
With s3:
pip install refractio[s3]
With azureblob:
pip install refractio[azureblob]
With local:
pip install refractio[local]
With sftp:
pip install refractio[sftp]
With mysql:
pip install refractio[mysql]
With hive:
pip install refractio[hive]
Source code is available at: https://git.lti-aiq.in/refract-sdk/refract-sdk.git
Usage:
To read dataframe with dataset name only -
from refractio import get_dataframe
get_dataframe("dataset_name")
To read dataframe with filename from local storage -
from refracio import get_local_dataframe
get_local_dataframe("local_file_name_with_absolute_path")
To use snowflake related operations -
from refractio import snowflake
# To read a specific dataset published from snowflake connection
snowflake.get_dataframe("dataset_name", row_count=3)
# To get snowflake connection object with a specific connection name
snowflake.get_connection(connection_name="snowflake_con_name")
# To get snowflake connection object with default snowflake connection created by the user
snowflake.get_connection()
# To execute a user specific query in snowflake
snowflake.execute_query(query="user_query", database="db_name", schema="schema", connection_name="connection_name")
Note: Usage documentation will be updated in upcoming releases.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
refractio-2.0.0.tar.gz
(8.4 kB
view details)
Built Distribution
refractio-2.0.0-py3-none-any.whl
(11.9 kB
view details)
File details
Details for the file refractio-2.0.0.tar.gz
.
File metadata
- Download URL: refractio-2.0.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e4f8be34f8a0e99ec45ce820d15ca443d06e2a4b1b639928e4f9638ee744311 |
|
MD5 | 82cbfb0b328535399499c1545317fdc7 |
|
BLAKE2b-256 | 1a965235e39863c563d002409920622af530592368ec8524ae142e6831425f47 |
Provenance
File details
Details for the file refractio-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: refractio-2.0.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f787daa94e135be92bfe6e6b86a20969297b195b445b0ca89ccbcd429070df5e |
|
MD5 | 45b2b197dd87e9911fe997e5c9e25543 |
|
BLAKE2b-256 | bdbd11b1c49273b00e866431b6cdab5d69f1b6a9e7540faa3002a2f2d45ebc64 |