sqlite3 snapshot service for wcpan.drive
Project description
wcpan.drive.sqlite
sqlite3 snapshot service for wcpan.drive.
Example Usage
from contextlib import asynccontextmanager
from wcpan.drive.core import create_drive
from wcpan.drive.core.types import FileService
from wcpan.drive.sqlite import create_service
@asynccontextmanager
async def create_sqlite_service():
async with create_service(dsn="/path/to/sqlite") as snapshot:
yield snapshot
# Assumes we already know how to create FileService
async def simple_demo(create_file_service: FileService):
async with create_drive(
file=create_file_service,
snapshot=create_sqlite_service,
) as drive:
...
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
Built Distribution
Close
Hashes for wcpan_drive_sqlite-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2b528dde95280f8c0dbb2f91165ff1d2651f373362e0757d4f9f0d0ad74bc77 |
|
MD5 | 3627e6a7bcfc80a2a877e35321ad4122 |
|
BLAKE2b-256 | a73245d8acca4ae5a916daf56d77d97e54749c638a0585900b56adbfc3e82fb2 |