{"id":34021332,"url":"https://github.com/hansalemaos/ripgreppythonfiles","last_synced_at":"2026-04-07T11:31:21.514Z","repository":{"id":220405022,"uuid":"751585644","full_name":"hansalemaos/ripgreppythonfiles","owner":"hansalemaos","description":"Search for code in your env using ripgrep","archived":false,"fork":false,"pushed_at":"2024-02-01T22:35:05.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-17T05:02:00.200Z","etag":null,"topics":["env","regex","ripgrep","search","vscode"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/ripgreppythonfiles","language":"Python","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/hansalemaos.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-01T22:34:38.000Z","updated_at":"2025-01-06T22:51:48.000Z","dependencies_parsed_at":"2024-02-01T22:56:14.244Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/ripgreppythonfiles","commit_stats":null,"previous_names":["hansalemaos/ripgreppythonfiles"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/ripgreppythonfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fripgreppythonfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fripgreppythonfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fripgreppythonfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fripgreppythonfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/ripgreppythonfiles/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fripgreppythonfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31511535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"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":["env","regex","ripgrep","search","vscode"],"created_at":"2025-12-13T15:52:49.709Z","updated_at":"2026-04-07T11:31:21.509Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Search for code in your env using ripgrep  \r\n\r\n## Tested against Windows / Python 3.11 / Anaconda\r\n\r\n## pip install ripgreppythonfiles\r\n\r\n\r\nA script to search for code in your env using ripgrep  https://github.com/BurntSushi/ripgrep \r\n\r\n\r\nExample: \r\n\r\n```\r\n(mainenv) C:\\ProgramData\\anaconda3\\envs\\mainenv\u003ergtt import\\ numpy    #SPACES MUST BE ESCAPED!!\r\n\r\ncall python -c \"from ripgreppythonfiles import rfile;rfile(r'''import\\ numpy''')\"\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\bstackbin.py:1:1:import numpy as np\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\bstackbin.py-2-import regex # pip install regex\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\bstackbin.py-3-\r\n\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\anyarray.pyx-12-from cython.parallel cimport prange\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\anyarray.pyx-13-cimport cython\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\anyarray.pyx:14:1:import numpy as np\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\anyarray.pyx:15:2:cimport numpy as np\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\anyarray.pyx-16-import cython\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\anyarray.pyx-17-\r\n\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\cmdaxs.py-50-\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\cmdaxs.py-51-import pymem\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\cmdaxs.py:52:1:import numpy as np\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\cmdaxs.py-53-from pdmemedit import Pdmemory\r\nC:\\ProgramData\\anaconda3\\envs\\mainenv\\cmdaxs.py-54-# pass either pid or filename, but not both\r\n\r\n.... \r\n\r\nOutput written to: C:\\Users\\hansc\\AppData\\Local\\Temp\\tmpbmfm5sdo.txt\r\n```\r\n\r\n\r\n\r\n```python\r\nrfile(args: str):\r\n    Runs ripgrep with the provided arguments, printing the split arguments and calling `run_ripgrep`.\r\n\r\n    Parameters:\r\n        - args (str): The arguments to pass to ripgrep.\r\n\r\n    Returns:\r\n        None\r\n\r\n    Obs:\r\n        Useful when using a bat file:\r\n        Content of rgtt.bat\r\n            call python -c \"from ripgreppythonfiles import rfile;rfile(r'''%*''')\"\r\n        Calling the bat file;\r\n            rgtt.bat import\\ numpy 5 100 1 120\r\n\r\nrun_ripgrep(\r\n    r: str = \"\",\r\n    c: int | str = 2,\r\n    m: int | str = 1,\r\n    s: int | str = 1,\r\n    l: int | str = 80,\r\n    f: str = \"py,pyx\",\r\n):\r\n\r\n    Runs ripgrep with specified parameters.\r\n\r\n    Parameters:\r\n        - r (str): The regular expression to search for.\r\n        - c (in,str): The number of lines of context to display.\r\n        - m (in,str): The maximum search depth.\r\n        - s (in,str): If 1, writes the ripgrep output to a temporary file.\r\n        - l (in,str): The maximum number of columns to display in the output.\r\n        - f (str): A str of file extensions to search for (e.g, py,pyx).\r\n\r\n    Returns:\r\n        subprocess.CompletedProcess: The result of the ripgrep subprocess.\r\n\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fripgreppythonfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fripgreppythonfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fripgreppythonfiles/lists"}