Metadata-Version: 2.1
Name: lakeapi2sql
Version: 0.2.0
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# LakeApi 2 SQL

This is a simple library that does 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. 

The main goal is to be very fast in this one task. It does not guarantee atomicity at sql server level, therefore you will usually want to use a global temp table as target.

It's meant to be used from Python, the Logic is written in Rust.

## Roadmap

There is still a lot todo:

- Allow reading from pyarrow instead of HTTP
- Allow passing more flexible HTTP Authentication options
- Integrate Azure Authentication
- 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](https://github.com/pacman82/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 ;)

