Crates.io | pyql |
lib.rs | pyql |
version | |
source | src |
created_at | 2024-12-01 13:04:14.092357 |
updated_at | 2024-12-01 13:04:14.092357 |
description | A tool to run SQL-like query on your Python source code files |
homepage | |
repository | https://github.com/amrdeveloper/pyql/ |
max_upload_size | |
id | 1467428 |
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` |
size | 0 |
PyQL is a SQL like query language to run on Python source code files instead of database files using the GitQL SDK.
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 |
cargo install pyql
git clone https://github.com/AmrDeveloper/PyQL.git
cd PyQL
cargo build
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
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.