nl2sql-adapter-sdk
The contracts a database adapter for the nl2sql engine implements. It depends on pydantic and the standard library only, so an adapter built against it inherits nothing else.
DatasourceAdapterProtocol:capabilities(),connect(),fetch_schema_snapshot(),execute(request)andget_dialect(), which returns a sqlglot dialect name such aspostgresortsql.AdapterRequest,ResultFrameandResultError: what the engine sends an adapter and what it gets back.SchemaSnapshotand the table, column and foreign-key contracts an adapter describes its schema with.
An adapter is published as an nl2sql.adapters entry point, and the engine
finds it there; it never imports an adapter by name.
pip install nl2sql-adapter-sdk
Writing an adapter: Adapter development. Try the engine without installing anything: https://nl2sql.codewithnk.com.
Metadata
Release files for nl2sql-adapter-sdk 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nl2sql_adapter_sdk-0.2.2.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nl2sql_adapter_sdk-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / nl2sql_adapter_sdk-0.2.2.tar.gz
| Download URL | nl2sql_adapter_sdk-0.2.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ed779ee10efd313481eb78f39d53758081f6394b512ab979e7f8938a401f6161
|
|
BLAKE2b-256 checksum How to use checksums |
afab5f29a53ec8b90d2be9e5cca12c6fa7d7b8b533a7ece22d01f63dd35cb71f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / nl2sql_adapter_sdk-0.2.2-py3-none-any.whl
| Download URL | nl2sql_adapter_sdk-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9479ca086a3013d903153e0ca09c85351731cf6b31b8be0561771153b858a3d0
|
|
BLAKE2b-256 checksum How to use checksums |
dbc4b5404083fb74adc8cfa6b04db89cdd44ba0f1684c90c2d5e9f554915ec0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|