Mysql toolkit
Project description
commondao
How to install commondao?
pip install commondao
How to use commondao?
import toml
import commondao
config = {
'host': '****',
'port': 3306,
'user': '****',
'password': '****',
'db': '****',
'autocommit': True,
}
async with commondao.connect(**config) as db:
await db.save('tbl_user', {'id': 1, 'name': 'John Doe'})
user = await db.get_by_key_or_fail('tbl_user', key={'id': 1})
print(user['name']) # Output: John Doe
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
commondao-1.0.0.tar.gz
(17.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
commondao-1.0.0-py3-none-any.whl
(13.9 kB
view details)
File details
Details for the file commondao-1.0.0.tar.gz.
File metadata
- Download URL: commondao-1.0.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96a1ef5ad8f082bbe5af544e79da7b3e718c066c990d4ea3c5634ba5f18bdc8b
|
|
| MD5 |
401d4ec6a78fca4a255dd87d6d0cbf27
|
|
| BLAKE2b-256 |
2945692e7194c20cb5026dbaf1055d5d5a561fbfc1762d04c864e1612d1f3787
|
File details
Details for the file commondao-1.0.0-py3-none-any.whl.
File metadata
- Download URL: commondao-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d64386e51fd87c733c4faa30cc145833bf7fb6c0c9eeb19d2685513cb451a69
|
|
| MD5 |
b04842c4bfea951d7278c8ea4c543389
|
|
| BLAKE2b-256 |
3b175eefdb27ec73deeb3d07b0a597658fae4424b66e4274fb8f98863980a367
|