No project description provided
Project description
LakeApi 2 SQL
This is a simple library that has currently there methods:
-
insert_http_arrow_stream_to_sql
Make a HTTP Request to an Endpoint from the Lake API and inserts the data via bulk insert into MS SQL Server. In Theory you could also get the data from some other HTTP Endpoint which returns an Arrow Stream and is authenticated using Basic Auth. It does not guarantee atomicity at sql server level, therefore you will usually want to use a global temp table as target.
-
insert_record_batch_to_sql
Same as above, but the input is a generic RecordBatchReader from pyarrow
It's meant to be used from Python, the Logic is written in Rust.
Features
- You can specify
Authentication=ActiveDirectoryMSI|ActiveDirectoryDefault|ActiveDirectoryInteractive
in the connection string similar to .Net/ODBC SQL Driver. This requires theazure-identity
package to be installed
Roadmap
There is still a lot todo:
- Allow passing more flexible HTTP Authentication options
- Add option to read from database and write to a flat file
- Document
- Test
Alternatives
This would not have been possible without the excellent arrow-odbc-py library. Use it whenever SQL Server is not the only possible target, or you need to read from a database or you just need something better ;)
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
Built Distributions
Hashes for lakeapi2sql-0.8.2-cp310-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71086dffb859dc4a578f0b4cf6d6d03ef92d9380719c0360ab1fc8eeb47a710f |
|
MD5 | 2b8e82c19053c0773fd7d5e9036f596a |
|
BLAKE2b-256 | 0a950a74a0f658ce843867d4d0a0b203261d78d30c6bfd88269c502b6b09677f |
Hashes for lakeapi2sql-0.8.2-cp310-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c4be79e87d45c4c6d424851c76dcd951f76df29aa51315a5d76d799f2bd31c |
|
MD5 | 546ca9455c5800ad5a52e9fe8c1f61e1 |
|
BLAKE2b-256 | 163433a433b0715fa47de17070422a192286b685e3c207c1e0d279b4dd6206c8 |
Hashes for lakeapi2sql-0.8.2-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e5ba24d972624fa6eda23b842e68e7497e0eb1a01a89441d0774076b18eef6f |
|
MD5 | 7feeac038cb53a1343843d55e71d3a68 |
|
BLAKE2b-256 | d843e903ed98089c02dd2d5e56ba63bbfd483e1db91cb873c9f924b727376ea4 |
Hashes for lakeapi2sql-0.8.2-cp310-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e02b3af1e5f79d5761e33c3463c4cdce64ec65ef8ad232850ccbcab745f73673 |
|
MD5 | 84f5f2cdbd34702a6133cc4ac98fc153 |
|
BLAKE2b-256 | ab2ad5c782cef8458d4717e03ee4b56a45a2742a0dd6b065f43f72cc56405f5f |
Hashes for lakeapi2sql-0.8.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43239bf3f149f6b76189e7c5a88c8cbf09c640af55a9c753fc4e344e0cda280a |
|
MD5 | ca022ea5ea30e72910b4b6ab8572d1ea |
|
BLAKE2b-256 | 128cab5d50ac1fe792ac2286f411bdbcbfd1d74cdf9d8bd887c98fca8ba2cf54 |
Hashes for lakeapi2sql-0.8.2-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6e1083c4ef46627bc809a2498548fe6dfbb62e4219e11b29a008d2945002255 |
|
MD5 | 471aad1154cb5039f3d2e2f76613efd7 |
|
BLAKE2b-256 | 81f43e7a6e93dd3bd3dfa15669269cebdf9c829aa3d5e8ccb7be65a80bc78108 |