Skip to main content

Storage layer for NeoBot — SQLAlchemy + Alembic

Project description

neobot-storage

SQLAlchemy 2.0 async storage layer for NeoBot. Implements the repository and unit-of-work ports defined in neobot-contracts.

Usage

from neobot_storage import create_engine, make_uow_factory

engine = create_engine("sqlite+aiosqlite:///neobot.db")
uow_factory = make_uow_factory(engine)

async with uow_factory() as uow:
    await uow.messages.save_message(msg)
    await uow.commit()

Migrations

cd packages/storage
alembic upgrade head

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

neobot_storage-1.0.0a10.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

neobot_storage-1.0.0a10-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file neobot_storage-1.0.0a10.tar.gz.

File metadata

  • Download URL: neobot_storage-1.0.0a10.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for neobot_storage-1.0.0a10.tar.gz
Algorithm Hash digest
SHA256 bc57f8c9f86783ccf704363d71b8d0df6fe60f622a4661bc6e8ea03565c81b06
MD5 a7ade1c44d89bdb3e1045406abc5de7b
BLAKE2b-256 0ee750e95001e31f65c8e29d47d08dc09a338421b0cba34c99716ec07a6d91ba

See more details on using hashes here.

File details

Details for the file neobot_storage-1.0.0a10-py3-none-any.whl.

File metadata

  • Download URL: neobot_storage-1.0.0a10-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for neobot_storage-1.0.0a10-py3-none-any.whl
Algorithm Hash digest
SHA256 1c33fcfe4b72b2beb826bdb421600f4f9093b1d129b440aa887d7808e9cfd651
MD5 88f62dd8ac1330c7519a919ed605202e
BLAKE2b-256 24d7b938534226af89d80235a0e7bad469e4841de5f3a56f483957158053c2dd

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