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.3.2.tar.gz
(30.4 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.3.2.tar.gz.
File metadata
- Download URL: lush_sqlalchemyx-0.3.2.tar.gz
- Upload date:
- Size: 30.4 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 |
5c86b8ce6864bf948192912d132089773a0c77222ec2b6ae938d8120c300b467
|
|
| MD5 |
c07533b40f07f8e4eb48d31e29ebaca6
|
|
| BLAKE2b-256 |
86467fa3e522f193dc65e0ba9104aa41cd40c25b4759e91daf101c6d10d5e46e
|
File details
Details for the file lush_sqlalchemyx-0.3.2-py3-none-any.whl.
File metadata
- Download URL: lush_sqlalchemyx-0.3.2-py3-none-any.whl
- Upload date:
- Size: 40.9 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 |
ed20cae28a198b38fb0ddc8d5ca3a9fb7bdbd671916bf7c0e9a30adf61daaba8
|
|
| MD5 |
819915cf3fef178c0b7d03703dcae440
|
|
| BLAKE2b-256 |
aa332179462d00d5f84b4c2f3db60d9513d6bbe6b1e459e11c3fe9cdd6a28e0f
|