SQLAlchemy helpers (DAL) and async MySQL managers, with some web frameworks integrations
Project description
lush-sqlalchemyx
SQLAlchemy(偏 asyncio) 的一组工具和封装. 这里的东西偏“工程向”: 解决常见的 session 管理、只读会话、以及一些重复写到吐的样板代码.
例子
一个最小的异步 MySQL 管理器:
import asyncio
from lush_sqlalchemyx.mgrs.mysql.manager import AsyncMySQLManager
async def main() -> None:
mgr = AsyncMySQLManager("mysql+aiomysql://<user>:<password>@127.0.0.1:3306/<dbname>")
ok = await mgr.health_check()
print(ok)
await mgr.close()
asyncio.run(main())
开发
uv sync -p 3.10 --frozen
uv run -p 3.10 pytest
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
lush_sqlalchemyx-0.4.1.tar.gz
(32.0 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
File details
Details for the file lush_sqlalchemyx-0.4.1.tar.gz.
File metadata
- Download URL: lush_sqlalchemyx-0.4.1.tar.gz
- Upload date:
- Size: 32.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73556d22cefc2480af86036099e9c0a0e80dedf10de2825aba80326697686ece
|
|
| MD5 |
ea279f45eb44e182bd06b9d963bca0c3
|
|
| BLAKE2b-256 |
a2cfd658f787c5ebfacfddb67c5a15cde3bf43fdb922ff1fb3cbb8aa2223d2ad
|
File details
Details for the file lush_sqlalchemyx-0.4.1-py3-none-any.whl.
File metadata
- Download URL: lush_sqlalchemyx-0.4.1-py3-none-any.whl
- Upload date:
- Size: 42.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a29e8408b5421f6837a7e3aeb7d0a513fcc393a1142e87b5dd5c2a4a0a2b5c6e
|
|
| MD5 |
e16ab573c00e93ad0d84dfed6826be2b
|
|
| BLAKE2b-256 |
8a30ddbce02155f116e3a2d8c1912efee06e4d74b518763f98d6270e2866128b
|