{"id":34024218,"url":"https://github.com/tarvitz/rtquery","last_synced_at":"2026-03-10T18:02:57.717Z","repository":{"id":57463092,"uuid":"110477823","full_name":"tarvitz/rtquery","owner":"tarvitz","description":"Request Tracker Querying Library","archived":false,"fork":false,"pushed_at":"2018-02-10T20:44:15.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-15T05:33:03.770Z","etag":null,"topics":["best-practices","query-builder","request-tracker"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarvitz.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-12T23:22:47.000Z","updated_at":"2021-10-25T18:42:03.000Z","dependencies_parsed_at":"2022-09-12T13:22:28.797Z","dependency_job_id":null,"html_url":"https://github.com/tarvitz/rtquery","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tarvitz/rtquery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarvitz%2Frtquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarvitz%2Frtquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarvitz%2Frtquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarvitz%2Frtquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarvitz","download_url":"https://codeload.github.com/tarvitz/rtquery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarvitz%2Frtquery/sbom","scorecard":{"id":869171,"data":{"date":"2025-08-11","repo":{"name":"github.com/tarvitz/rtquery","commit":"0641334218f00daec19c0461b822952d9a56be2e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T03:37:24.001Z","repository_id":57463092,"created_at":"2025-08-24T03:37:24.001Z","updated_at":"2025-08-24T03:37:24.001Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30346481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["best-practices","query-builder","request-tracker"],"created_at":"2025-12-13T16:08:30.861Z","updated_at":"2026-03-10T18:02:57.709Z","avatar_url":"https://github.com/tarvitz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nRT Query\n========\n\n.. image:: https://travis-ci.org/tarvitz/rtquery.svg?branch=master\n    :target: https://travis-ci.org/tarvitz/rtquery\n\n.. image:: https://coveralls.io/repos/github/tarvitz/rtquery/badge.svg?branch=master\n  :target: https://coveralls.io/github/tarvitz/rtquery?branch=master\n\n.. image:: https://badge.fury.io/py/rtquery.svg\n    :target: https://badge.fury.io/py/rtquery\n\n.. contents::\n    :local:\n    :depth: 2\n\nAbstract\n--------\nSimplifies query interface for |rt_tracker|_'s rest-api lib |rt_lib|_.\nMain query interface has been take from |django|_ project\n\nRequirements\n------------\n\n- Python 3.4+\n- |rt_lib|_ (it's not dependency itself, but it uses in examples)\n\nUsage\n-----\n\n.. code-block:: python\n\n    import rt\n\n    client = rt.Rt('http://localhost/rt/REST/1.0/',\n                   basic_auth=('user', 'password'))\n    assert client.login()\n    #: rt filtering does not support `in` operation, so interface looks similar\n    #: to django querying, but it sticks to its limits.\n    query = Q(Subject__contains='[improvements]') | Q(Subject__contains='[enhancements]')\n    query \u0026= Q(Queue='development', Status='sprint', Owner='User',\n               Priority__gt=80)\n    result = client.search(Queue=rt.ALL_QUEUES, raw_query=query.resolve())\n    print(result)\n    [{\n        \"id\": \"ticket/471147\",\n        \"Queue\": \"development\",\n        \"Owner\": \"User\",\n        \"Creator\": \"User\",\n        \"Subject\": \"[improvements] Implement Requests Tracker simple querying\",\n        \"Status\": \"sprint\",\n        \"Priority\": \"99\",\n        \"InitialPriority\": \"40\",\n        \"FinalPriority\": \"40\",\n        \"Requestors\": [\n            \"user@example.org.fake\"\n        ],\n        \"Created\": \"Thu Nov 02 19:26:40 2017\",\n        \"Starts\": \"Not set\",\n        \"Started\": \"Thu Nov 02 19:27:12 2017\",\n        \"Due\": \"Not set\",\n        \"Resolved\": \"Not set\",\n        \"Told\": \"Not set\",\n        \"LastUpdated\": \"Thu Nov 09 17:20:33 2017\",\n        \"TimeEstimated\": \"180 minutes\",\n        \"TimeWorked\": \"0\",\n        \"TimeLeft\": \"0\",\n        \"CF.{Tags}\": \"extra\",\n        \"CF.{Code Review}\": \"\",\n        \"CF.{Difficulty}\": \"\"\n    }]\n\nExtra functionality\n-------------------\nIn addition to existent ``rtquery.Q`` you can also try to use ``utils.query``\nbuilder which is simple dsl to make ``Q`` objects from user input (argument parser for example)\n\n.. code-block:: python\n\n    from rtquery.utils import query\n    qset = query(\"Queue = development \u0026 Status = sprint \u0026 Owner ~ user\")\n    result = client.search(Queue=rt.ALL_QUEUES, raw_query=query.resolve())\n    # ...\n\n.. references\n\n.. |rt_tracker| replace:: Request Tracker\n.. _rt_tracker: https://bestpractical.com/request-tracker\n.. |rt_lib| replace:: RT Library\n.. _rt_lib: https://github.com/CZ-NIC/python-rt\n.. |django| replace:: Django Framework\n.. _django: https://www.djangoproject.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarvitz%2Frtquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarvitz%2Frtquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarvitz%2Frtquery/lists"}