{"id":22710466,"url":"https://github.com/amrdeveloper/pyql","last_synced_at":"2025-04-13T14:54:24.126Z","repository":{"id":265903779,"uuid":"896844729","full_name":"AmrDeveloper/PyQL","owner":"AmrDeveloper","description":"PyQL 🐍 is a SQL-like query language to run on Python source code files instead of database files using the GitQL SDK.","archived":false,"fork":false,"pushed_at":"2024-12-22T16:03:37.000Z","size":623,"stargazers_count":25,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T14:54:07.877Z","etag":null,"topics":["database","gitql","gitql-sdk","python","query-language","sql"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/pyql","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AmrDeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"amrdeveloper"}},"created_at":"2024-12-01T12:53:48.000Z","updated_at":"2025-01-20T09:03:08.000Z","dependencies_parsed_at":"2024-12-01T13:25:32.642Z","dependency_job_id":"52eab4c2-1fef-40ca-b444-2d3569c38d0b","html_url":"https://github.com/AmrDeveloper/PyQL","commit_stats":null,"previous_names":["amrdeveloper/pyql"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FPyQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FPyQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FPyQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FPyQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmrDeveloper","download_url":"https://codeload.github.com/AmrDeveloper/PyQL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248732512,"owners_count":21152851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","gitql","gitql-sdk","python","query-language","sql"],"created_at":"2024-12-10T12:08:46.559Z","updated_at":"2025-04-13T14:54:24.103Z","avatar_url":"https://github.com/AmrDeveloper.png","language":"Rust","readme":"\u003ch1 align=\"center\"\u003ePyQL - A Python Query Language\u003c/h1\u003e\u003c/br\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"media/pyql_logo.svg\" width=\"20%\" height=\"20%\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Crates.io\" src=\"https://img.shields.io/crates/v/pyql?style=flat-square\"\u003e\n  \u003cimg alt=\"Deps\" src=\"https://deps.rs/repo/github/amrdeveloper/pyql/status.svg\"\u003e\n  \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/amrdeveloper/pyql\"\u003e\n  \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/amrdeveloper/pyql\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nPyQL is a SQL like query language to run on Python source code files instead of database files using the GitQL SDK.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/pyql_demo.png\" alt=\"animated\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n---\n\n### Tables structures\n\n#### Functions table\n\n| Name            | Type       | Description                              |\n| --------------- | ---------- | ---------------------------------------- |\n| function_name   | Text       | The name of Python function              |\n| arguments_count | Integer    | The number of arguments in this function |\n| function        | PyFunction | A pointer to that Function Node in AST   |\n| file_name       | Text       | File name that has this function         |\n\n\n---\n\n### Download or Install\n\n- Install from Cargo.io\n\n```\ncargo install pyql\n```\n\n- Build from source code\n\n```\ngit clone https://github.com/AmrDeveloper/PyQL.git\ncd PyQL\ncargo build\n```\n\n### Run PyQL\n\n```\nPyQL is a SQL like query language to run on Python source code files\nUsage: PyQL [OPTIONS]\n\nOptions:\n  -f,  --files \u003cpaths\u003e        Path for local files to run query on\n  -s,  --script \u003cfile\u003e        Script file contains one or more query\n  -q,  --query \u003cGQL Query\u003e    PyQL query to run on selected files\n  -p,  --pagination           Enable print result with pagination\n  -ps, --pagesize             Set pagination page size [default: 10]\n  -o,  --output               Set output format [render, json, csv]\n  -a,  --analysis             Print Query analysis\n  -e,  --editor               Enable GitQL LineEditor\n  -h,  --help                 Print PyQL help\n  -v,  --version              Print PyQL Current Version\n```\n\n### License\n\n```\nMIT License\n\nCopyright (c) 2024 Amr Hesham\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","funding_links":["https://github.com/sponsors/amrdeveloper"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famrdeveloper%2Fpyql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famrdeveloper%2Fpyql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famrdeveloper%2Fpyql/lists"}