pwmd
Master/Slave Support For PeeWee. Now only support mysql.
The source code is locate at github .
Usage
from peewee import Model, CharField, DateField, BooleanField
from pwmd import MultiMySQLDatabase
DATABASE = {'master': 'mysql://root@localhost/test_app',
'slaves': ['mysql://root@localhost/test_app']}
db = MultiMySQLDatabase(DATABASE)
db.connect()
class BaseModel(Model):
class Meta:
database = db
class Person(BaseModel):
name = CharField()
birthday = DateField()
is_relative = BooleanField()
Metadata
Release files for pwmd 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pwmd-0.2.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pwmd-0.2-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 10.1 kB
Release files / pwmd-0.2.tar.gz
| Download URL | pwmd-0.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26a5a88cdcd6d800891b9293115d4165ee8c0d40ff51b68eadce14e395126ae5
|
|
BLAKE2b-256 checksum How to use checksums |
69199019dd94b7dabc7ebcff785efa4dcb741f526bb1060cbf1466eaba935df8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pwmd-0.2-py2.7.egg
| Download URL | pwmd-0.2-py2.7.egg |
|---|---|
| Size | 6.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
86fda4d0c3ced5c4e753606dfdaf8c26d2a3e7357d86d80f35c05ca077b21de3
|
|
BLAKE2b-256 checksum How to use checksums |
2e9bb9893bfcdb0d2ae4a0ab37562c80e9a845a263ca772c1027ce8dde48dc81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pwmd 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.