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:
...
Release files for wcpan-drive-sqlite 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wcpan_drive_sqlite-4.0.0.tar.gz | 12.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wcpan_drive_sqlite-4.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:22.4 kB
Release files / wcpan_drive_sqlite-4.0.0.tar.gz
| Download URL | wcpan_drive_sqlite-4.0.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e3d994fec142c1ae14868da8c75fbbe63030a6659ca47566dae11c0645e4111c
|
|
BLAKE2b-256 checksum How to use checksums |
abf427cacd420e0cf33ff4d89dbeb364657abd0f58701cfc5f7cb020af5187f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / wcpan_drive_sqlite-4.0.0-py3-none-any.whl
| Download URL | wcpan_drive_sqlite-4.0.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38133e644ee391cc1ad5961f50d7df05f32e34b01f36ad42746297dd8bdea672
|
|
BLAKE2b-256 checksum How to use checksums |
b884e70587ce0969cdc160f6c65a7fb464b0097dbe1d70f8ad5e62ba1f5652d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|