pyql

Crates.iopyql
lib.rspyql
version
sourcesrc
created_at2024-12-01 13:04:14.092357
updated_at2024-12-01 13:04:14.092357
descriptionA tool to run SQL-like query on your Python source code files
homepage
repositoryhttps://github.com/amrdeveloper/pyql/
max_upload_size
id1467428
Cargo.toml error:TOML parse error at line 24, column 1 | 24 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Amr Hesham (AmrDeveloper)

documentation

https://github.com/amrdeveloper/pyql

README

PyQL - A Python Query Language


Crates.io Deps GitHub issues GitHub

PyQL is a SQL like query language to run on Python source code files instead of database files using the GitQL SDK.

animated


Tables structures

Functions table

Name Type Description
function_name Text The name of Python function
arguments_count Integer The number of arguments in this function
function PyFunction A pointer to that Function Node in AST
file_name Text File name that has this function

Download or Install

  • Install from Cargo.io
cargo install pyql
  • Build from source code
git clone https://github.com/AmrDeveloper/PyQL.git
cd PyQL
cargo build

Run PyQL

PyQL is a SQL like query language to run on Python source code files
Usage: PyQL [OPTIONS]

Options:
  -f,  --files <paths>        Path for local files to run query on
  -s,  --script <file>        Script file contains one or more query
  -q,  --query <GQL Query>    PyQL query to run on selected files
  -p,  --pagination           Enable print result with pagination
  -ps, --pagesize             Set pagination page size [default: 10]
  -o,  --output               Set output format [render, json, csv]
  -a,  --analysis             Print Query analysis
  -e,  --editor               Enable GitQL LineEditor
  -h,  --help                 Print PyQL help
  -v,  --version              Print PyQL Current Version

License

MIT License

Copyright (c) 2024 Amr Hesham

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Commit count: 7

cargo fmt