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.dev5.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tigrbl_engine_csv-0.1.1.dev5-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigrbl_engine_csv-0.1.1.dev5.tar.gz
  • Upload date:
  • Size: 9.3 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

Hashes for tigrbl_engine_csv-0.1.1.dev5.tar.gz
Algorithm Hash digest
SHA256 df8f4d8c4a95c09f4a41d55273c50642d546ff0f5ca2a7f61b78996b16f5ddd7
MD5 ec2b4eeb092e68290d007c6d22e5e94d
BLAKE2b-256 1bd94dda30fc0c59340548996439d5d00802bcba62069b39ee5cf0376574b403

See more details on using hashes here.

File details

Details for the file tigrbl_engine_csv-0.1.1.dev5-py3-none-any.whl.

File metadata

  • Download URL: tigrbl_engine_csv-0.1.1.dev5-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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

Hashes for tigrbl_engine_csv-0.1.1.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 14345b98eaf1f950c13a291f7334796da4444a83c5a8f86541f2dec6cb3d8ad1
MD5 97ef82484d35ce879ca7d33a20788eee
BLAKE2b-256 bb46d13948ad37d81e885240c99b01e2055b6a84fc46fd5cd721a4c6d13e4f13

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