Skip to main content

Test Python code

CSVW DuckDB tool

Convert a CSVW document (CSV metadata) to a DuckDB query to load a CSV file into a database.

See also: Python csvw package.

Installation

pip install csvw-duckdb

Usage

To use this tool, call it from the command line and provide the path of the CSVW document. The SQL code will be written to the screen.

csvw-duckdb --help
usage: csvw-duckdb [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--version] csvw_path

Load a CSVW document and generate simple SQL SELECT statements. One SQL file will be generated per table in the CSVW table group.

positional arguments:
  csvw_path             CSVW file

options:
  -h, --help            show this help message and exit
  --loglevel {DEBUG,INFO,WARNING,ERROR,CRITICAL}, -l {DEBUG,INFO,WARNING,ERROR,CRITICAL}
  --version             show program's version number and exi

Examples

csvw-duckdb my_metadata.csvw

Metadata

Release files for csvw-duckdb 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csvw-duckdb 0.0.1
File Size Uploaded
csvw_duckdb-0.0.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for csvw-duckdb 0.0.1
File Interpreter ABI Platform
csvw_duckdb-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / csvw_duckdb-0.0.1.tar.gz

Download URL csvw_duckdb-0.0.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
06a465795eefe5f16238859165558bc1dd0c5ed26153378f0925c6e3106a4e71
BLAKE2b-256 checksum
How to use checksums
c1402325bfe8c8c22dee70511647f9788c4c06cd808b0455298f24dcd80cb0b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 19, 2024.

Transparency log

Release files / csvw_duckdb-0.0.1-py3-none-any.whl

Download URL csvw_duckdb-0.0.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1a9c077da4964ad32debe640d5489da2720ba1f8dc1b76aa27e8b09d12edb95
BLAKE2b-256 checksum
How to use checksums
d26db154f7db3e25040adc4c9afef41884870fcb4946450bfc6c5aee061f0363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 19, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page