Outils personnels
Vous êtes ici : Accueil Logiciels Open-Source pymysql_sa

pymysql_sa

Un dialecte PyMySQL pour SQLAlchemy.

Ce paquet fournit un dialecte PyMySQL pour SQLAlchemy.

 

Téléchargement et installation

Le paquet est disponible dans le répertoire de paquets Python et s'installe de manière traditionnelle:
easy_install pymysql_sa

 Le code est accessible sur bitbucket.

 

Usage

PyMySQL est un client MySQL pur Python implémentant DB-API en parlant directement le protocole client/serveur de MySQL.

 

Vous pouvez utiliser PyMySQL avec vos projets SQLAlchemy en changeant la partie 'mysql' des URLs de vos engines en 'pymysql'.

 

Vous pouvez aussi faire de PyMySQL votre dialecte MySQL par défaut dans SA comme suit:

import pymysql_sa
pymysql_sa.make_default_mysql_dialect()

Dans ce cas vous n'avez pas à changer les URLs.

 

Etant pur Python, PyMySQL se prête facilement au monkey patching de projets comme gevent visant à le rendre coopératif.

 

Futur

 

Un patch

est en cours de traitement pour ajouter le support du dialecte PyMySQL directement dans SQLAlchemy.

Nous maintenons un fork de PyMySQL pour les moments où la branche principale ne passe pas les tests SQLAlchemy.

 

 

Licence

pymysql_sa est proposé sous licence MIT:

Copyright (c) 2010 Evax S.A.R.L.

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or
substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

 

Actions sur le document
Cart Votre Panier

Votre panier est vide.