Skip to main content

Python Async SQL Engines

Project description

PySQLXEngine

PySQLXEngine Logo

PySQLXEngine, a minimalist asynchronous SQL engine

Test Coverage Package version Supported Python versions


Documentation: https://carlos-rian.github.io/pysqlx-engine/

Source Code: https://github.com/carlos-rian/pysqlx-engine


PySQLXEngine supports the option of sending raw sql to your database.

The PySQLXEngine is a minimalist Async SQL engine. Currently this lib only supports asynchronous programming, you need to code your code using await in all methods.

Database Support:

  • SQLite
  • PostgreSQL
  • MySQL
  • Microsoft SQL Server

OS Support:

  • Linux
  • Windows Experimental! Unit tests were not run on Windows.

Installation

PIP

$ pip install pysqlx-engine

Poetry

$ poetry add pysqlx-engine

Example

  • Create main.py file.
import asyncio

from sqlx_engine import SQLXEngine

uri = "file:./db.db"
db = SQLXEngine(provider="sqlite", uri=uri)

async def main():
    await db.connect()
    rows = await db.query(query="select 1 as number")
    print(rows)

asyncio.run(main())
  • Run it
$ python3 main.py

[BaseRow(number=1)]

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysqlx-engine-0.1.7.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

pysqlx_engine-0.1.7-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file pysqlx-engine-0.1.7.tar.gz.

File metadata

  • Download URL: pysqlx-engine-0.1.7.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.2 Linux/5.13.0-1031-azure

File hashes

Hashes for pysqlx-engine-0.1.7.tar.gz
Algorithm Hash digest
SHA256 cc41597429bf7dc19717e00351ce375f7efdb9a0f4ead852217000bc98b20eac
MD5 7c423d5edc07df23d4be769aaf444d35
BLAKE2b-256 a15fb535daa16d8683ce6d32acfef763bcc6690aa40a04fd4477e790d02d51e1

See more details on using hashes here.

File details

Details for the file pysqlx_engine-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pysqlx_engine-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.2 Linux/5.13.0-1031-azure

File hashes

Hashes for pysqlx_engine-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bf1c8c9a8d44f75afc4847c729974b8be7b904b014c72fe89882460be41d3b7b
MD5 de5202773a2df138f4377f69c8ca9373
BLAKE2b-256 72d66e6dc81bb81bbd4e92aa7f22f983c33a73fecd03330b754564b3bad6adee

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