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.3.1.tar.gz (33.6 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.3.1-py3-none-any.whl (45.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lush_sqlalchemyx-0.3.1.tar.gz
  • Upload date:
  • Size: 33.6 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.3.1.tar.gz
Algorithm Hash digest
SHA256 1a84afb6f872445a5179298797d9698a309be036ce5ce379a5b6581b3a6d0761
MD5 9c07e8ae936f66a2de1a10bb7c7208a9
BLAKE2b-256 4b945c703bb8d4dc08cd6d2ad3e49aea3f48e561fd155092f293311ebff01fae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lush_sqlalchemyx-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 45.6 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 03f843aae21508ce53351fcf75f792b0b5d7fea84e38e641c0e688bcc99ec7d4
MD5 916120683f64e6428a810f22b185f9b3
BLAKE2b-256 10df0a7f15dd24b900d09bcf7850edecdaa082c1609c687b4cc00028f1189139

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