Skip to main content

Asynchronous Python interface to MySQL

Project description

https://travis-ci.org/WebSQL/wsql.svg?branch=master https://coveralls.io/repos/WebSQL/wsql/badge.png?branch=master

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.

WSQL is Free Software.

Documentation.

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

wsql-1.2.3.tar.gz (3.9 MB view details)

Uploaded Source

File details

Details for the file wsql-1.2.3.tar.gz.

File metadata

  • Download URL: wsql-1.2.3.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wsql-1.2.3.tar.gz
Algorithm Hash digest
SHA256 afdffc08bfa8de4057bcdf6105014f9063435322f20513265e7c78784861657c
MD5 439d1425c1600778d90960b7ffd90c7c
BLAKE2b-256 ddfc0fbd14d8d6fd3fe251f7f513418d7eda68e488db13033c18447f6acfd198

See more details on using hashes here.

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