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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b45e20d14a66dffe09fbea11c96286a327c4f5c6b2ec87da42d83f15be86b7e5 |
|
MD5 | b60ad5cc3f3649ab4200da47cbe03f8e |
|
BLAKE2b-256 | cce7467ddc6a8809b0a1ecf60250b1a140a1eed4306b300342f8139f7c73c07d |