SqlPyGen: Generate Type Annotated Python from Annotated SQL
sqlpygen is a utility to generate type annotated Python code from annotated SQL.
The current version of the tool only supports generating code for SQLite3.
Installation
You can install SqlPyGen using pip.
$ pip install sqlpygen
Example Usage
When using sqlpygen to generate Python code from SQL, one creates a sqlpygen file. See examples directory for syntax of sqlpygen files.
Next use the following command to generate the python code.
$ cd examples
$ sqlpygen compile example1.sqlpygen
Executed schema table_stocks successfully
Executed query insert_into_stocks successfully
Executed query select_from_stocks successfully
Executed query count_stocks successfully
Writing output to: example1.py
Module example1 generated successfully.
Metadata
Release files for sqlpygen 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sqlpygen-3.0.0.tar.gz | 33.0 kB | Without provenance | Details for sqlpygen-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sqlpygen-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for sqlpygen-3.0.0-py3-none-any.whl |
Total release size: 51.1 kB
Release files / sqlpygen-3.0.0.tar.gz
| Download URL | sqlpygen-3.0.0.tar.gz |
|---|---|
| Size | 33.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
268481375d24bc6a1902175b4082e3c2ece4405729c10c8dbdc95ff29338c386
|
|
BLAKE2b-256 checksum How to use checksums |
78514da8e4b8b6889abd87cb42508f2f3aa34f4a83dbda0cdda251802d5334a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / sqlpygen-3.0.0-py3-none-any.whl
| Download URL | sqlpygen-3.0.0-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
323245d452918c6d176b1aad9cd2b60ae69124804dd5e26f5455f250f27f953d
|
|
BLAKE2b-256 checksum How to use checksums |
555b898fe82a6765726e023a6a146b8fadb6f06a279b6468313ac86904f5428c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for sqlpygen 3.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.