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.0a12.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.0a12-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neobot_storage-1.0.0a12.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.0a12.tar.gz
Algorithm Hash digest
SHA256 ced4fdceee1cc2073229f3af1603aca595eaa3bace8f48a0e6215e44cc493c5a
MD5 5a7c2c9350c2c1c046719b157ead4ec2
BLAKE2b-256 fbcd5d69b8f2bad5a2579e2ab04a24229443730f174760714785ce361e10f4f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neobot_storage-1.0.0a12-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.0a12-py3-none-any.whl
Algorithm Hash digest
SHA256 37f4c43d26091d0428b3dd8815bcfbb8ad032d7332bb63b204f81bbf541ca4a1
MD5 8738ff2cd4b1e2c0b0b33df7ca235e7e
BLAKE2b-256 068ce5a114c22aa1b5ca24c7a613afb728eacaa6d60488d0f2891b049ecc2cb4

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