1
1
mirror of https://github.com/harelba/q.git synced 2024-10-03 22:39:52 +03:00
q - Run SQL directly on delimited files and multi-file sqlite databases
Go to file
2020-09-19 23:47:35 +03:00
bin q benchmark (#241) 2020-09-19 12:56:06 +03:00
dist Release Cycle (#242) 2020-09-19 23:37:00 +03:00
doc Replace image code samples with text. 2019-01-06 17:03:09 -05:00
examples Fix typo in some docs and script 2017-12-27 22:52:18 +09:00
mkdocs option to list udfs, and added new functions 2020-09-13 17:29:53 +03:00
test q benchmark (#241) 2020-09-19 12:56:06 +03:00
.gitignore q benchmark (#241) 2020-09-19 12:56:06 +03:00
.travis.yml wip 2020-01-12 17:58:26 +02:00
build-deb-builder-container WIP 2017-04-06 13:42:17 +03:00
build-rpm-builder-container WIP 2017-04-06 13:42:17 +03:00
create-windows-setup-instructions Hotfix for windows installation, to workaround pyinstaller warning bug 2018-03-24 11:40:43 +03:00
do-manual-release.sh prevent releasing from a push check inside a PR 2020-09-19 23:47:35 +03:00
LICENSE Create LICENSE 2017-08-12 13:07:52 +03:00
Makefile wip 2020-01-12 19:54:56 +02:00
package-release Release Cycle (#242) 2020-09-19 23:37:00 +03:00
pytest.ini wip 2020-01-12 17:58:26 +02:00
README.markdown Update README.markdown 2020-02-12 16:15:41 +02:00
RELEASE.md Release Cycle (#242) 2020-09-19 23:37:00 +03:00
requirements.txt q benchmark (#241) 2020-09-19 12:56:06 +03:00
setup-pyenv.sh wip 2020-01-12 17:58:26 +02:00
setup.py q benchmark (#241) 2020-09-19 12:56:06 +03:00
test-requirements.txt wip 2020-01-12 17:58:26 +02:00
upload-release Release Cycle (#242) 2020-09-19 23:37:00 +03:00

Build Status

q - Text as Data

q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).

q treats ordinary files as database tables, and supports all SQL constructs, such as WHERE, GROUP BY, JOINs, etc. It supports automatic column name and type detection, and q provides full support for multiple character encodings.

q's web site is http://harelba.github.io/q/. It contains everything you need to download and use q immediately.

Installation.

Extremely simple.

Instructions for all OSs are here.

Examples

q "SELECT COUNT(*) FROM ./clicks_file.csv WHERE c3 > 32.3"

ps -ef | q -H "SELECT UID, COUNT(*) cnt FROM - GROUP BY UID ORDER BY cnt DESC LIMIT 3"

Go here for more examples.

Python API

A development branch for exposing q's capabilities as a Python module can be viewed here, along with examples of the alpha version of the API.
Existing functionality as a command-line tool will not be affected by this. Your input will be most appreciated.

Contact

Any feedback/suggestions/complaints regarding this tool would be much appreciated. Contributions are most welcome as well, of course.

Linkedin: Harel Ben Attia

Twitter @harelba

Email harelba@gmail.com

q on twitter: #qtextasdata