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 statements in .sql files and load them into a python object as methods to call.

This project supports sync and asyncio based drivers for SQLite (sqlite3, aiosqlite) and PostgreSQL (psycopg2, asyncpg) out of the box, and can be extended to support other database drivers by you! The asyncio support restricts this package to python versions >3.6. If you are using older versions of python please see the related anosql package which this project is based on.

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-2.0.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiosql-2.0.1-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file aiosql-2.0.1.tar.gz.

File metadata

  • Download URL: aiosql-2.0.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.9 CPython/3.7.1 Darwin/18.2.0

File hashes

Hashes for aiosql-2.0.1.tar.gz
Algorithm Hash digest
SHA256 62bcf91a80983b95b99483d5da42711acb74ce65289088a7030a080b0597eed0
MD5 8b4a34e7600d21ead0f87f87eab3c4b3
BLAKE2b-256 598baf8d5737b6817b710dbf87a8ef755c129af008d20bf083dcaa75b007d7b8

See more details on using hashes here.

File details

Details for the file aiosql-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: aiosql-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.9 CPython/3.7.1 Darwin/18.2.0

File hashes

Hashes for aiosql-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c134ab9afe4f8b96fb21b5ab10912a5892e4a75a714799fdc50a3f1682f0dc2
MD5 0894e3e8c91e86d57f584b83388127fb
BLAKE2b-256 32fea80e428db5ffa7e690769274461db2634582a53fe2dfa35aea592037829f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page