{"id":17370015,"url":"https://github.com/pykong/code2markdown","last_synced_at":"2025-03-27T18:45:15.979Z","repository":{"id":104775338,"uuid":"295397800","full_name":"pykong/code2markdown","owner":"pykong","description":"Exports all source code of a directory to a markdown file. Adds a filetree as well.","archived":false,"fork":false,"pushed_at":"2020-10-09T21:55:03.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T21:43:27.865Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pykong.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":"2020-09-14T11:41:56.000Z","updated_at":"2023-12-31T04:27:27.000Z","dependencies_parsed_at":"2023-05-29T18:45:30.558Z","dependency_job_id":null,"html_url":"https://github.com/pykong/code2markdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykong%2Fcode2markdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykong%2Fcode2markdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykong%2Fcode2markdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pykong%2Fcode2markdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pykong","download_url":"https://codeload.github.com/pykong/code2markdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245905225,"owners_count":20691749,"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":[],"created_at":"2024-10-16T00:23:09.200Z","updated_at":"2025-03-27T18:45:15.962Z","avatar_url":"https://github.com/pykong.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# code2markdown\nExports all source code of a directory to a markdown file. Adds a filetree as well.\n\n## Ẁhat can it do?\nExport the contents of a files in a dir to markdown code blocks.\nThis can be used for example as a helper for written assignments when the\ncontents need to be included as a text export.\n\n## Requirements\n1. Linux. Currently only runs on linux due to executing the `tree` command.\n(Respective code portion can be removed.)\n2. Python 3.6+\n\n## Install\n1. Download this project.\n2. Install dependencies: `pip install -r requirements.txt`\n\n## Usage\n```sh\npython ./code_export.py /path/to/my/project/\n```\n\n## Create a file tree\nA tree of the directory is also prepended.\n\n## Ignore files and dirs\nFiles and dirs can also be ignore via gitignore style patterns provided in\na `patterns.list` file. (Note that pattern might not affect the tree creation.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpykong%2Fcode2markdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpykong%2Fcode2markdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpykong%2Fcode2markdown/lists"}