Skip to main content

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

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.7.1.tar.gz (36.3 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.7.1-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lush_sqlalchemyx-0.7.1.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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.7.1.tar.gz
Algorithm Hash digest
SHA256 ad5b213c273a1d7634807a4eeee2f8da33457c2467a2a7c391ad863c2bec4bd5
MD5 94b7422f476289135d1026d73a3d1730
BLAKE2b-256 7da9e3adc48cecbd244f442803e1a7763d9165ce93ce9cfbeab8aad74629c9b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lush_sqlalchemyx-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 46.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f1420cd8eff4829c30628ddac92a1453193c02b67d5adef6cd0fcf38a4e091d
MD5 55bf85fb9c354f3a08ccdd701a88809c
BLAKE2b-256 c95697f2959fbe042ae379691be506123075a879bf7de38ec92f9afe88c4ea7e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 files

0.7.0

2 files

0.6.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page