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://nadeem4nk-nl2sql-demo.hf.space.
Metadata
Release files for nl2sql-adapter-sdk 0.2.1
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.1.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nl2sql_adapter_sdk-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / nl2sql_adapter_sdk-0.2.1.tar.gz
| Download URL | nl2sql_adapter_sdk-0.2.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91bebc2a020dcfe7018f4a9d2360d2302815b324f76da853564b3184c09e64db
|
|
BLAKE2b-256 checksum How to use checksums |
4ddc12c7a585c902f52fcd837526f356183c9ec5454c92f4ef8bfd1c91560f57
|
| 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.1-py3-none-any.whl
| Download URL | nl2sql_adapter_sdk-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7eb1454b2cd3b3fc585da6139d50b45dae2c59f53847e711971e29e9f85373ca
|
|
BLAKE2b-256 checksum How to use checksums |
954fb7589f84406d059a6eacc44f4d4a7c53072700948fc5f78b54023b00f9d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|