Skip to main content

CSV engine plugin for tigrbl backed by pandas DataFrames.

Project description

Tigrbl Logo

PyPI - tigrbl_engine_csv PyPI - Downloads PyPI - Python Version PyPI - License Hits

tigrbl_engine_csv

A tigrbl engine plugin that registers kind="csv" where each CSV is a single-table database-like object.

Features

  • Registers a csv engine through the tigrbl.engine entry-point group.
  • Treats one CSV file as one database-like table.
  • Provides a first-class CsvSession (subclass of TigrblSessionBase) 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tigrbl_engine_csv-0.1.1.dev1.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file tigrbl_engine_csv-0.1.1.dev1.tar.gz.

File metadata

  • Download URL: tigrbl_engine_csv-0.1.1.dev1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.3 {"installer":{"name":"uv","version":"0.10.3","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

Hashes for tigrbl_engine_csv-0.1.1.dev1.tar.gz
Algorithm Hash digest
SHA256 051cc4bf08a1a6712a5d91c507942df9d98232fd5c61f289bae7df4273ede197
MD5 76cf89b470d0b500f77736b6d1ec81a8
BLAKE2b-256 d919189be9ba0be5e1be395d02067a13a87d686fc59d6e89430abf6951dc9ff6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page