Skip to main content

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


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.0.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lush_sqlalchemyx-0.4.0-py3-none-any.whl (42.5 kB view details)

Uploaded Python 3

File details

Details for the file lush_sqlalchemyx-0.4.0.tar.gz.

File metadata

  • Download URL: lush_sqlalchemyx-0.4.0.tar.gz
  • Upload date:
  • Size: 32.1 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

Hashes for lush_sqlalchemyx-0.4.0.tar.gz
Algorithm Hash digest
SHA256 bffce97c2a04b9daa7e6a60efb1fbc0e332b28423570593af03de006a62eee9a
MD5 c85a59c5c177268d09e2176f1360495a
BLAKE2b-256 4f36b1e7f23d1e02781413086f62a7e1a8e466af901eff58cb95b6caac02e4ef

See more details on using hashes here.

File details

Details for the file lush_sqlalchemyx-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: lush_sqlalchemyx-0.4.0-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

Hashes for lush_sqlalchemyx-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 994a1c28a5bcd9e7ce9521b3a194e91a407eae1c5e7ee3862f27086db86dff03
MD5 216a13685106c8bad07e91613afe92e4
BLAKE2b-256 f13fa4759d6ddf49fb0d47e66899f64f00b1f6b5b0be6578887b0618ac3b4ee4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page