CSV engine plugin for tigrbl backed by pandas DataFrames.
Project description
tigrbl_engine_csv
A tigrbl engine plugin that registers kind="csv" where each CSV is a single-table database-like object.
Features
- Registers a
csvengine through thetigrbl.engineentry-point group. - Treats one CSV file as one database-like table.
- Provides a first-class
CsvSession(subclass ofTigrblSessionBase) backed by transactional DataFrame semantics.
Installation
uv
uv add tigrbl_engine_csv
pip
pip install tigrbl_engine_csv
Usage
from tigrbl.engine import EngineSpec
spec = EngineSpec(
kind="csv",
mapping={"path": "./users.csv", "table": "users", "pk": "id"},
)
provider = spec.provider()
engine, session_factory = provider.build()
session = session_factory()
print(session.table())
print(session.query("age >= 21"))
session.close()
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
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 tigrbl_engine_csv-0.1.1.dev9.tar.gz.
File metadata
- Download URL: tigrbl_engine_csv-0.1.1.dev9.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
956e145ab93c6d56848b9e99801239adb6dd86bbbd8a38fd0141bb6d2f86f1c8
|
|
| MD5 |
74f470a27e3435772ebdd95e676b96b2
|
|
| BLAKE2b-256 |
58d8505d7c33d85f3241478160d329a28ee0d81d5a6029b219ea8678de0d381f
|
File details
Details for the file tigrbl_engine_csv-0.1.1.dev9-py3-none-any.whl.
File metadata
- Download URL: tigrbl_engine_csv-0.1.1.dev9-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25a6f370256ae006222c4c6af61dcd839e5680be7cea7795145f2fbe478b0c09
|
|
| MD5 |
9eadbdd9185e952aee62f29e94b8e16a
|
|
| BLAKE2b-256 |
f0e63b5404db6744a8393b8e76fc508e1b27f1f751b567b229f71f1646dedfe3
|