Skip to main content

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 the azure-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lakeapi2sql-0.9.1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

lakeapi2sql-0.9.1-cp310-abi3-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.10+ Windows x86-64

lakeapi2sql-0.9.1-cp310-abi3-win32.whl (2.2 MB view details)

Uploaded CPython 3.10+ Windows x86

lakeapi2sql-0.9.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB view details)

Uploaded CPython 3.10+ manylinux: glibc 2.17+ x86-64

lakeapi2sql-0.9.1-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (4.9 MB view details)

Uploaded CPython 3.10+ manylinux: glibc 2.17+ i686

lakeapi2sql-0.9.1-cp310-abi3-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.10+ macOS 11.0+ ARM64

lakeapi2sql-0.9.1-cp310-abi3-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.10+ macOS 10.12+ x86-64

File details

Details for the file lakeapi2sql-0.9.1.tar.gz.

File metadata

  • Download URL: lakeapi2sql-0.9.1.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.5.1

File hashes

Hashes for lakeapi2sql-0.9.1.tar.gz
Algorithm Hash digest
SHA256 fbd41265fcfa604bac6bdff346174a0fba01b4eb93fb23434cc8aed353f95d87
MD5 c0355e60acd16aa62d9d1734f57872f1
BLAKE2b-256 5032f63110aa9f34abb33af4342c60cdcf6636f6a6c38cea10db5f21e417d96b

See more details on using hashes here.

File details

Details for the file lakeapi2sql-0.9.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for lakeapi2sql-0.9.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3339f274724f65744f48ef3b9ac5a44a167b72c91081b486fe64e2355efe4743
MD5 3656e78fa0ffe83fd82cf4e88c3732e7
BLAKE2b-256 447791a5b6f6e2eaf1f87541529447c0efd765f7f11af2e3fa9976c282b1dc76

See more details on using hashes here.

File details

Details for the file lakeapi2sql-0.9.1-cp310-abi3-win32.whl.

File metadata

File hashes

Hashes for lakeapi2sql-0.9.1-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 7fecb632f58070dc65bebbeec57026e7294aab6f0ca05556652291f006dd47a5
MD5 793ad684a9ac36f96723e6d0360e4af4
BLAKE2b-256 23326f73ea814d4e8eca4b558dc96073cf4b90b72fc082abdafa01d5b0e854ac

See more details on using hashes here.

File details

Details for the file lakeapi2sql-0.9.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lakeapi2sql-0.9.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 33f7d30a36121f9a45e43b663fbae182a50420bbb7645fe13698bbca42bd302f
MD5 fa2ac56d6386c6453e025eda22aaf00b
BLAKE2b-256 1ba9c57cd9f2acd581bc38b83cd94dc47d6ba2ee99ad7e37dfefb0f4d90213a9

See more details on using hashes here.

File details

Details for the file lakeapi2sql-0.9.1-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for lakeapi2sql-0.9.1-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3611767dc21ec0c32611b5cc0d51e01e712c103a79372037fb9330792c6f3301
MD5 5181ddf92473e5ff9b80a578f9a3d884
BLAKE2b-256 0780da6918914cad949f4141821d1f4dceda017b179f92aa2cedef1affeb0f72

See more details on using hashes here.

File details

Details for the file lakeapi2sql-0.9.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakeapi2sql-0.9.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41ba4f1486e3bfe8fa566ff1f11d3bf950dd86f63ac2d7ac220855c99bb69228
MD5 7331223e88c62347186bc4326cd8fd9d
BLAKE2b-256 051ac22e1724a3444c805cca235ed4a29f391d7cb36b12d1eab7184deb3a7016

See more details on using hashes here.

File details

Details for the file lakeapi2sql-0.9.1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lakeapi2sql-0.9.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bf6aef6346ab4190d71d737f892e92396d4229bb4059a2b9c61bf8bf48a1b655
MD5 c7960c1cc320fb7cdd7c6658828a8b10
BLAKE2b-256 536e90095e62c08b187f09cd33dad20068c946495c24fea0657fd9ffdf7651e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page