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.0a13.tar.gz (10.9 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.0a13-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: neobot_storage-1.0.0a13.tar.gz
  • Upload date:
  • Size: 10.9 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.0a13.tar.gz
Algorithm Hash digest
SHA256 623df96e28f57e68246b2edc7956c4c74479479e742d85c56d98675dda273339
MD5 313025aeeff8a6b7445bc00f8cdf1f7b
BLAKE2b-256 52f11d89e6522acbe1bff48faf829f7a50f13d7d1ad91e255ec143211b79c292

See more details on using hashes here.

File details

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

File metadata

  • Download URL: neobot_storage-1.0.0a13-py3-none-any.whl
  • Upload date:
  • Size: 19.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.0a13-py3-none-any.whl
Algorithm Hash digest
SHA256 5a63c62c71d11694a300a851f6e95bf750aeeedd4c088316e0a7ddca1eeed9ed
MD5 7eb97b2aa23c3337aaa814207eb5a14e
BLAKE2b-256 b2cc6f0668e8a3f560a0149ef868ca4bf3eeb63d8811bc2b7491e50f76b3a9f2

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