clidb
clidb is a command line sql client for individual data files, allowing these to be queried (even joined) and viewed. It natively supports CSV and parquet formats, with support for other file types available via the optional extras dependency.
Data Formats
The following file types can be opened as views in clidb without extras:
- csv
- parquet(.gz)
With pandas installed, the following are also supported:
- json(l)
- xls(x)
- clipboard
- ...
Usage
This package can be installed with:
pip install "clidb[extras]"
and executed via:
clidb
Arguments
If a filename is supplied as an argument to clidb then it will open the data file as a view.
If a directory or S3 path is supplied then the directory view will open in that location.
For example:
clidb data/iris.csv
or
clidb s3://somebucket/data/
The contents of the clipboard can be converted into a view (e.g. after copying from Google Sheets), using the --clipboard argument:
clidb --clipboard
For some data sources, it can be helpful to render lines that separate rows. This can be enabled via the row-lines option:
clidb --row-lines
Advanced Usage
New views can be created from an opened file. For example if iris.csv was opened as the view iris, then we could create a new view:
create view iris_variety as (select variety, avg("petal.length") from iris group by variety)
Views can be joined together, for example:
select * from iris natural join iris_variety
Metadata
Release files for clidb 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clidb-0.2.3.tar.gz | 10.5 kB | Without provenance | Details for clidb-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clidb-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for clidb-0.2.3-py3-none-any.whl |
Total release size: 21.4 kB
Release files / clidb-0.2.3.tar.gz
| Download URL | clidb-0.2.3.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96d7fa15037634ed8365387bfe09005f836495d33759c575f788755f9c9731c6
|
|
BLAKE2b-256 checksum How to use checksums |
2c2a4a54343b059a05b68659ef666c4e9c4cc051b7f507cd3a1b244550ecbe84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.10 Darwin/22.1.0
|
Release files / clidb-0.2.3-py3-none-any.whl
| Download URL | clidb-0.2.3-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e69c032fdcbaff21d4a3cc75413ae05307f27541df50c38762db9e61cdc5c9b
|
|
BLAKE2b-256 checksum How to use checksums |
22efb865afd01060d3ed85bad9dda8a92ce0c6d7c438ac666f72d706b9cad72d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.10 Darwin/22.1.0
|
Security for clidb 0.2.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.