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.7.3-cp310-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecb17868f8661d59e9bd4f495e8320177d87974373dec8792f52f00150132854 |
|
MD5 | ad0da7ad820c61aa30f9f7ed89494f8c |
|
BLAKE2b-256 | 01236c696eaf889bb8e12d170347668deddb882f38c89a2d00ebefd337f0332f |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e60466eaf61ce9607c52b4111c25a370e3608f80eccf4454915966d1449644fb |
|
MD5 | addce0857f03200b963951f8e984ea16 |
|
BLAKE2b-256 | 967440d089a41defc75a096b0262e9d130033d5e28ba1ead07743f72d39d0d7d |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b3195a67d62f3d315c460ba025f8fe9027c8b25b264da5919f67fe457910f84 |
|
MD5 | 6b66dcd2b8f04c1ecd5a7f284fa3c737 |
|
BLAKE2b-256 | effeae9df7bb2c88a5f999ce9ae1b380b2aa4450cf1c72e1d3cac194f8e48218 |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1dad0380c0ee37a173e3aa537fc9b2f7faf9253abe8f72a26d3b034abe1e8a9 |
|
MD5 | d362a2d3c9a8061ca6d2db534be27f43 |
|
BLAKE2b-256 | 15a9c8d96121b5733755c69ab104e739a1219519e9530603c1ca373d6278e636 |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 284df243ce0cf59165b5b32539d2bf9242d120c6a4835b49da21bfdffb009dfb |
|
MD5 | 84fa9d8e4166c5200162f23c173c091d |
|
BLAKE2b-256 | ddf310f1bb9eaf6e0b55f49af8dedb82f30bdfc40f8a80cf841aca5918d9ffef |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8ed2bbb55f75f9b687c247723e1419530a9367b0ebf2fc191935f36d1a28075 |
|
MD5 | 9a46ec317ad3d286b0e1ea31c7802405 |
|
BLAKE2b-256 | eae454374b6c9111b35a9dddd483149839b0a2a2fa063c4bc10a850b74fd7eda |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bd2bbfb2fb5f8319765c866d4c3953b995d258693b28aa3c55471fd95262a9e |
|
MD5 | 774e2e8304f7e686fdf2dfb1c9c4a297 |
|
BLAKE2b-256 | 159b7a5ddba09f9fc1aadf4ffed14646831ab758d92c235a9c05a1cabdc53cd8 |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d73ba6410f8bf6650929ed3d0dbbe58fc8fb9851b3d2e53d9da8b3ab5676af5f |
|
MD5 | 56bf899acb51087c429c7ca56846ee8e |
|
BLAKE2b-256 | 46e42d69d7a1d7c92dfefb206ea56fb45b5bce812ca5a9d244e04aa449f12841 |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c9fa4cbf8f4e175356ba2e4bd8d4e6736d485739290408662f834929a3ae73 |
|
MD5 | 9501b842edd4c45166bdd317952fa18f |
|
BLAKE2b-256 | 06b8fdd103dbc793e3b9b9efab3e8180bbc7f501be943d8eab267fd16cb3b710 |
Hashes for lakeapi2sql-0.7.3-cp310-abi3-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80d63a9335cfd99ca10a883940cb4ca934e4913cfd84262283666cd5605e7654 |
|
MD5 | da4480988739476e601aa931888e3423 |
|
BLAKE2b-256 | 872883161dbb13a05badbe0febb08a7cdad39226a6911a214ec355692f344d95 |