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
Release history Release notifications | RSS feed
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.0a9.tar.gz
(10.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neobot_storage-1.0.0a9.tar.gz.
File metadata
- Download URL: neobot_storage-1.0.0a9.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a0e65ba3d54b5ef52a75f2ccb8b12e1be8a434b7ec149c42494e4445f668903
|
|
| MD5 |
0635d5527a2eda971a8d88909c89b62f
|
|
| BLAKE2b-256 |
ed64562bac9e33ec97a7e7f0942ac2d7609b6e557713176e4a5ed0daf045b096
|
File details
Details for the file neobot_storage-1.0.0a9-py3-none-any.whl.
File metadata
- Download URL: neobot_storage-1.0.0a9-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cb21fbe825ed6712d55849af8d9dde6a16840332dcc9997743154bc832db9df
|
|
| MD5 |
dd855aa5a6112f01b816e6f54820ba8f
|
|
| BLAKE2b-256 |
8af72a9d32fb6de48d8fa2c47c6cde7ef49f7eaf39e3cb5c8ba974b83f9adf7a
|