Skip to main content

see README.md

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.1.1.tar.gz (25.5 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.1.1-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lush_sqlalchemyx-0.1.1.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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.1.1.tar.gz
Algorithm Hash digest
SHA256 b8a3d1917336b9d2d3f4bc7e2ecbef9e00b8cd614302a87a38c6280e01ed325b
MD5 02f9eb09ce217dc5af8c1aad28b9ed87
BLAKE2b-256 70a222b6efa975fcdc4c9a55b4b57907597e07c3bf9f2ee409c1008dde27d6b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lush_sqlalchemyx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6d91a2ba175c0f9be26a04c9f5938c2fc85ba68bf7bff157605bab64b015b266
MD5 89ff2bf3cf9d9b2e80a00168e369585c
BLAKE2b-256 917e5b52ee85c2d67fcd8da47bc532dee4102a50d631cc2e30b5b0be09283d85

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