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
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
wcpan_drive_sqlite-4.0.0.tar.gz
(12.9 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 wcpan_drive_sqlite-4.0.0.tar.gz.
File metadata
- Download URL: wcpan_drive_sqlite-4.0.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":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 |
e3d994fec142c1ae14868da8c75fbbe63030a6659ca47566dae11c0645e4111c
|
|
| MD5 |
19f099fbedc0fe761dfbb94dc5f19923
|
|
| BLAKE2b-256 |
abf427cacd420e0cf33ff4d89dbeb364657abd0f58701cfc5f7cb020af5187f1
|
File details
Details for the file wcpan_drive_sqlite-4.0.0-py3-none-any.whl.
File metadata
- Download URL: wcpan_drive_sqlite-4.0.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":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 |
38133e644ee391cc1ad5961f50d7df05f32e34b01f36ad42746297dd8bdea672
|
|
| MD5 |
226b9ed1206a00e1f6e419b731d72bad
|
|
| BLAKE2b-256 |
b884e70587ce0969cdc160f6c65a7fb464b0097dbe1d70f8ad5e62ba1f5652d8
|