Skip to main content

Simple SQL in Python.

Project description

aiosql

Simple SQL in Python.

SQL is code, you should be able to write it, version control it, comment on it, and use it in database tools like psql as you would any other SQL. But, you also want to be able to use it from your python applications, and that's where aiosql can help. With aiosql you can organize your SQL in .sql files and load them into a python object with methods to call.

The project is based on (and closely related to) the python package anosql, which is based on the clojure library Yesql. It supports sync and asyncio drivers for SQLite and PostgreSQL out of the box, and can be extended by you to support other database drivers!

Install

pip install aiosql

Or if you you use poetry:

poetry add aiosql

Documentation

Project and API docs https://nackjicholson.github.io/aiosql

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

aiosql-1.0.0.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

aiosql-1.0.0-py3-none-any.whl (26.3 kB view hashes)

Uploaded Python 3

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