Skip to main content

pysolmysql

Welcome to pysol

Copyright (C) 2013/2025 Laurent Labatut / Laurent Champagnac

pysolmysql is a set of simple MYSQL client Apis

They are gevent based. They rely on pymysql.

Usage

d_conf = {
    "host": "localhost",
    "port": 3306,
    "database": None,
    "user": "root",
    "password": "root",
    "autocommit": True,
}
        
ar = MysqlApi.exec_n(d_conf, "select user, host from mysql.user;")

for d_record in ar:
    logger.info("user=%s, host=%s", d_record["user"], d_record["host"])

Pool

Now backed by a basic pool implementation, which support underlying backend clusters (mariadb galera for instance)

This basic pool implementation is forked and adapted from :

Pool max size

Pool max size (default 10) can be specified using

d_conf = {
    "pool_max_size": 10,
    ...
}

Possible backward compatibility issue:

  • If the pool is maxed, an exception will be raised

Multiple hosts

Multiple hosts can be addressed in an active/active manner.

Several hosts can be specified using :

  • "hosts" list (preferred)
d_conf = {
    "hosts": ["localhost", "127.0.0.1"],
    ...
}
  • "host" comma separated list
d_conf = {
    "host": "localhost,127.0.0.1",
    ...
}
  • "host" single entry (backward compatible mode)
d_conf = {
    "host": "localhost",
    ...
}

Metadata

Release files for pysolmysql 3.13.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysolmysql 3.13.5
File Size Uploaded
pysolmysql-3.13.5.tar.gz 20.7 kB Details

Release files / pysolmysql-3.13.5.tar.gz

Download URL pysolmysql-3.13.5.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9fa0f880a5e339290f4994c83a0b279e40e59f0c597e93010db4c227bd4dc1d7
BLAKE2b-256 checksum
How to use checksums
c26144ac0b32c2abe336d5208cd634337864ac7ec305e3c51fc0a9dc397ed796
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

3.13.5 This release

1 release file

3.13.4

1 release file

3.13.3

1 release file

3.13.2

1 release file

3.13.0

1 release file

3.11.0

1 release file

3.0.2

1 release file

3.0.1

1 release file

3.0.0

1 release file

1.1.7

1 release file

1.1.6

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page