{"id":20485468,"url":"https://github.com/knowsuchagency/shlep","last_synced_at":"2025-09-02T10:34:05.216Z","repository":{"id":169618986,"uuid":"645621605","full_name":"knowsuchagency/shlep","owner":"knowsuchagency","description":"Gather directory contents into a single upload for ChatGPT","archived":false,"fork":false,"pushed_at":"2023-09-06T13:30:59.000Z","size":1720,"stargazers_count":22,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-01T03:05:41.178Z","etag":null,"topics":["ai","chatgpt","cli","llm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knowsuchagency.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,"publiccode":null,"codemeta":null}},"created_at":"2023-05-26T04:18:16.000Z","updated_at":"2024-09-30T18:21:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5419d5e-76ff-4154-a7c6-41ac491c03d4","html_url":"https://github.com/knowsuchagency/shlep","commit_stats":null,"previous_names":["knowsuchagency/horde"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knowsuchagency/shlep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowsuchagency%2Fshlep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowsuchagency%2Fshlep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowsuchagency%2Fshlep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowsuchagency%2Fshlep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowsuchagency","download_url":"https://codeload.github.com/knowsuchagency/shlep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowsuchagency%2Fshlep/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273271605,"owners_count":25075966,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai","chatgpt","cli","llm"],"created_at":"2024-11-15T16:30:46.461Z","updated_at":"2025-09-02T10:34:05.173Z","avatar_url":"https://github.com/knowsuchagency.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shlep\n\n\n![ai](https://github.com/knowsuchagency/shlep/assets/11974795/ec862cfe-c1e3-45d8-9a75-92a240d2fb8d)\n\n\n`shlep` lets you package your directory's content in a format that can be easily passed to ChatGPT. This is especially\nuseful when using the code interpreter plugin!\n\nIt automatically excludes files that match what's in your `.gitignore` file, as well as any additional exclude patterns you provide.\n\n## Installation\nYou can install `shlep` from PyPI, but the recommended installation for the CLI is through [pipx][pipx].\n\n```bash\npipx install shlep\n```\n\n## Features\n\n- Supports various output formats: JSON, CSV, and plain text\n- Excludes files and directories matching patterns in your `.gitignore` file\n- Allows you to provide additional exclude patterns\n- Can write output to a file or print it to stdout\n\n## Demo\n\nhttps://github.com/knowsuchagency/shlep/assets/11974795/ebfdae55-35f2-4edc-b0cb-089d2f99a7ca\n\n## Usage\n\n`shlep` can be used as a command-line tool or programmatically in your Python code.\n\n### Command-line usage\n\n```\nusage: shlep [-h] [-o OUTPUT_FILE] [-i INDENT] [-e EXCLUDE] [-f {json,csv,plaintext}] directory\n\nGather directory contents into a single output.\n\npositional arguments:\n  directory             The directory to analyze.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -o OUTPUT_FILE, --output-file OUTPUT_FILE\n                        The output file to generate. If not specified, output is printed to stdout.\n  -i INDENT, --indent INDENT\n                        The number of spaces to use for indentation in the output JSON.\n  -e EXCLUDE, --exclude EXCLUDE\n                        Additional files or directories to exclude.\n  -f {json,csv,plaintext}, --format {json,csv,plaintext}\n                        The output format. Can be 'json', 'csv', or 'plaintext'. Default is 'json'.\n```\n\n### Programmatically in Python\n\n```python\nfrom shlep import shlep\n\ndirectory = \"path/to/your/directory\"\nindent = 2\nadditional_excludes = [\".env\", \"node_modules/\"]\noutput_format = \"json\"\noutput_file = \"output.json\"\n\nshlep(directory, indent, additional_excludes, output_format, output_file)\n```\n\n## License\n\nThis project is licensed under the Apache License 2.0. You can find the full license text in the [LICENSE](LICENSE) file.\n\n[pipx]: https://pypa.github.io/pipx/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowsuchagency%2Fshlep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowsuchagency%2Fshlep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowsuchagency%2Fshlep/lists"}