{"id":31673159,"url":"https://github.com/dscmatter/codefilestoformat","last_synced_at":"2025-10-08T03:35:58.993Z","repository":{"id":310113382,"uuid":"1035556428","full_name":"DSCmatter/codeFilesToFormat","owner":"DSCmatter","description":"Make any code files into pdfs/txt using a simple python script","archived":false,"fork":false,"pushed_at":"2025-08-15T19:19:49.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-15T21:44:01.670Z","etag":null,"topics":["python","script"],"latest_commit_sha":null,"homepage":"","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/DSCmatter.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,"zenodo":null}},"created_at":"2025-08-10T16:43:11.000Z","updated_at":"2025-08-15T19:19:53.000Z","dependencies_parsed_at":"2025-08-15T21:44:03.721Z","dependency_job_id":"757a0c6d-c693-495a-9f21-a5441ed52623","html_url":"https://github.com/DSCmatter/codeFilesToFormat","commit_stats":null,"previous_names":["dscmatter/codefilestoformat"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/DSCmatter/codeFilesToFormat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2FcodeFilesToFormat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2FcodeFilesToFormat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2FcodeFilesToFormat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2FcodeFilesToFormat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DSCmatter","download_url":"https://codeload.github.com/DSCmatter/codeFilesToFormat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSCmatter%2FcodeFilesToFormat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886173,"owners_count":26062972,"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-10-08T02:00:06.501Z","response_time":56,"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":["python","script"],"created_at":"2025-10-08T03:35:58.029Z","updated_at":"2025-10-08T03:35:58.988Z","avatar_url":"https://github.com/DSCmatter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codeFilesToFormat\n\nA simple Python GUI tool to export code files from a selected folder into a single PDF or TXT file, so you don't have to. Supports optional auto-formatting with **Black**, **clang-format**, and **Prettier** before exporting.\n\n## Features\n\n* Select any folder containing code files\n* Supported extensions: `.py`, `.c`, `.h`, `.yaml`, `.yml`, `.cpp`, `.java`, `.txt`\n* Choose between **Single File** (all code in one PDF/TXT) or **Separate Files** (each file exported individually)\n* Output generated in a dedicated folder (`pdf_output` or `txt_output`)\n* Optional code formatting before export\n\n## Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/DSCmatter/codeFilesToFormatr.git\ncd codeFilesToFormat\n```\n\nInstall the required Python packages:\n\n```bash\npip install -r requirements.txt\n```\n\nIf you want code formatting:\n\n* Install [Black](https://black.readthedocs.io/en/stable/) for Python formatting\n* Install [clang-format](https://clang.llvm.org/docs/ClangFormat.html) for C/C++ formatting\n* Install [Prettier](https://prettier.io/) for YAML/JSON formatting\n\n## Usage\n\nRun the script:\n\n```bash\npython main.py\n```\n\n1. Browse and select the folder containing your code\n2. Choose **Mode**:\n\n   * `Single` → all code in one file\n   * `Separate` → each file exported separately\n3. Choose **Format** (`PDF` or `TXT`)\n4. Click **Convert**\n5. Your files will be saved in `pdf_output` or `txt_output` next to the script\n\n## Notes\n\n* The script tries to use the `Calibri` font for PDF output. If missing, it falls back to default fonts.\n* Large folders may take time to process depending on formatting and file sizes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdscmatter%2Fcodefilestoformat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdscmatter%2Fcodefilestoformat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdscmatter%2Fcodefilestoformat/lists"}