Skip to main content

LoQL

screenshot

LoQL is a command line sql client for individual data files, allowing these to be queried (even joined) and viewed. It natively supports CSV, parquet and other formats.

Data Formats

The following file types can be opened as views in LoQL:

  • csv
  • parquet(.gz)
  • json(l)
  • xls(x)
  • clipboard
  • ...

Usage

This package can be installed with:

pipx install loql

and executed via:

loql

Arguments

If a filename is supplied as an argument to LoQL then it will open the data file as a view.

If a directory is supplied then the open file view will start in that location.

For example:

loql data/iris.csv

The contents of the clipboard can be converted into a view (e.g. after copying from Google Sheets), using the --clipboard argument:

loql --clipboard

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") as avg_petal_length
    from iris
    group by variety
)

create view

Views can be joined together, for example:

select * from iris natural join iris_variety

join

Metadata

Release files for LoQL 1.0.0

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

Source distribution (sdist)

Source distribution for LoQL 1.0.0
File Size Uploaded Provenance Actions
loql-1.0.0.tar.gz 7.1 kB Without provenance Details for loql-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for LoQL 1.0.0
File Interpreter ABI Platform Actions
loql-1.0.0-py3-none-any.whl Python 3 none any Details for loql-1.0.0-py3-none-any.whl

Total release size: 15.9 kB

Release files / loql-1.0.0.tar.gz

Download URL loql-1.0.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bf239ec868e42e32a8cf115eba2b8886321df8f8b74de0acfe1db2bd9a5533f4
BLAKE2b-256 checksum
How to use checksums
611b572161c1cb51b38f7d37e9a8c3dde0d7906fda32b30e75f81652b957cae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / loql-1.0.0-py3-none-any.whl

Download URL loql-1.0.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b6f6414f41e889f76f94e265a49747636f0ea09ece06fb9f3561927cbbafb1f
BLAKE2b-256 checksum
How to use checksums
0539d5ae0103cdbf86f74655847dfc2cc2adb171a32776389fdb0553284f67b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Security for LoQL 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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