Asynchronous Python interface to MySQL
Project description
WSQL
WSQL is an asynchronous python connector to the popular MySQL database server based on WebScaleSQL.
- The design goals are:
Compatibility with Python3 asyncio package
Compliance with Python database API version 2.0 [PEP-0249]
Thread-safety
Thread-friendliness (threads will not block each other)
Support mysql-clusters like: Percona-XtraDB-Cluster, GaleraCluster
import wsql.cluster.connect
# master:master(active:active)
connection = wsql.cluster.connect("master=localhost:3305#2,localhost:3306#2", database="test")
# master:slave(active:passive)
connection = wsql.cluster.connect("master=localhost;slave=localhost:3307#4", database="test")
# read-only
connection = wsql.cluster.connect("slave=localhost:3307#4;database=test;")
MySQL-5.5 and newer and Python-3.4 and newer are currently supported.
Setup dependencies
cmake version 2.8.11 or higher
openssl-devel version 1.0 or higher
python3-devel
zlib-devel
gcc
WSQL is Free Software.
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
wsql-1.2.8.tar.gz
(3.9 MB
view details)
File details
Details for the file wsql-1.2.8.tar.gz
.
File metadata
- Download URL: wsql-1.2.8.tar.gz
- Upload date:
- Size: 3.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 940f8f19249d6b3926979011ea5699d2906fab26429f0afe4e34d640699f1439 |
|
MD5 | 3b82a76f9f510e554bbb376893020ae5 |
|
BLAKE2b-256 | 9316bcd845d3837f6c77db357c6596d74323c61a8378a19c336cae2d265eb0a5 |