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

Uploaded Python 3

File details

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

File metadata

  • Download URL: neobot_storage-1.0.0a8.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.0a8.tar.gz
Algorithm Hash digest
SHA256 56e4bb670f6f0ef8ac385f4931ca0061041d7f9dce25eede34d2f8d6e8a44a40
MD5 41b060beb947651d09d4ebe719df5153
BLAKE2b-256 6ff2d8f0c047e7f7216e1a0f042537288eae117c0b276c19bbeb9431d1617e42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neobot_storage-1.0.0a8-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.0a8-py3-none-any.whl
Algorithm Hash digest
SHA256 656ecb6e9e5118378749087c273ae6ed55b3a48483bc328c83d9ac0ce59a2890
MD5 b60d185ad2959241f52eb59cd22bd553
BLAKE2b-256 632fa7f80db312f1bf946c62bf15a088e3ccd7542f81fcbfc05c155d298d9243

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